[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 08:42:58 PST 2015


Hi Akira,

This will be useful whenever functionattrs is run; this includes clang but
not, I think, llc.

I considered adding an option to remove attributes, but I decided against
it. Adding an attribute is easy - attributes are almost never removed
during compilation (apart from inlining). However attributes are regularly
inferred, so I could really make no guarantee about the effectiveness of
removing a function attribute (as it may be re added later!)

James
On Wed, 18 Nov 2015 at 15:55, Akira Hatanaka via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> ahatanak added a subscriber: ahatanak.
> ahatanak added a comment.
>
> Will this command line option be useful for llc or other tools too? Also,
> an option to remove the attributes from a function might be useful too.
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D14775
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/f03df693/attachment.html>


More information about the llvm-commits mailing list