[llvm-commits] CVS: llvm/include/llvm/InstrTypes.h Instruction.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 13 14:40:01 PDT 2002
Changes in directory llvm/include/llvm:
InstrTypes.h updated: 1.29 -> 1.30
Instruction.h updated: 1.34 -> 1.35
---
Log message:
- Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
reflect the fact that it's a range being defined.
---
Diffs of the changes:
Index: llvm/include/llvm/InstrTypes.h
diff -u llvm/include/llvm/InstrTypes.h:1.29 llvm/include/llvm/InstrTypes.h:1.30
--- llvm/include/llvm/InstrTypes.h:1.29 Tue Sep 10 10:36:07 2002
+++ llvm/include/llvm/InstrTypes.h Sun Oct 13 14:39:06 2002
@@ -47,7 +47,7 @@
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const TerminatorInst *) { return true; }
static inline bool classof(const Instruction *I) {
- return I->getOpcode() >= FirstTermOp && I->getOpcode() < NumTermOps;
+ return I->getOpcode() >= TermOpsBegin && I->getOpcode() < TermOpsEnd;
}
static inline bool classof(const Value *V) {
return isa<Instruction>(V) && classof(cast<Instruction>(V));
@@ -120,7 +120,7 @@
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const BinaryOperator *) { return true; }
static inline bool classof(const Instruction *I) {
- return I->getOpcode() >= FirstBinaryOp && I->getOpcode() < NumBinaryOps;
+ return I->getOpcode() >= BinaryOpsBegin && I->getOpcode() < BinaryOpsEnd;
}
static inline bool classof(const Value *V) {
return isa<Instruction>(V) && classof(cast<Instruction>(V));
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.34 llvm/include/llvm/Instruction.h:1.35
--- llvm/include/llvm/Instruction.h:1.34 Tue Sep 10 10:36:08 2002
+++ llvm/include/llvm/Instruction.h Sun Oct 13 14:39:07 2002
@@ -68,10 +68,10 @@
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 @@
// 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"
};
};
More information about the llvm-commits
mailing list