diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 414ed1226c7..a39369fc299 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -42,6 +42,10 @@
+ +
+ virtual bool runOnMachineFunction(MachineFunction &MF) = 0; ++ +runOnMachineFunction can be considered the main entry point +of a MachineFunctionPass; that is, you should override this +method to do the work of your MachineFunctionPass.
+ +The runOnMachineFunction method is called on every +MachineFunction in a Module, so that the +MachineFunctionPass may perform optimizations on the +machine-dependent representation of the function. If you want to get +at the LLVM Function for the MachineFunction you're +working on, use MachineFunction's getFunction() +accessor method -- but remember, you may not modify the LLVM +Function or its contents from a +MachineFunctionPass.
+
@@ -1250,6 +1276,6 @@ href="#Pass">Pass, only the other way around. Chris Lattner -Last modified: Mon Jul 14 12:12:53 CDT 2003 +Last modified: Tue Jul 22 15:52:30 CDT 2003 |