diff --git a/include/llvm/Instruction.def b/include/llvm/Instruction.def index c84a465529c..afc12edd500 100644 --- a/include/llvm/Instruction.def +++ b/include/llvm/Instruction.def @@ -25,20 +25,6 @@ #define LAST_TERM_INST(num) #endif -#ifndef FIRST_UNARY_INST -#define FIRST_UNARY_INST(num) -#endif -#ifndef HANDLE_UNARY_INST -#ifndef HANDLE_INST -#define HANDLE_UNARY_INST(num, opcode, Class) -#else -#define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) -#endif -#endif -#ifndef LAST_UNARY_INST -#define LAST_UNARY_INST(num) -#endif - #ifndef FIRST_BINARY_INST #define FIRST_BINARY_INST(num) #endif @@ -93,11 +79,6 @@ HANDLE_TERM_INST ( 3, Switch, SwitchInst) HANDLE_TERM_INST ( 4, Invoke, InvokeInst) LAST_TERM_INST ( 4) -// The single unary instruction... a binary inverse. - FIRST_UNARY_INST ( 5) -HANDLE_UNARY_INST ( 5, Not , GenericBinaryInst) // THIS IS WRONG. *REMOVEME* - LAST_UNARY_INST ( 5) - // Standard binary operators... FIRST_BINARY_INST( 6) HANDLE_BINARY_INST( 6, Add , GenericBinaryInst) @@ -147,10 +128,6 @@ HANDLE_OTHER_INST(32, UserOp2, Instruction) #undef HANDLE_TERM_INST #undef LAST_TERM_INST -#undef FIRST_UNARY_INST -#undef HANDLE_UNARY_INST -#undef LAST_UNARY_INST - #undef FIRST_BINARY_INST #undef HANDLE_BINARY_INST #undef LAST_BINARY_INST diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 41be312853f..d2804ab7041 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -90,13 +90,6 @@ public: #include "llvm/Instruction.def" }; - enum UnaryOps { -#define FIRST_UNARY_INST(N) FirstUnaryOp = N, -#define HANDLE_UNARY_INST(N, OPC, CLASS) OPC = N, -#define LAST_UNARY_INST(N) NumUnaryOps = N+1, -#include "llvm/Instruction.def" - }; - enum BinaryOps { #define FIRST_BINARY_INST(N) FirstBinaryOp = N, #define HANDLE_BINARY_INST(N, OPC, CLASS) OPC = N,