[llvm] b12d338 - [AArch64] Use MCRegister in AArch64InstrInfo::copyGPRRegTuple interface. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 25 22:22:41 PDT 2024
Author: Craig Topper
Date: 2024-08-25T22:11:31-07:00
New Revision: b12d338c17ef1228bb98e5106a6b714b90110a26
URL: https://github.com/llvm/llvm-project/commit/b12d338c17ef1228bb98e5106a6b714b90110a26
DIFF: https://github.com/llvm/llvm-project/commit/b12d338c17ef1228bb98e5106a6b714b90110a26.diff
LOG: [AArch64] Use MCRegister in AArch64InstrInfo::copyGPRRegTuple interface. NFC
This matches copyPhysReg.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 697ae510a95655..f37ada1bf5c5f2 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -4778,7 +4778,7 @@ bool AArch64InstrInfo::shouldClusterMemOps(
}
static const MachineInstrBuilder &AddSubReg(const MachineInstrBuilder &MIB,
- unsigned Reg, unsigned SubIdx,
+ MCRegister Reg, unsigned SubIdx,
unsigned State,
const TargetRegisterInfo *TRI) {
if (!SubIdx)
@@ -4825,8 +4825,8 @@ void AArch64InstrInfo::copyPhysRegTuple(MachineBasicBlock &MBB,
void AArch64InstrInfo::copyGPRRegTuple(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I,
- DebugLoc DL, unsigned DestReg,
- unsigned SrcReg, bool KillSrc,
+ DebugLoc DL, MCRegister DestReg,
+ MCRegister SrcReg, bool KillSrc,
unsigned Opcode, unsigned ZeroReg,
llvm::ArrayRef<unsigned> Indices) const {
const TargetRegisterInfo *TRI = &getRegisterInfo();
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
index a1f2fbff016312..59f729a856a8e9 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
@@ -339,7 +339,7 @@ class AArch64InstrInfo final : public AArch64GenInstrInfo {
MCRegister SrcReg, bool KillSrc, unsigned Opcode,
llvm::ArrayRef<unsigned> Indices) const;
void copyGPRRegTuple(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
- DebugLoc DL, unsigned DestReg, unsigned SrcReg,
+ DebugLoc DL, MCRegister DestReg, MCRegister SrcReg,
bool KillSrc, unsigned Opcode, unsigned ZeroReg,
llvm::ArrayRef<unsigned> Indices) const;
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
More information about the llvm-commits
mailing list