[LLVMdev] [RFC] Overhauling Attributes

Duncan Sands baldrick at free.fr
Mon Dec 31 04:37:28 PST 2012


Hi Bill,

On 30/12/12 03:21, Bill Wendling wrote:
> Hi Rafael,
>
> Sorry, I forgot to respond to this. They can be arbitrary strings that are known only to the specific back-end. It may be beneficial to define them inside of the LangRef document though.

this sounds so much like metadata...  What was the reason for not enhancing
metadata to cover this use case?  I'm sure you explained but I've completely
forgotten...

Ciao, Duncan.

>
> -bw
>
> On Oct 4, 2012, at 7:47 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>
>>> attrgroup #1 = { "long-calls", "cpu=cortex-a8", "thumb" }
>>>
>>> define void @func() noinline ssp attrgroup(#1) {
>>>   ret void
>>> }
>>>
>>
>> I like the general idea. Just one clarification: In the above example,
>> are the attributes taken from a list specified in the language ref
>> (like current attributes) or can they be arbitrary "strings" (like
>> metadata)?
>>
>> Cheers,
>> Rafael
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list