diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-13 19:39:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-13 19:39:16 +0000 |
commit | 0b16ae209a1d0876a7ea6800bb567d925443cba3 (patch) | |
tree | efd67aacd32694e22c88507aa97287461bfd0910 /include/llvm/Instruction.h | |
parent | f6c52db3715d53e195c5a7429987deba71ed0af7 (diff) | |
download | external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.zip external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.tar.gz external_llvm-0b16ae209a1d0876a7ea6800bb567d925443cba3.tar.bz2 |
- Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
reflect the fact that it's a range being defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 0674f0e..89c6409 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -68,10 +68,10 @@ public: static const char* getOpcodeName(unsigned OpCode); inline bool isTerminator() const { // Instance of TerminatorInst? - return iType >= FirstTermOp && iType < NumTermOps; + return iType >= TermOpsBegin && iType < TermOpsEnd; } inline bool isBinaryOp() const { - return iType >= FirstBinaryOp && iType < NumBinaryOps; + return iType >= BinaryOpsBegin && iType < BinaryOpsEnd; } virtual void print(std::ostream &OS) const; @@ -86,30 +86,30 @@ public: // Exported enumerations... // enum TermOps { // These terminate basic blocks -#define FIRST_TERM_INST(N) FirstTermOp = N, +#define FIRST_TERM_INST(N) TermOpsBegin = N, #define HANDLE_TERM_INST(N, OPC, CLASS) OPC = N, -#define LAST_TERM_INST(N) NumTermOps = N+1, +#define LAST_TERM_INST(N) TermOpsEnd = N+1, #include "llvm/Instruction.def" }; enum BinaryOps { -#define FIRST_BINARY_INST(N) FirstBinaryOp = N, +#define FIRST_BINARY_INST(N) BinaryOpsBegin = N, #define HANDLE_BINARY_INST(N, OPC, CLASS) OPC = N, -#define LAST_BINARY_INST(N) NumBinaryOps = N+1, +#define LAST_BINARY_INST(N) BinaryOpsEnd = N+1, #include "llvm/Instruction.def" }; enum MemoryOps { -#define FIRST_MEMORY_INST(N) FirstMemoryOp = N, +#define FIRST_MEMORY_INST(N) MemoryOpsBegin = N, #define HANDLE_MEMORY_INST(N, OPC, CLASS) OPC = N, -#define LAST_MEMORY_INST(N) NumMemoryOps = N+1, +#define LAST_MEMORY_INST(N) MemoryOpsEnd = N+1, #include "llvm/Instruction.def" }; enum OtherOps { -#define FIRST_OTHER_INST(N) FirstOtherOp = N, +#define FIRST_OTHER_INST(N) OtherOpsBegin = N, #define HANDLE_OTHER_INST(N, OPC, CLASS) OPC = N, -#define LAST_OTHER_INST(N) NumOtherOps = N+1, +#define LAST_OTHER_INST(N) OtherOpsEnd = N+1, #include "llvm/Instruction.def" }; }; |