[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h Passes.h

Brian Gaeke gaeke at niobe.cs.uiuc.edu
Wed Aug 13 13:19:29 PDT 2003


Changes in directory llvm/include/llvm/CodeGen:

MachineFunction.h updated: 1.26 -> 1.27
Passes.h updated: 1.1 -> 1.2

---
Log message:

Factory methods for FunctionPasses now return type FunctionPass *.


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.26 llvm/include/llvm/CodeGen/MachineFunction.h:1.27
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.26	Tue Jan 14 15:29:39 2003
+++ llvm/include/llvm/CodeGen/MachineFunction.h	Wed Aug 13 13:18:10 2003
@@ -17,15 +17,15 @@
 
 class Function;
 class TargetMachine;
-class Pass;
+class FunctionPass;
 class SSARegMap;
 class MachineFunctionInfo;
 class MachineFrameInfo;
 class MachineConstantPool;
 
-Pass *createMachineCodeConstructionPass(TargetMachine &TM);
-Pass *createMachineCodeDestructionPass();
-Pass *createMachineFunctionPrinterPass();
+FunctionPass *createMachineCodeConstructionPass(TargetMachine &TM);
+FunctionPass *createMachineCodeDestructionPass();
+FunctionPass *createMachineFunctionPrinterPass();
 
 class MachineFunction : private Annotation {
   const Function *Fn;


Index: llvm/include/llvm/CodeGen/Passes.h
diff -u llvm/include/llvm/CodeGen/Passes.h:1.1 llvm/include/llvm/CodeGen/Passes.h:1.2
--- llvm/include/llvm/CodeGen/Passes.h:1.1	Sun Jan 12 19:01:31 2003
+++ llvm/include/llvm/CodeGen/Passes.h	Wed Aug 13 13:18:10 2003
@@ -8,7 +8,7 @@
 #ifndef LLVM_CODEGEN_PASSES_H
 #define LLVM_CODEGEN_PASSES_H
 
-class Pass;
+class FunctionPass;
 class PassInfo;
 
 // PHIElimination pass - This pass eliminates machine instruction PHI nodes by
@@ -22,17 +22,17 @@
 /// from SSA form to use explicit registers by spilling every register.  Wow,
 /// great policy huh?
 ///
-Pass *createSimpleRegisterAllocator();
+FunctionPass *createSimpleRegisterAllocator();
 
 /// LocalRegisterAllocation Pass - This pass register allocates the input code a
 /// basic block at a time, yielding code better than the simple register
 /// allocator, but not as good as a global allocator.
 /// 
-Pass *createLocalRegisterAllocator();
+FunctionPass *createLocalRegisterAllocator();
 
 /// PrologEpilogCodeInserter Pass - This pass inserts prolog and epilog code,
 /// and eliminates abstract frame references.
 ///
-Pass *createPrologEpilogCodeInserter();
+FunctionPass *createPrologEpilogCodeInserter();
 
 #endif





More information about the llvm-commits mailing list