Hi Reed,
It may be useful to have a look at how clang handles this for ARM’s AAPCS and
AAPCS_VFP calling conventions. In particular, look in lib/CodeGen/CGCall.cpp and
lib/CodeGen/TargetInfo.cpp. That’s probably not going to be exactly what you
need, but hopefully it will at least help point in the right direction.
Regards,
Jim
On Apr 17, 2013, at 11:42 AM, reed kotler <rkotler at mips.com> wrote:
> I have some needs in the Mips compiler to have some special calling
conventions; for now just
> used internally by the compiler.
>
> In the ir there is the general "cc <n>".
>
> Is there a way to register a calling convention with target independent
code so that if those attribute is attached to the function ir , that the
corresponding calling convention will be
> used when generating calls to that function?
>
> Tia.
>
> Reed
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130417/07ccc170/attachment.html>