I am new to the LLVM, and need some help with this points.<br><br>1. how can we add special code for the Prolog/Epilog for some <br>certain functions, this should be done with machinefunction pass, rt?<br><br>2. Basically, I want to get the function stack frame, that is the size and<br>
the initial position. <br> I found <br><table class="memname"><tbody><tr><td class="memname">int64_t llvm::MachineFrameInfo::getObjectSize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>ObjectIdx</em> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</tbody></table>
This method is done before or after the mapping of virtual registers?<br clear="all"><br>3. the program code will be at .text section, suppose we are going to <br>move the code from .text to somewhere else, how can we get the <br>
start and the length of the effective code,<br><br>Thanks.<br>-- <br>