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

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 28 14:35:12 PST 2002


Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.10 -> 1.11

---
Log message:

* Initialize new FrameInfo member
* most pass ctors no longer take TM arguments
* New prolog/epilog insertion pass


---
Diffs of the changes:

Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.10 llvm/lib/Target/X86/X86TargetMachine.cpp:1.11
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.10	Tue Dec 24 23:06:21 2002
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Sat Dec 28 14:33:32 2002
@@ -36,7 +36,8 @@
 		  (Config & TM::EndianMask) == TM::LittleEndian,
 		  1, 4, 
 		  (Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4,
-		  (Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4) {
+		  (Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4),
+  FrameInfo(TargetFrameInfo::StackGrowsDown, 1/*16*/, 0) {
 }
 
 
@@ -60,12 +61,18 @@
 
   // Perform register allocation to convert to a concrete x86 representation
   if (NoLocalRA)
-    PM.add(createSimpleRegisterAllocator(*this));
+    PM.add(createSimpleRegisterAllocator());
   else
-    PM.add(createLocalRegisterAllocator(*this));
+    PM.add(createLocalRegisterAllocator());
+
+  if (PrintCode)
+    PM.add(createMachineFunctionPrinterPass());
+
+  // Insert prolog/epilog code.  Eliminate abstract frame index references...
+  PM.add(createPrologEpilogCodeInserter());
 
   if (PrintCode)  // Print the register-allocated code
-    PM.add(createX86CodePrinterPass(*this, std::cerr));
+    PM.add(createX86CodePrinterPass(std::cerr));
 
   PM.add(createMachineCodeDestructionPass());
 





More information about the llvm-commits mailing list