diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-12-05 07:13:35 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-12-05 07:13:35 +0000 |
commit | e5e035a3a86a8491b4e05395b73ec257438dc4af (patch) | |
tree | f2e2be1ac726e2830bcde551a8ff0bd160e108b5 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 58ee28410a29d9cd084c03d2dfb22aba53ef4029 (diff) | |
download | bcm5719-llvm-e5e035a3a86a8491b4e05395b73ec257438dc4af.tar.gz bcm5719-llvm-e5e035a3a86a8491b4e05395b73ec257438dc4af.zip |
Replace uint16_t with the MCPhysReg typedef in many places. A lot of physical register arrays already use this typedef.
llvm-svn: 254843
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index e202810bf6e..1eb2edcd7ce 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -631,10 +631,12 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST) const { void MachineInstr::addImplicitDefUseOperands(MachineFunction &MF) { if (MCID->ImplicitDefs) - for (const uint16_t *ImpDefs = MCID->getImplicitDefs(); *ImpDefs; ++ImpDefs) + for (const MCPhysReg *ImpDefs = MCID->getImplicitDefs(); *ImpDefs; + ++ImpDefs) addOperand(MF, MachineOperand::CreateReg(*ImpDefs, true, true)); if (MCID->ImplicitUses) - for (const uint16_t *ImpUses = MCID->getImplicitUses(); *ImpUses; ++ImpUses) + for (const MCPhysReg *ImpUses = MCID->getImplicitUses(); *ImpUses; + ++ImpUses) addOperand(MF, MachineOperand::CreateReg(*ImpUses, false, true)); } |