[cfe-users] How to specify thumb2, arm7 or arm8 mode for function by __attribute__

Sergey Kuratov via cfe-users cfe-users at lists.llvm.org
Thu Jun 16 23:31:44 PDT 2016


Hello,
I need to compile one function in thumb-2 mode, keeping all others in arm
mode.
I can't find any example how to do this. With gcc it's easy with
__attribute__((target('thumb'))).

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160617/e5d39b0a/attachment.html>


More information about the cfe-users mailing list