[PATCH] D14775: [FunctionAttrs] Provide a mechanism for adding function attributes from the command line
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 06:57:45 PST 2015
jmolloy created this revision.
jmolloy added reviewers: dexonsmith, joker.eph.
jmolloy added a subscriber: llvm-commits.
jmolloy set the repository for this revision to rL LLVM.
I hope this won't be too controversial.
This patch provides a way to force a function to have certain attributes from the command line. This can be useful when debugging or doing workload exploration, where manually editing IR is tedious or not possible (due to build systems etc).
The syntax is -force-attribute=function_name:attribute_name
For example, a function can be force-inlined using `-force-attribute myfunc:alwaysinline`
Repository:
rL LLVM
http://reviews.llvm.org/D14775
Files:
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/forced.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14775.40503.patch
Type: text/x-patch
Size: 4216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/86f9586a/attachment-0001.bin>
More information about the llvm-commits
mailing list