[llvm-commits] CVS: llvm-gcc/gcc/llvm-representation.c llvm-representation.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 17 21:15:59 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-representation.c updated: 1.10 -> 1.11
llvm-representation.h updated: 1.9 -> 1.10
---
Log message:
Add ability to represent the unreachable instruction
---
Diffs of the changes: (+3 -2)
Index: llvm-gcc/gcc/llvm-representation.c
diff -u llvm-gcc/gcc/llvm-representation.c:1.10 llvm-gcc/gcc/llvm-representation.c:1.11
--- llvm-gcc/gcc/llvm-representation.c:1.10 Tue Jul 6 23:19:38 2004
+++ llvm-gcc/gcc/llvm-representation.c Sun Oct 17 23:15:45 2004
@@ -372,6 +372,7 @@
case O_Switch: fprintf(F, "switch"); break;
case O_Invoke: fprintf(F, "invoke"); break;
case O_Unwind: fprintf(F, "unwind"); break;
+ case O_Unreachable: fprintf(F, "unreachable"); break;
case O_Add: fprintf(F, "add"); break;
case O_Sub: fprintf(F, "sub"); break;
case O_Mul: fprintf(F, "mul"); break;
Index: llvm-gcc/gcc/llvm-representation.h
diff -u llvm-gcc/gcc/llvm-representation.h:1.9 llvm-gcc/gcc/llvm-representation.h:1.10
--- llvm-gcc/gcc/llvm-representation.h:1.9 Tue Jul 6 22:19:52 2004
+++ llvm-gcc/gcc/llvm-representation.h Sun Oct 17 23:15:45 2004
@@ -157,7 +157,7 @@
llvm_ilist_node(struct llvm_instruction, Instructions);
enum InstOpcode {
- O_Ret, O_Br, O_Switch, O_Invoke, O_Unwind,
+ O_Ret, O_Br, O_Switch, O_Invoke, O_Unwind, O_Unreachable,
O_Add, O_Sub, O_Mul, O_Div, O_Rem,
O_And, O_Or, O_Xor,
O_SetEQ, O_SetNE, O_SetLE, O_SetGE, O_SetLT, O_SetGT,
@@ -190,7 +190,7 @@
void llvm_instruction_print(llvm_instruction *I, FILE *F);
void llvm_instruction_dump(llvm_instruction *I);
-#define llvm_instruction_is_terminator(INST) ((INST)->Opcode <= O_Unwind)
+#define llvm_instruction_is_terminator(INST) ((INST)->Opcode <= O_Unreachable)
/* Helper functions */
llvm_instruction *create_alloca_inst(const char *Name,
More information about the llvm-commits
mailing list