[LLVMdev] AttributeSet from Modules

Raul Fernandes Herbster raulherbster at gmail.com
Thu Sep 5 03:11:13 PDT 2013


Thanks!


On Tue, Sep 3, 2013 at 11:08 PM, Bill Wendling <wendling at apple.com> wrote:

> On Sep 3, 2013, at 9:04 AM, Raul Fernandes Herbster <
> raulherbster at gmail.com> wrote:
>
> > Hello!
> >
> > clang defines some AttributeSet, for example:
> >
> > attributes #0 = { nounwind uwtable "less-precise-fpmad"="false"
> "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true"
> "no-infs-fp-math"="false" "no-nans-fp-math"="false"
> "unsafe-fp-math"="false" "use-soft-float"="false" }
> >
> > I would like to know if there is any way to reuse such pre-defined
> attribute sets (for example, set the attribute list of my new function
> using an existing attribute set).
> >
> Hi Raul,
>
> Attribute sets are "uniqued". So if you have two functions which both have
> the same attributes, then they will reference the same AttributeSet object.
>
>
> -bw
>
>
>


-- 
Raul Fernandes Herbster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130905/5a180d55/attachment.html>


More information about the llvm-dev mailing list