[llvm-commits] CVS: reopt/lib/LightWtProfiling/Globals.h

Brian Gaeke gaeke at cs.uiuc.edu
Tue Jan 13 12:20:03 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

Globals.h updated: 1.7 -> 1.8

---
Log message:

Provide decl of llvm_first_trigger, because everyone wants its address.

Provide declarations of timer_interval globals and a ModuleProvider for
the currently reoptimized Module.

Provide extern decl of bool enable_phase_detect, so that we can start
reducing the commented-out code there.


---
Diffs of the changes:  (+20 -1)

Index: reopt/lib/LightWtProfiling/Globals.h
diff -u reopt/lib/LightWtProfiling/Globals.h:1.7 reopt/lib/LightWtProfiling/Globals.h:1.8
--- reopt/lib/LightWtProfiling/Globals.h:1.7	Mon Jan  5 14:13:37 2004
+++ reopt/lib/LightWtProfiling/Globals.h	Tue Jan 13 12:19:00 2004
@@ -15,9 +15,15 @@
 #include "reopt/TraceCache.h"
 #include "reopt/VirtualMem.h"
 #include "llvm/Module.h"
+#include "llvm/ModuleProvider.h"
 
 namespace llvm {
 
+/// Many parts of the reoptimizer need to know the address of
+/// the first-level instrumentation function, so it is declared here.
+///
+extern "C" void llvm_first_trigger ();
+
 /// Threshold against which back-edge counters are compared in first-level
 /// instrumentation. If a back-edge's counter exceeds this threshold, we
 /// may generate second-level instrumentation (SLI) for the loop.
@@ -35,6 +41,12 @@
 ///
 extern int32_t LEVEL_TWO_EXITS; 
 
+/// Seconds and nanoseconds used for phase-change detection
+/// mechanism's interval timer.
+///
+extern int32_t timer_interval_sec;
+extern int32_t timer_interval_nsec;
+
 /// Second-level instrumented code cache.
 ///
 extern TraceCache *tr;
@@ -47,9 +59,12 @@
 ///
 extern VirtualMem *vm; 
 
-/// Module being reoptimized.
+/// Module being reoptimized, and an ExistingModuleProvider for it -
+/// currently, we do NOT support on-demand function loading, a/k/a
+/// "materializing".
 ///
 extern Module *M;
+extern ModuleProvider *MP;
 
 /// When this is set to true, calls to Solaris CPC library functions
 /// will be inserted that turn on performance counters whenever we are
@@ -65,6 +80,10 @@
 /// engine.
 ///
 extern bool enable_trace_optimizer;
+
+/// When this is set to true, turn on the phase detection stuff.
+///
+extern bool enable_phase_detect;
 
 } // end namespace llvm
 





More information about the llvm-commits mailing list