[llvm-commits] CVS: llvm/lib/Reoptimizer/Inst/Phases.cpp

Joel Stanley jstanley at cs.uiuc.edu
Thu Apr 10 18:40:01 PDT 2003


Changes in directory llvm/lib/Reoptimizer/Inst:

Phases.cpp updated: 1.7 -> 1.8

---
Log message:

Checkpoint before generating phase3 calls in heap regions.


---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/Inst/Phases.cpp
diff -u llvm/lib/Reoptimizer/Inst/Phases.cpp:1.7 llvm/lib/Reoptimizer/Inst/Phases.cpp:1.8
--- llvm/lib/Reoptimizer/Inst/Phases.cpp:1.7	Thu Apr 10 18:23:58 2003
+++ llvm/lib/Reoptimizer/Inst/Phases.cpp	Thu Apr 10 18:40:49 2003
@@ -43,6 +43,8 @@
 using std::cerr;
 using std::endl;
 
+void phase3(uint64_t value);
+
 // Phase2 is the class that is responsible for effecting the core of the phase 2
 // transformation; the global function phase2() is simply an C-linkage interface.  
 
@@ -90,13 +92,6 @@
     cerr << "============================== End Phase 2 ==============================\n";    
 }
 
-void phase3(uint64_t value)
-{
-    printf("phase3 called!\n");
-    printf("value passed in is: %lx\n", value);
-    fflush(stdout);
-}
-
 void Phase2::transformFunction(std::pair<uint64_t, uint64_t>& range)
 {
     ////////////////
@@ -162,4 +157,11 @@
     // ===> [size of code for loading 64-bit value] + 5
 
     return m_instManip.getGenLoad64Size() + 5;
+}
+
+void phase3(uint64_t value)
+{
+    printf("phase3 called!\n");
+    printf("value passed in is: %lx\n", value);
+    fflush(stdout);
 }





More information about the llvm-commits mailing list