[LLVMdev] Build Attributes Proposal

Renato Golin rengolin at systemcall.org
Fri Nov 12 12:19:02 PST 2010


On 12 November 2010 19:53, Bob Wilson <bob.wilson at apple.com> wrote:
> I think some of this discussion is missing the context.  ARM has defined per-object file build attributes to record things like the optimization level, whether the code is ARM vs. Thumb, etc.  This is not something new nor is it specific to LLVM.  As far as I know, the linker is not obligated to do anything with this information, but compilers that follow ARM's specifications are expected to provide it.

Sorry about that, I didn't want to sound redundant after my previous
round of emails about build attributes... ;)


> Putting the build attributes on individual functions is not a good match for the final result, which is a single set of attributes for the entire object file.  If you put separate attributes on the functions, then code gen will have to scan all the functions to see if they have the same attribute values.

Precisely.

cheers,
--renato




More information about the llvm-dev mailing list