mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -229,7 +229,7 @@ public:
|
||||
bool Removed = false;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
if (MO.isReg() && MO.isKill() && MO.getReg() == reg) {
|
||||
if (MO.isRegister() && MO.isKill() && MO.getReg() == reg) {
|
||||
MO.unsetIsKill();
|
||||
Removed = true;
|
||||
break;
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
bool Removed = false;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
if (MO.isReg() && MO.isDef() && MO.getReg() == reg) {
|
||||
if (MO.isRegister() && MO.isDef() && MO.getReg() == reg) {
|
||||
MO.unsetIsDead();
|
||||
Removed = true;
|
||||
break;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user