aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-09-14 20:33:02 +0000
committerDan Gohman <djg@cray.com>2007-09-14 20:33:02 +0000
commit38a9a9f8be9243cc958662832067ac17f7bd4558 (patch)
tree14670779a18a50be87d7bbd426a595a04ca6ed77 /include/llvm/CodeGen/MachineInstr.h
parentf923197513f49afd96fa58aadc7bfa1bcadf8a63 (diff)
downloadexternal_llvm-38a9a9f8be9243cc958662832067ac17f7bd4558.zip
external_llvm-38a9a9f8be9243cc958662832067ac17f7bd4558.tar.gz
external_llvm-38a9a9f8be9243cc958662832067ac17f7bd4558.tar.bz2
Remove isReg, isImm, and isMBB, and change all their users to use
isRegister, isImmediate, and isMachineBasicBlock, which are equivalent, and more popular. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 4ba436b..3dbda8d 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -131,10 +131,6 @@ public:
/// Accessors that tell you what kind of MachineOperand you're looking at.
///
- bool isReg() const { return opType == MO_Register; }
- bool isImm() const { return opType == MO_Immediate; }
- bool isMBB() const { return opType == MO_MachineBasicBlock; }
-
bool isRegister() const { return opType == MO_Register; }
bool isImmediate() const { return opType == MO_Immediate; }
bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }
@@ -145,12 +141,12 @@ public:
bool isExternalSymbol() const { return opType == MO_ExternalSymbol; }
int64_t getImm() const {
- assert(isImm() && "Wrong MachineOperand accessor");
+ assert(isImmediate() && "Wrong MachineOperand accessor");
return contents.immedVal;
}
int64_t getImmedValue() const {
- assert(isImm() && "Wrong MachineOperand accessor");
+ assert(isImmediate() && "Wrong MachineOperand accessor");
return contents.immedVal;
}
MachineBasicBlock *getMBB() const {
@@ -257,11 +253,11 @@ public:
}
void setImmedValue(int64_t immVal) {
- assert(isImm() && "Wrong MachineOperand mutator");
+ assert(isImmediate() && "Wrong MachineOperand mutator");
contents.immedVal = immVal;
}
void setImm(int64_t immVal) {
- assert(isImm() && "Wrong MachineOperand mutator");
+ assert(isImmediate() && "Wrong MachineOperand mutator");
contents.immedVal = immVal;
}