mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
Rename a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f85cd7704
commit
d90733035d
@ -61,7 +61,7 @@ MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr *MI) const {
|
||||
}
|
||||
|
||||
bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
|
||||
std::vector<MachineOperand> &Cond) const {
|
||||
std::vector<MachineOperand> &Pred) const {
|
||||
bool MadeChange = false;
|
||||
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
|
||||
if (TID->Flags & M_PREDICABLE) {
|
||||
@ -69,13 +69,13 @@ bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
|
||||
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
if (MO.isReg()) {
|
||||
MO.setReg(Cond[j].getReg());
|
||||
MO.setReg(Pred[j].getReg());
|
||||
MadeChange = true;
|
||||
} else if (MO.isImm()) {
|
||||
MO.setImm(Cond[j].getImmedValue());
|
||||
MO.setImm(Pred[j].getImmedValue());
|
||||
MadeChange = true;
|
||||
} else if (MO.isMBB()) {
|
||||
MO.setMachineBasicBlock(Cond[j].getMachineBasicBlock());
|
||||
MO.setMachineBasicBlock(Pred[j].getMachineBasicBlock());
|
||||
MadeChange = true;
|
||||
}
|
||||
++j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user