[llvm-commits] CVS: llvm-gcc/gcc/llvm-representation.c llvm-representation.h

Chris Lattner lattner at cs.uiuc.edu
Fri May 7 11:23:09 PDT 2004


Changes in directory llvm-gcc/gcc:

llvm-representation.c updated: 1.5 -> 1.6
llvm-representation.h updated: 1.4 -> 1.5

---
Log message:

Add support for the select instruction


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

Index: llvm-gcc/gcc/llvm-representation.c
diff -u llvm-gcc/gcc/llvm-representation.c:1.5 llvm-gcc/gcc/llvm-representation.c:1.6
--- llvm-gcc/gcc/llvm-representation.c:1.5	Tue Mar  9 20:50:57 2004
+++ llvm-gcc/gcc/llvm-representation.c	Fri May  7 11:22:57 2004
@@ -390,6 +390,7 @@
   case O_Call:          fprintf(F, "call"); break;
   case O_Shl:           fprintf(F, "shl"); break;
   case O_Shr:           fprintf(F, "shr"); break;
+  case O_Select:        fprintf(F, "select"); break;
   case O_VAArg:         fprintf(F, "vaarg"); break;
   case O_VANext:        fprintf(F, "vanext"); break;
   default:              fprintf(F, "<unknown instruction opcode>"); break;
@@ -712,7 +713,8 @@
      * the type from all but the first operand.  If the instruction has
      * different type operands (for example br), then they are all printed.
      */
-    int PrintAllTypes = I->Opcode == O_Shr || I->Opcode == O_Shl || !Operand;
+    int PrintAllTypes =
+      I->Opcode == O_Shr || I->Opcode == O_Shl || I->Opcode == O_Select || !Operand;
     llvm_type *TheType = Operand ? Operand->Ty : VoidTy;
     
     if (!PrintAllTypes)


Index: llvm-gcc/gcc/llvm-representation.h
diff -u llvm-gcc/gcc/llvm-representation.h:1.4 llvm-gcc/gcc/llvm-representation.h:1.5
--- llvm-gcc/gcc/llvm-representation.h:1.4	Tue Mar 16 01:06:12 2004
+++ llvm-gcc/gcc/llvm-representation.h	Fri May  7 11:22:58 2004
@@ -161,7 +161,7 @@
     O_And, O_Or, O_Xor,
     O_SetEQ, O_SetNE, O_SetLE, O_SetGE, O_SetLT, O_SetGT,
     O_Alloca, O_Malloc, O_Load, O_Store, O_GetElementPtr,
-    O_PHINode, O_Cast, O_Call, O_Shl, O_Shr, O_VAArg, O_VANext
+    O_PHINode, O_Cast, O_Call, O_Shl, O_Shr, O_Select, O_VAArg, O_VANext
   } Opcode;
 
   union {





More information about the llvm-commits mailing list