aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-01-04 13:15:09 +0000
committerJay Foad <jay.foad@amd.com>2023-01-04 13:16:12 +0000
commit6f7ff9b9336dac3936a23ad9fd8cfd1f86279128 (patch)
treedad5a6299d53a4935505376146866d7303d231dd /llvm/lib/CodeGen/MachineInstr.cpp
parent997852920d52442242fca9173a7b003b1164e26d (diff)
downloadllvm-6f7ff9b9336dac3936a23ad9fd8cfd1f86279128.zip
llvm-6f7ff9b9336dac3936a23ad9fd8cfd1f86279128.tar.gz
llvm-6f7ff9b9336dac3936a23ad9fd8cfd1f86279128.tar.bz2
[MC] Consistently use MCInstrDesc::getImplicitUses and getImplicitDefs. NFC.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 53e67225..1145243 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -84,11 +84,11 @@ static void tryToGetTargetInfo(const MachineInstr &MI,
}
void MachineInstr::addImplicitDefUseOperands(MachineFunction &MF) {
- if (MCID->ImplicitDefs)
+ if (MCID->getImplicitDefs())
for (const MCPhysReg *ImpDefs = MCID->getImplicitDefs(); *ImpDefs;
++ImpDefs)
addOperand(MF, MachineOperand::CreateReg(*ImpDefs, true, true));
- if (MCID->ImplicitUses)
+ if (MCID->getImplicitUses())
for (const MCPhysReg *ImpUses = MCID->getImplicitUses(); *ImpUses;
++ImpUses)
addOperand(MF, MachineOperand::CreateReg(*ImpUses, false, true));