mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Add documentation for runOnMachineFunction()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f02dbf0f22
commit
6a33f36645
@ -42,6 +42,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<li><a href="#MachineFunctionPass">The <tt>MachineFunctionPass</tt>
|
<li><a href="#MachineFunctionPass">The <tt>MachineFunctionPass</tt>
|
||||||
class</a>
|
class</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#runOnMachineFunction">The
|
||||||
|
<tt>runOnMachineFunction(MachineFunction &)</tt> method</a>
|
||||||
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
<li><a href="#registration">Pass Registration</a>
|
<li><a href="#registration">Pass Registration</a>
|
||||||
<ul>
|
<ul>
|
||||||
@ -597,6 +601,28 @@ the following:
|
|||||||
</ol><p>
|
</ol><p>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- _______________________________________________________________________ -->
|
||||||
|
</ul><h4><a name="runOnMachineFunction"><hr size=0>The
|
||||||
|
<tt>runOnMachineFunction(MachineFunction &MF)</tt> method</h4><ul>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<b>virtual bool</b> runOnMachineFunction(MachineFunction &MF) = 0;
|
||||||
|
</pre></p>
|
||||||
|
|
||||||
|
<tt>runOnMachineFunction</tt> can be considered the main entry point
|
||||||
|
of a <tt>MachineFunctionPass</tt>; that is, you should override this
|
||||||
|
method to do the work of your <tt>MachineFunctionPass</tt>. <p>
|
||||||
|
|
||||||
|
The <tt>runOnMachineFunction</tt> method is called on every
|
||||||
|
<tt>MachineFunction</tt> in a <tt>Module</tt>, so that the
|
||||||
|
<tt>MachineFunctionPass</tt> may perform optimizations on the
|
||||||
|
machine-dependent representation of the function. If you want to get
|
||||||
|
at the LLVM <tt>Function</tt> for the <tt>MachineFunction</tt> you're
|
||||||
|
working on, use <tt>MachineFunction</tt>'s <tt>getFunction()</tt>
|
||||||
|
accessor method -- but remember, you may not modify the LLVM
|
||||||
|
<tt>Function</tt> or its contents from a
|
||||||
|
<tt>MachineFunctionPass</tt>. <p>
|
||||||
|
|
||||||
<!-- *********************************************************************** -->
|
<!-- *********************************************************************** -->
|
||||||
</ul><table width="100%" bgcolor="#330077" border=0 cellpadding=4 cellspacing=0>
|
</ul><table width="100%" bgcolor="#330077" border=0 cellpadding=4 cellspacing=0>
|
||||||
<tr><td align=center><font color="#EEEEFF" size=+2 face="Georgia,Palatino"><b>
|
<tr><td align=center><font color="#EEEEFF" size=+2 face="Georgia,Palatino"><b>
|
||||||
@ -1250,6 +1276,6 @@ href="#Pass"><tt>Pass</tt></a>, only the other way around.<p>
|
|||||||
<address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
|
<address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
|
||||||
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
|
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
|
||||||
<!-- hhmts start -->
|
<!-- hhmts start -->
|
||||||
Last modified: Mon Jul 14 12:12:53 CDT 2003
|
Last modified: Tue Jul 22 15:52:30 CDT 2003
|
||||||
<!-- hhmts end -->
|
<!-- hhmts end -->
|
||||||
</font></body></html>
|
</font></body></html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user