[PATCH] Add target independent attribute for ObjCARC

John McCall rjmccall at apple.com
Mon May 20 21:19:06 PDT 2013


On May 20, 2013, at 8:59 PM, Bob Wilson <bob.wilson at apple.com> wrote:
> On May 20, 2013, at 11:11 AM, Eric Christopher <echristo at gmail.com> wrote:
>> A builtin attribute seems to make sense, I've always had this faint
>> unease at the "assume all functions with this name are magic" aspect
>> of the libcall optimizers. Though it is unfortunate that the same
>> functions have different meanings in arc and non-arc mode.
> 
> Are you suggesting that we completely drop the nobuiltin attribute and switch to a scheme where nothing is assumed to be a builtin unless it has that attribute?

That seems like the right fix to me.  I can't think of any analogous source-language or environmental assumptions that LLVM unconditionally makes without an attribute or metadata there to bless it — well, except for compiler runtime functions like memcpy, soft-float functions, etc.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130520/3cd7ca99/attachment.html>


More information about the llvm-commits mailing list