[LLVMdev] Function Attributes in LLVM

Devang Patel dpatel at apple.com
Tue Feb 17 10:35:56 PST 2009


On Feb 17, 2009, at 7:36 AM, Josef Eisl wrote:

> Now the LLVM specific questions :): Is there currently a way that
> special function attributes are passed to the back end?

One such example is "optsize".
See http://llvm.org/docs/LangRef.html#fnattrs

> A solution would
> be to add custom function attributes to the LLVM IR but changing a  
> core
> system in order to support a feature of a new device seems not to be  
> the
> best way IMO. Additionally the front end must be changed too.
> I think it would be a pretty nice feature if a target could specify
> special function attributes or am I totally missing the point?

-
Devang






More information about the llvm-dev mailing list