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

Anand Shukla ashukla at cs.uiuc.edu
Sat Sep 21 00:02:01 PDT 2002


Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.9 -> 1.10

---
Log message:

Changed codegen to add 2 empty slots at the top of stack using StackSlots pass


---
Diffs of the changes:

Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.9 llvm/lib/Target/TargetMachine.cpp:1.10
--- llvm/lib/Target/TargetMachine.cpp:1.9	Thu Sep 19 19:52:43 2002
+++ llvm/lib/Target/TargetMachine.cpp	Sat Sep 21 00:01:21 2002
@@ -9,6 +9,7 @@
 #include "llvm/Target/MachineInstrInfo.h"
 #include "llvm/Target/MachineCacheInfo.h"
 #include "llvm/CodeGen/PreSelection.h"
+#include "llvm/CodeGen/StackSlots.h"
 #include "llvm/CodeGen/InstrSelection.h"
 #include "llvm/CodeGen/InstrScheduling.h"
 #include "llvm/CodeGen/RegisterAllocation.h"
@@ -118,6 +119,10 @@
 {
   // Construct and initialize the MachineCodeForMethod object for this fn.
   PM.add(new ConstructMachineCodeForFunction(*this));
+
+  //Insert empty stackslots in the stack frame of each function
+  //so %fp+offset-8 and %fp+offset-16 are empty slots now!
+  PM.add(createStackSlotsPass(*this));
 
   // Specialize LLVM code for this target machine and then
   // run basic dataflow optimizations on LLVM code.





More information about the llvm-commits mailing list