[llvm-commits] CVS: reopt/lib/LightWtProfiling/TraceToFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Nov 3 00:57:01 PST 2003
Changes in directory reopt/lib/LightWtProfiling:
TraceToFunction.h added (r1.1)
---
Log message:
Add a header file with the public interface, such as it is, for
the TraceToFunction code.
---
Diffs of the changes: (+25 -0)
Index: reopt/lib/LightWtProfiling/TraceToFunction.h
diff -c /dev/null reopt/lib/LightWtProfiling/TraceToFunction.h:1.1
*** /dev/null Mon Nov 3 00:56:47 2003
--- reopt/lib/LightWtProfiling/TraceToFunction.h Mon Nov 3 00:56:37 2003
***************
*** 0 ****
--- 1,25 ----
+ //===- LightWtProfiling/TraceToFunction.h ------------------------*- C++ -*--=//
+ //
+ // Repackage traces as functions, so that global (function-level) optimizations
+ // can be applied to traces.
+ //
+ //===----------------------------------------------------------------------===//
+
+ #ifndef TRACETOFUNCTION_H
+ #define TRACETOFUNCTION_H
+
+ #include "llvm/Function.h"
+ #include <set>
+ #include <map>
+ class Trace;
+
+ typedef std::set<Value *> LiveVariableSet;
+ typedef std::map<BasicBlock *, BasicBlock *> BasicBlockMap;
+
+ extern BasicBlockMap ReturnBlockForTraceExit;
+
+ /// runTraceToFunction - Entry point for TraceToFunction transformation.
+ ///
+ Function *runTraceToFunction (Trace &T);
+
+ #endif // TRACETOFUNCTION_H
More information about the llvm-commits
mailing list