[llvm-commits] CVS: reopt/include/reopt/UnpackTraceFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Sun May 30 14:38:02 PDT 2004
Changes in directory reopt/include/reopt:
UnpackTraceFunction.h updated: 1.3 -> 1.4
---
Log message:
Merge RegsToRestore into RegsToSave; rename findRegsToRestore to findRegsToSave.
Hack AllocStates into a data member of the UnpackTraceFunction pass.
Clear out both RegsToSave and AllocStates before filling them.
Get rid of CopyInfo, which is now unused.
---
Diffs of the changes: (+4 -2)
Index: reopt/include/reopt/UnpackTraceFunction.h
diff -u reopt/include/reopt/UnpackTraceFunction.h:1.3 reopt/include/reopt/UnpackTraceFunction.h:1.4
--- reopt/include/reopt/UnpackTraceFunction.h:1.3 Sun May 30 04:19:30 2004
+++ reopt/include/reopt/UnpackTraceFunction.h Sun May 30 14:36:14 2004
@@ -7,6 +7,7 @@
#ifndef REOPT_UNPACKTRACEFUNCTION_H
#define REOPT_UNPACKTRACEFUNCTION_H
+#include "../../../../lib/Target/SparcV9/RegAlloc/AllocInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "Support/DataTypes.h"
#include <set>
@@ -40,12 +41,13 @@
/// Registers clobbered in the trace. Filled in by findRegsUsedInFunction ().
///
- std::set<unsigned> RegsToRestore;
std::set<unsigned> RegsToSave;
+ std::map<Value *, std::pair<AllocInfo, AllocInfo> > AllocStates;
+
unsigned getStaticStackSize (MachineFunction &MF);
unsigned stackOffsetForReg (unsigned R);
- void findRegsToRestore (MachineFunction &MF);
+ void findRegsToSave (MachineFunction &MF);
const MachineInstr *containsReturnInstr (MachineBasicBlock &B);
void rewriteProlog (MachineFunction &MF, MachineBasicBlock &MBB);
void rewriteEpilog (MachineFunction &MF, MachineBasicBlock &MBB);
More information about the llvm-commits
mailing list