[llvm-commits] CVS: reopt/lib/LightWtProfiling/FirstTrigger.cpp Initialization.cpp SLI.cpp SecondTrigger.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jan 16 11:03:21 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

FirstTrigger.cpp updated: 1.18 -> 1.19
Initialization.cpp updated: 1.14 -> 1.15
SLI.cpp updated: 1.13 -> 1.14
SecondTrigger.cpp updated: 1.26 -> 1.27

---
Log message:

More file-header tweaks while I wait for UnpackTraceFunction to compile.

---
Diffs of the changes:  (+16 -9)

Index: reopt/lib/LightWtProfiling/FirstTrigger.cpp
diff -u reopt/lib/LightWtProfiling/FirstTrigger.cpp:1.18 reopt/lib/LightWtProfiling/FirstTrigger.cpp:1.19
--- reopt/lib/LightWtProfiling/FirstTrigger.cpp:1.18	Wed Jan 14 17:02:22 2004
+++ reopt/lib/LightWtProfiling/FirstTrigger.cpp	Fri Jan 16 11:02:00 2004
@@ -1,4 +1,4 @@
-//===-- LightWtProfiling/Trigger/FirstTrigger.cpp ----------------*- C++ -*--=//
+//===-- LightWtProfiling/FirstTrigger.cpp ------------------------*- C++ -*--=//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,7 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file implements the reoptimizer's first-level trigger.  The
+// This file implements the reoptimizer's first-level trigger function.  The
 // first-level trigger is a call, placed at the back-edge of each loop, to
 // the function llvm_first_trigger(). It counts how many times each branch
 // is taken, and if the counter exceeds a threshold, performs second-level


Index: reopt/lib/LightWtProfiling/Initialization.cpp
diff -u reopt/lib/LightWtProfiling/Initialization.cpp:1.14 reopt/lib/LightWtProfiling/Initialization.cpp:1.15
--- reopt/lib/LightWtProfiling/Initialization.cpp:1.14	Wed Jan 14 17:02:22 2004
+++ reopt/lib/LightWtProfiling/Initialization.cpp	Fri Jan 16 11:02:00 2004
@@ -1,4 +1,4 @@
-//===-- LightWtProfiling/Trigger/Initialization.cpp --------------*- C++ -*--=//
+//===-- LightWtProfiling/Initialization.cpp ----------------------*- C++ -*--=//
 // 
 //                     The LLVM Compiler Infrastructure
 //


Index: reopt/lib/LightWtProfiling/SLI.cpp
diff -u reopt/lib/LightWtProfiling/SLI.cpp:1.13 reopt/lib/LightWtProfiling/SLI.cpp:1.14
--- reopt/lib/LightWtProfiling/SLI.cpp:1.13	Wed Jan 14 17:02:22 2004
+++ reopt/lib/LightWtProfiling/SLI.cpp	Fri Jan 16 11:02:02 2004
@@ -1,4 +1,4 @@
-//===- SLI.cpp - Perform second-level instrumentation ------------*- C++-*---=//
+//===- LightWtProfiling/SLI.cpp - Second-level instrumentation ----*- C++ -*-=//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,6 +7,12 @@
 // 
 //===----------------------------------------------------------------------===//
 //
+// This file contains routines that perform second-level instrumentation on
+// traces. Its entry point is the doInstrumentation() function, which is
+// called from FirstTrigger.cpp:llvm_first_trigger(). It inserts calls to
+// the second-level trigger functions -- llvm_time_end() and countPath(),
+// both found in SecondTrigger.cpp -- into traces selected by the first-level
+// instrumentation.
 //
 //===----------------------------------------------------------------------===//
 


Index: reopt/lib/LightWtProfiling/SecondTrigger.cpp
diff -u reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.26 reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.27
--- reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.26	Wed Jan 14 17:02:22 2004
+++ reopt/lib/LightWtProfiling/SecondTrigger.cpp	Fri Jan 16 11:02:02 2004
@@ -7,11 +7,12 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file implements the reoptimizer's second-level trigger.
-// Second-level instrumentation is performed by the first-level trigger
-// function (see FirstTrigger.cpp). It records the paths taken through the
-// instrumented region, as well as the number of early exits taken from
-// the region.
+// This file implements the reoptimizer's second-level trigger function.
+// Second-level instrumentation is triggered by the first-level trigger function
+// (see FirstTrigger.cpp) and performed by the functions in SLI.cpp (starting
+// with doInstrumentation()). It records the paths taken through the
+// instrumented region, as well as the number of early exits taken from the
+// region.
 //
 //===----------------------------------------------------------------------===//
 





More information about the llvm-commits mailing list