[llvm-commits] CVS: reopt/include/reopt/UnpackTraceFunction.h

Brian Gaeke gaeke at cs.uiuc.edu
Sun Aug 22 20:10:41 PDT 2004



Changes in directory reopt/include/reopt:

UnpackTraceFunction.h updated: 1.15 -> 1.16
---
Log message:

getStaticStackSize has been made a static nonmember function.
rewriteProlog now returns the place where it stopped modifying the BB.
Refactor the code that runOnMachineBasicBlock uses to modify each basic block
in the trace into a new member function, postprocessMachineInstrsForTrace().


---
Diffs of the changes:  (+3 -2)

Index: reopt/include/reopt/UnpackTraceFunction.h
diff -u reopt/include/reopt/UnpackTraceFunction.h:1.15 reopt/include/reopt/UnpackTraceFunction.h:1.16
--- reopt/include/reopt/UnpackTraceFunction.h:1.15	Tue Jul 27 13:47:21 2004
+++ reopt/include/reopt/UnpackTraceFunction.h	Sun Aug 22 22:10:31 2004
@@ -46,7 +46,6 @@
 
   std::map<Value *, std::pair<AllocInfo, AllocInfo> > AllocStates;
 
-  unsigned getStaticStackSize (MachineFunction &MF);
   unsigned stackOffsetForReg (const unsigned R) const;
   void findRegsToSave (MachineFunction &MF);
   const MachineInstr *containsReturnInstr (MachineBasicBlock &B);
@@ -56,7 +55,7 @@
   void PrintValueAIs (const std::string &ValueName, const AllocInfo &MatrixAI,
                       const AllocInfo &TraceAI) const;
 
-  void rewriteProlog (MachineBasicBlock &MBB);
+  MachineBasicBlock::iterator rewriteProlog (MachineBasicBlock &MBB);
   void copyConstantToRegister (MachineFunction &MF, Constant *C, unsigned Reg,
                                unsigned SpareReg,
                                std::vector<MachineInstr *> &mvec);
@@ -68,6 +67,8 @@
   bool rewriteEpilogInstr (MachineBasicBlock &MBB,
                            MachineBasicBlock::iterator iter);
   void rewriteEpilog (MachineBasicBlock &MBB);
+  void postprocessMachineInstrsForTrace (MachineBasicBlock &MBB,
+                                         MachineBasicBlock::iterator Start);
   bool runOnMachineBasicBlock (MachineBasicBlock &MBB);
 public:
   UnpackTraceFunction (TargetMachine *TM_) : TM (TM_), TF (0) { }






More information about the llvm-commits mailing list