[LLVMdev] Adding a new function attribute

Borja Ferrer borja.ferav at gmail.com
Sun Mar 4 13:07:50 PST 2012


Hello,

I'm adding a new function attribute in clang and llvm for a backend I'm
writing that treats prolog and epilogue code in a special way inside
interrupt handlers, similar to what naked does. One way I've seen to do
this is to add a new attribute type in Attributes.h, however to me it feels
bad to add a target dependent attribute into this place which is very
target independent. So what's the best way to do this or is there an api to
handle this kind of issues?

Thanks for the help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120304/65c0e13d/attachment.html>


More information about the llvm-dev mailing list