[LLVMdev] adding IR attributes to llvm

Justin Holewinski justin.holewinski at gmail.com
Fri Jan 11 04:51:56 PST 2013


Depends on whether its actually the calling convention, or just an
annotation (I don't know MIPS that well).  Could you ever have a case where
you want to declare a function as both mips16 and fastcc, or some other
explicit calling convention?

For PTX, we added two calling conventions to mark kernel functions
(callable by host) from device functions (not callable by host).  But this
designation is actually part of the function calling convention.


On Fri, Jan 11, 2013 at 12:20 AM, reed kotler <rkotler at mips.com> wrote:

> For target dependent function level attributes, do I need to actually add
> them to the enumeration in attributes.h?
>
> I have for example, mips16 and nomips16 as attributes.
>
> Or is this supposed to be done with cc <n>
>
>
>
>
>
>
> ______________________________**_________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>



-- 

Thanks,

Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130111/40457936/attachment.html>


More information about the llvm-dev mailing list