[LLVMdev] Fwd: Build Attributes Proposal
Sandeep Patel
deeppatel1987 at gmail.com
Wed Nov 17 15:13:40 PST 2010
Forgot to reply all to include the list.
deep
---------- Forwarded message ----------
From: Sandeep Patel <deeppatel1987 at gmail.com>
Date: 2010/11/17
Subject: Re: [LLVMdev] Build Attributes Proposal
To: Rafael EspĂndola <rafael.espindola at gmail.com>
2010/11/17 Rafael EspĂndola <rafael.espindola at gmail.com>:
>> 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.
>
> If needed, these attributes should be per function, no? How do you
> handle "ld -r" ?
I suppose per-function is best. I'd argue that the ARM attributes are
all per-function as well. My favorite example is
__attribute__((pcs("aapcs-vfp"))) as a function attribute to select
the calling convention.
Maybe these attributes could referenced like metadata so they can be
merged if identical?
deep
More information about the llvm-dev
mailing list