diff options
| author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-09-21 05:01:21 +0000 |
|---|---|---|
| committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-09-21 05:01:21 +0000 |
| commit | 4b6bd16c2b2dd82f3764918d0129edd6c6613368 (patch) | |
| tree | 9856fdaec770505068f2ad27bbcb9babc729c10f /llvm/lib/Target | |
| parent | ca15c99c4dee285130cca8a868cf0b02849b30d2 (diff) | |
| download | bcm5719-llvm-4b6bd16c2b2dd82f3764918d0129edd6c6613368.tar.gz bcm5719-llvm-4b6bd16c2b2dd82f3764918d0129edd6c6613368.zip | |
Changed codegen to add 2 empty slots at the top of stack using StackSlots pass
llvm-svn: 3873
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 8d9a832d281..a30f93ee6b7 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -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" @@ -119,6 +120,10 @@ TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) // 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. if (!DisablePreSelect) |

