[PATCH] D26540: [Sema] Accept and ignore the leaf attribute
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 11 15:55:45 PST 2016
phosek added a comment.
That makes sense for diagnostics, but this attribute is only an optimization hint, so compiler should be allowed to ignore it. I can take a look how difficult it'd be to actually implement this attribute, but I don't think it's Sema-only attribute. I don't know if there's a matching IR function attribute; it seems like `readonly` attribute has similar effect but I'd need to take a look at the exact semantics.
Repository:
rL LLVM
https://reviews.llvm.org/D26540
More information about the cfe-commits
mailing list