[llvm-dev] [RFC] `opt-out` attribute list for intrinsics

Johannes Doerfert via llvm-dev llvm-dev at lists.llvm.org
Wed Jun 24 11:11:07 PDT 2020


No strong opinion on the tablegen implementation choice but very much in

favor of "default attributes" for intrinsics.


There is a valid correctness concern but I would argue the attributes 
show up in the intrinisc test when you add them.

If they seem off, you need to opt-out.



On 6/24/20 11:28 AM, Stefan Stipanovic wrote:
> Hi all,
>
> A while back we started annotating intrinsics with new attributes (
> https://reviews.llvm.org/D65377)
>
> After some discussion it was decided it would be good to have an `opt-out`
> attribute list for intrinsics. Some attributes that can be added to the
> list could be: nosync, nofree, nounwind, willreturn
>
> For now, there are 2 approaches:
>
>     1. Filtering opt-out attributes in tablegen source (
>     https://reviews.llvm.org/D70365)
>     2. Having tablegen handle opt-out list (
>     https://reviews.llvm.org/D70365?id=229732)
>
> How do people feel about these approaches? Is any of the two better than
> the other? Maybe I should consider something else?
>
> Thanks,
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200624/a726b6fa/attachment-0001.html>


More information about the llvm-dev mailing list