[llvm-commits] CVS: reopt/lib/LightWtProfiling/TraceToFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Mar 8 16:49:11 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
TraceToFunction.h updated: 1.4 -> 1.5
---
Log message:
Move ReturnBlockForTraceExit inside of TraceFunction.
Fix some comments.
---
Diffs of the changes: (+8 -6)
Index: reopt/lib/LightWtProfiling/TraceToFunction.h
diff -u reopt/lib/LightWtProfiling/TraceToFunction.h:1.4 reopt/lib/LightWtProfiling/TraceToFunction.h:1.5
--- reopt/lib/LightWtProfiling/TraceToFunction.h:1.4 Fri Jan 16 12:44:35 2004
+++ reopt/lib/LightWtProfiling/TraceToFunction.h Mon Mar 8 16:46:54 2004
@@ -18,12 +18,9 @@
typedef std::set<Value *> LiveVariableSet;
typedef std::map<BasicBlock *, BasicBlock *> BasicBlockMap;
-// FIXME: this should definitely be part of TraceFunction.
-extern BasicBlockMap ReturnBlockForTraceExit;
-
-// It's not clear whether this should be part of Trace or not. Logically, you
-// can't have a TraceFunction without a Trace, but you might not want all the
-// TraceFunction baggage if you just want a Trace.
+// 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
+// get away with using a Trace instead of this class in new code.
struct TraceFunction {
/// Function that contains the trace
///
@@ -56,6 +53,11 @@
/// along with its Live-In and Live-Out variable sets.
///
static TraceFunction *get (Trace &T);
+
+ /// Map of basic blocks containing return instructions in TraceFn -->
+ /// basic blocks that they are supposed to return to in MatrixFn.
+ ///
+ BasicBlockMap ReturnBlockForTraceExit;
};
class FunctionPass;
More information about the llvm-commits
mailing list