[llvm-commits] CVS: llvm-java/lib/Compiler/BasicBlockBuilder.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Feb 5 13:11:08 PST 2005



Changes in directory llvm-java/lib/Compiler:

BasicBlockBuilder.h updated: 1.5 -> 1.6
---
Log message:

Make false branches come first in the bytecode so that the generated
LLVM is more readable.


---
Diffs of the changes:  (+17 -17)

 BasicBlockBuilder.h |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)


Index: llvm-java/lib/Compiler/BasicBlockBuilder.h
diff -u llvm-java/lib/Compiler/BasicBlockBuilder.h:1.5 llvm-java/lib/Compiler/BasicBlockBuilder.h:1.6
--- llvm-java/lib/Compiler/BasicBlockBuilder.h:1.5	Fri Feb  4 13:52:50 2005
+++ llvm-java/lib/Compiler/BasicBlockBuilder.h	Sat Feb  5 15:10:57 2005
@@ -87,78 +87,78 @@
     }
 
     void do_ifeq(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_ifne(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_iflt(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_ifge(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_ifgt(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_ifle(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmpeq(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmpne(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmplt(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmpgt(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmpge(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_icmple(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_acmpeq(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_if_acmpne(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_jsr(unsigned t, unsigned r) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(r);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_switch(unsigned defTarget, const SwitchCases& sw) {
@@ -174,13 +174,13 @@
     }
 
     void do_ifnull(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
 
     void do_ifnonnull(unsigned t, unsigned f) {
-      getOrCreateBasicBlockAt(t);
       getOrCreateBasicBlockAt(f);
+      getOrCreateBasicBlockAt(t);
     }
   };
 






More information about the llvm-commits mailing list