2007/6/20, Peltier, Mikael <<a href="mailto:m-peltier@ti.com">m-peltier@ti.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="#606420" lang="EN-US">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hello,</span></font></p></div></div></blockquote><div><br>Hi, <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="#606420" lang="EN-US"><div><p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I want to find information/documentation on how reorganize
stack frame (add other information, etc.) & how add new calling convention into
ARM backend?</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I think it is needed to modify lowering of CALL, RET & FORMAL_ARGUMENT
instruction, and also to modify emitPrologue & emitEpilogue functions.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">What are the others things to modify in order to realize my
experimentation? Is it the best way to do it?</span></font></p></div></div></blockquote><div><br>You can specify different calling conventions on the specific arch file<br><ARCH>CallingConv.td (see X86/PowerPC/Mips for examples).
<br>They must be handled on the lowering of CALL, RET and FORMAL_ARGUMENTS!<br>Take a look at the following functions called in <ARCH>ISelLowering.cpp  :<br>CCInfo.AnalyzeCallOperands<br>CCInfo.AnalyzeCallResult<br>
CCInfo.AnalyzeFormalArguments<br>CCInfo.AnalyzeReturn <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="#606420" lang="EN-US">
<div><p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks in advance.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Mikaël.</span></font></p></div></div></blockquote><div><br>Cheers, <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_______________________________________________<br>LLVM Developers mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://llvm.cs.uiuc.edu" target="_blank">
http://llvm.cs.uiuc.edu</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br>
</blockquote></div><br><br clear="all"><br>-- <br>Bruno Cardoso Lopes<br><a href="http://www.brunocardoso.org">http://www.brunocardoso.org</a><br><br>"The Man in Black fled across the desert and the gunslinger followed"
<br>  - Childe Roland to the Dark Tower Came