summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-03-06 08:56:47 -0800
committerCraig Topper <craig.topper@sifive.com>2025-03-06 09:08:21 -0800
commitbdf50f029232d30e820dfc222bee8eecd3945155 (patch)
tree4794039f39cba0a09d3c7d0fc68c6bd8d457e7f7 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parentd0b8f5d8b3e11b283695558c3bcdea7629e9838b (diff)
[CodeGen] Use Register or MCRegister. NFC
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r--llvm/lib/CodeGen/LocalStackSlotAllocation.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
index 0e9f041f7bfd..987f64f56403 100644
--- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
@@ -287,13 +287,11 @@ void LocalStackSlotImpl::calculateFrameObjectOffsets(MachineFunction &Fn) {
MFI.setLocalFrameMaxAlign(MaxAlign);
}
-static inline bool
-lookupCandidateBaseReg(unsigned BaseReg,
- int64_t BaseOffset,
- int64_t FrameSizeAdjust,
- int64_t LocalFrameOffset,
- const MachineInstr &MI,
- const TargetRegisterInfo *TRI) {
+static inline bool lookupCandidateBaseReg(Register BaseReg, int64_t BaseOffset,
+ int64_t FrameSizeAdjust,
+ int64_t LocalFrameOffset,
+ const MachineInstr &MI,
+ const TargetRegisterInfo *TRI) {
// Check if the relative offset from the where the base register references
// to the target address is in range for the instruction.
int64_t Offset = FrameSizeAdjust + LocalFrameOffset - BaseOffset;