summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-15 20:36:13 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-15 20:36:13 +0000
commit4b7a8d68ae0be5b5e0fcd44d5df5e921920c18cb (patch)
treeef9d6342b4c12af6eb15dce4ae55c70062d208b2 /llvm/test/Feature
parente4ff968f5606bb0171960ba4342d92152d7e4c2a (diff)
downloadbcm5719-llvm-4b7a8d68ae0be5b5e0fcd44d5df5e921920c18cb.tar.gz
bcm5719-llvm-4b7a8d68ae0be5b5e0fcd44d5df5e921920c18cb.zip
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. llvm-svn: 133080
Diffstat (limited to 'llvm/test/Feature')
-rw-r--r--llvm/test/Feature/paramattrs.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Feature/paramattrs.ll b/llvm/test/Feature/paramattrs.ll
index 3bee6177e0b..d686257e798 100644
--- a/llvm/test/Feature/paramattrs.ll
+++ b/llvm/test/Feature/paramattrs.ll
@@ -20,3 +20,5 @@ define i32 @main(i32 inreg %argc, i8 ** inreg %argv) nounwind {
%retVal = sext i16 %two to i32
ret i32 %retVal
}
+
+declare void @function_to_resolve_eagerly() nonlazybind
OpenPOWER on IntegriCloud