[llvm-commits] CVS: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Mon Nov 3 01:01:05 PST 2003


Changes in directory reopt/lib/LightWtProfiling:

RuntimeOptimizations.cpp updated: 1.8 -> 1.9

---
Log message:

Include TraceToFunction.h.
Don't separately declare runTraceToFunction().
Update some comments.


---
Diffs of the changes:  (+2 -14)

Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.8 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.9
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.8	Thu Oct 23 13:51:13 2003
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp	Mon Nov  3 01:00:01 2003
@@ -9,6 +9,7 @@
 #include "GetTimer.h"
 #include "Globals.h"
 #include "Trace.h"
+#include "TraceToFunction.h"
 #include "Support/Debug.h"
 #include "Support/StringExtras.h"
 #include "llvm/PassManager.h"
@@ -17,9 +18,6 @@
 #include <set>
 #include <fstream>
 
-// From TraceToFunction.cpp
-extern Function *runTraceToFunction (Trace &T);
-
 // From Initialization.cpp
 extern void initModules ();
 
@@ -62,21 +60,11 @@
   PM.add (createVerifierPass ());
   PM.run (*TF);
 
-
   // Make the ExecutionEngine generate code for the function and give us
-  // a pointer to it.
+  // the MachineFunctions so that we can run UnpackTraceFunction on them.
   // FIXME: Register allocation hints presumably would need to be added
   // to the PassManager of the ExecutionEngine.
   ExecutionEngine *EE = new ExecutionEngine (TF->getParent (), false, false);
   void (*p)() = EE->getPointerToFunction (TF);
-
-  // Generate basic block with fixup code for entry:
-  // Suppose we have a ValueToRegMap which maps values to machine registers
-  // at the entry to the first on-trace basic block. 
-  // (How would we get this?)
-  // For each value V in the Trace's live-in set,
-  //   We want to copy V from its register in the matrix function ...
-
-   
 #endif
 }





More information about the llvm-commits mailing list