<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Reed,<div><br></div><div>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.</div><div><br></div><div>Regards,</div><div>  Jim</div><div><br></div><div><br></div><div><div><div>On Apr 17, 2013, at 11:42 AM, reed kotler <<a href="mailto:rkotler@mips.com">rkotler@mips.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I have some needs in the Mips compiler to have some special calling conventions; for now just<br>used internally by the compiler.<br><br>In the ir there is the general "cc <n>".<br><br>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<br>used when generating calls to that function?<br><br>Tia.<br><br>Reed<br><br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></div></body></html>