[llvm-commits] CVS: reopt/lib/LightWtProfiling/Initialization.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jun 22 03:44:00 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
Initialization.cpp updated: 1.17 -> 1.18
---
Log message:
Add skipTrace command-line option.
---
Diffs of the changes: (+6 -0)
Index: reopt/lib/LightWtProfiling/Initialization.cpp
diff -u reopt/lib/LightWtProfiling/Initialization.cpp:1.17 reopt/lib/LightWtProfiling/Initialization.cpp:1.18
--- reopt/lib/LightWtProfiling/Initialization.cpp:1.17 Sun May 16 00:23:57 2004
+++ reopt/lib/LightWtProfiling/Initialization.cpp Tue Jun 22 03:43:05 2004
@@ -21,6 +21,7 @@
#include "reopt/TraceCache.h"
#include "reopt/VirtualMem.h"
#include <cassert>
+#include <set>
namespace llvm {
@@ -38,6 +39,7 @@
bool enable_trace_optimizer;
bool enable_phase_detect;
ModuleProvider *MP;
+std::set<int> skipTrace;
// Command line options. Use these to set the global variables. For
// now the reoptimizer code references the global variables
@@ -66,6 +68,8 @@
EnableTraceOpt("enable-trace-opt", cl::location(enable_trace_optimizer));
cl::opt<bool, true>
EnablePhaseDetect("enable-phase-detect", cl::location(enable_phase_detect));
+cl::opt<int>
+SkipTraceOpt("skip-trace", cl::init(-1));
/// reoptimizerInitialize - Initialization method for the
/// reoptimizer. A call to this function from main() is inserted by
@@ -87,6 +91,8 @@
if (enable_phase_detect)
initialize_timer();
+ if (SkipTraceOpt != -1) { skipTrace.insert((int)SkipTraceOpt); }
+
return argc;
}
More information about the llvm-commits
mailing list