From 3a3465b71db858723988f61d72b7135e6dff329b Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 15 Jun 2011 20:36:13 +0000 Subject: Add a new function attribute, nonlazybind, which inhibits lazy-loading optimizations when emitting calls to the function; instead those calls may use faster relocations which require the function to be immediately resolved upon loading the dynamic object featuring the call. This is useful when it is known that the function will be called frequently and pervasively and therefore there is no merit in delaying binding of the function. Currently only implemented for x86-64, where it turns into a call through the global offset table. Patch by Dan Gohman, who assures me that he's going to add LangRef documentation for this once it's committed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133080 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/llvm.grm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/llvm.grm') diff --git a/utils/llvm.grm b/utils/llvm.grm index 9d6bdf79f5..3f33702d2a 100644 --- a/utils/llvm.grm +++ b/utils/llvm.grm @@ -172,6 +172,8 @@ FuncAttr ::= noreturn | optsize | ssp | sspreq + | hotpatch + | nonlazybind ; OptFuncAttrs ::= + _ | OptFuncAttrs FuncAttr ; -- cgit v1.2.3-18-g5258