diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-04-08 10:49:37 -0400 |
|---|---|---|
| committer | Matt Arsenault <arsenm2@gmail.com> | 2020-04-08 12:10:58 -0400 |
| commit | 7a46e36d518868fd77518c9e0dc13786ffb969c5 (patch) | |
| tree | 6cd435f852341984aa4c45d5bb40f388affb0876 /llvm/lib/CodeGen/CallingConvLower.cpp | |
| parent | ca0ace72987eb776f3103cf444bd160094a50cbc (diff) | |
CodeGen: Use Register more in CallLowering
Some of these MCPhysReg uses should probably be MCRegister, but right
now this would require more invasive changes.
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index 4078ece31935..12c4f1b6a219 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -59,12 +59,12 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT, MVT LocVT, } /// Mark a register and all of its aliases as allocated. -void CCState::MarkAllocated(unsigned Reg) { +void CCState::MarkAllocated(MCPhysReg Reg) { for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) - UsedRegs[*AI/32] |= 1 << (*AI&31); + UsedRegs[*AI / 32] |= 1 << (*AI & 31); } -bool CCState::IsShadowAllocatedReg(unsigned Reg) const { +bool CCState::IsShadowAllocatedReg(MCRegister Reg) const { if (!isAllocated(Reg)) return false; |
