[LLVMdev] Build Attributes Proposal

Sandeep Patel deeppatel1987 at gmail.com
Wed Nov 17 15:04:18 PST 2010


2010/11/17 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
>> Hi Duncan,
>>
>> This could work, but it's very limited. Besides, there's already an MC
>> build attribute infrastructure, one would have to interpret those
>> strings in the back-end to an MC construct then back again to ASM and
>> ELF.
>>
>> I don't see why having a magic global would be worse than using module asm...
>
> So, you mentioned that there should be no attributes that were not
> requested by the users, right? If that is so, can't you produce the
> asm in clang or you FE and have llvm never introduce new ones? LLVM
> itself doesn't use the attributes, so it doesn't need to interpret
> them.

Another use for build attributes would be as a means to record the
build flags selected for each translation unit so that LTO could know
how to optimize/tune the result. This use seems more important to
solve than the ARM attributes under discussion here.

deep




More information about the llvm-dev mailing list