[llvm] 9b298a1 - [WebAssembly] Use Register instead of unsigned. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 23:28:07 PST 2025
Author: Craig Topper
Date: 2025-02-24T23:22:20-08:00
New Revision: 9b298a1d3d2280c2b09f4a905d079bab008b5290
URL: https://github.com/llvm/llvm-project/commit/9b298a1d3d2280c2b09f4a905d079bab008b5290
DIFF: https://github.com/llvm/llvm-project/commit/9b298a1d3d2280c2b09f4a905d079bab008b5290.diff
LOG: [WebAssembly] Use Register instead of unsigned. NFC
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
index 2519592f497ae..40ae4aef1d7f2 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
@@ -119,20 +119,20 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo {
}
void setBasePointerVreg(unsigned Reg) { BasePtrVreg = Reg; }
- void stackifyVReg(MachineRegisterInfo &MRI, unsigned VReg) {
+ void stackifyVReg(MachineRegisterInfo &MRI, Register VReg) {
assert(MRI.getUniqueVRegDef(VReg));
- auto I = Register(VReg).virtRegIndex();
+ auto I = VReg.virtRegIndex();
if (I >= VRegStackified.size())
VRegStackified.resize(I + 1);
VRegStackified.set(I);
}
- void unstackifyVReg(unsigned VReg) {
- auto I = Register(VReg).virtRegIndex();
+ void unstackifyVReg(Register VReg) {
+ auto I = VReg.virtRegIndex();
if (I < VRegStackified.size())
VRegStackified.reset(I);
}
- bool isVRegStackified(unsigned VReg) const {
- auto I = Register(VReg).virtRegIndex();
+ bool isVRegStackified(Register VReg) const {
+ auto I = VReg.virtRegIndex();
if (I >= VRegStackified.size())
return false;
return VRegStackified.test(I);
More information about the llvm-commits
mailing list