[llvm-commits] CVS: llvm/lib/Target/X86/X86.h

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 28 14:30:08 PST 2002


Changes in directory llvm/lib/Target/X86:

X86.h updated: 1.10 -> 1.11

---
Log message:

* Most pass ctor functions don't take TM arguments anymore
* New createPrologEpilogCodeInserter() function



---
Diffs of the changes:

Index: llvm/lib/Target/X86/X86.h
diff -u llvm/lib/Target/X86/X86.h:1.10 llvm/lib/Target/X86/X86.h:1.11
--- llvm/lib/Target/X86/X86.h:1.10	Mon Dec 16 10:14:51 2002
+++ llvm/lib/Target/X86/X86.h	Sat Dec 28 14:26:16 2002
@@ -20,24 +20,29 @@
 ///
 Pass *createSimpleX86InstructionSelector(TargetMachine &TM);
 
-/// createSimpleRegisterAllocation - This function converts the specified
-/// machine code function from SSA form to use explicit registers by spilling
-/// every register.  Wow, great policy huh?
+/// createSimpleRegisterAllocation - This function returns a pass that converts
+/// the specified machine code function from SSA form to use explicit registers
+/// by spilling every register.  Wow, great policy huh?
 ///
-Pass *createSimpleRegisterAllocator(TargetMachine &TM);
-Pass *createLocalRegisterAllocator(TargetMachine &TM);
+Pass *createSimpleRegisterAllocator();
+Pass *createLocalRegisterAllocator();
+
+/// createPrologEpilogCodeInserter - This function returns a pass that inserts
+/// prolog and epilog code, and eliminates abstract frame references.
+///
+Pass *createPrologEpilogCodeInserter();
 
 /// createX86CodePrinterPass - Print out the specified machine code function to
 /// the specified stream.  This function should work regardless of whether or
 /// not the function is in SSA form or not.
 ///
-Pass *createX86CodePrinterPass(TargetMachine &TM, std::ostream &O);
+Pass *createX86CodePrinterPass(std::ostream &O);
 
 /// X86EmitCodeToMemory - This function converts a register allocated function
 /// into raw machine code in a dynamically allocated chunk of memory.  A pointer
 /// to the start of the function is returned.
 ///
-Pass *createEmitX86CodeToMemory(TargetMachine &TM);
+Pass *createEmitX86CodeToMemory();
 
 // Put symbolic names in a namespace to avoid causing these to clash with all
 // kinds of other things...





More information about the llvm-commits mailing list