[llvm-commits] CVS: reopt/lib/LightWtProfiling/TraceToFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Mar 10 13:04:06 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
TraceToFunction.h updated: 1.6 -> 1.7
---
Log message:
Move ValueToIntMap and LiveInToParameterMap into TraceFunction.h.
Fix up some comments.
---
Diffs of the changes: (+6 -0)
Index: reopt/lib/LightWtProfiling/TraceToFunction.h
diff -u reopt/lib/LightWtProfiling/TraceToFunction.h:1.6 reopt/lib/LightWtProfiling/TraceToFunction.h:1.7
--- reopt/lib/LightWtProfiling/TraceToFunction.h:1.6 Tue Mar 9 13:18:27 2004
+++ reopt/lib/LightWtProfiling/TraceToFunction.h Wed Mar 10 13:03:44 2004
@@ -18,6 +18,7 @@
typedef std::set<Value *> LiveVariableSet;
typedef std::map<BasicBlock *, BasicBlock *> BasicBlockMap;
typedef std::map<const Value *, Value *> ValueMap;
+typedef std::map<Value *, unsigned int> ValueToIntMap;
// This class encapsulates all the TraceToFunction algorithm's saved baggage.
// You can't have a TraceFunction without a Trace, but you might be able to
@@ -63,6 +64,11 @@
/// Map of original values in MatrixFn --> clones in TraceFn.
///
ValueMap O2CMap;
+
+ /// Map of Trace's live-in values in the MatrixFn --> parameter numbers in
+ /// TraceFn.
+ ///
+ ValueToIntMap LiveInToParameterMap;
Value *getCorrespondingValue (const Value *V) {
ValueMap::iterator i = O2CMap.find (V);
More information about the llvm-commits
mailing list