Skip to content

Commit 86ae25d

Browse files
committed
[CodeGen][X86] Use Register in TTI unfoldMemoryOperand interface. NFC
1 parent fc17114 commit 86ae25d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/TargetInstrInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ class TargetInstrInfo : public MCInstrInfo {
14331433
/// a store or a load and a store into two or more instruction. If this is
14341434
/// possible, returns true as well as the new instructions by reference.
14351435
virtual bool
1436-
unfoldMemoryOperand(MachineFunction &MF, MachineInstr &MI, unsigned Reg,
1436+
unfoldMemoryOperand(MachineFunction &MF, MachineInstr &MI, Register Reg,
14371437
bool UnfoldLoad, bool UnfoldStore,
14381438
SmallVectorImpl<MachineInstr *> &NewMIs) const {
14391439
return false;

llvm/lib/Target/X86/X86InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8492,7 +8492,7 @@ static unsigned getBroadcastOpcode(const X86FoldTableEntry *I,
84928492
}
84938493

84948494
bool X86InstrInfo::unfoldMemoryOperand(
8495-
MachineFunction &MF, MachineInstr &MI, unsigned Reg, bool UnfoldLoad,
8495+
MachineFunction &MF, MachineInstr &MI, Register Reg, bool UnfoldLoad,
84968496
bool UnfoldStore, SmallVectorImpl<MachineInstr *> &NewMIs) const {
84978497
const X86FoldTableEntry *I = lookupUnfoldTable(MI.getOpcode());
84988498
if (I == nullptr)

llvm/lib/Target/X86/X86InstrInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ class X86InstrInfo final : public X86GenInstrInfo {
463463
LiveIntervals *LIS = nullptr) const override;
464464

465465
bool
466-
unfoldMemoryOperand(MachineFunction &MF, MachineInstr &MI, unsigned Reg,
466+
unfoldMemoryOperand(MachineFunction &MF, MachineInstr &MI, Register Reg,
467467
bool UnfoldLoad, bool UnfoldStore,
468468
SmallVectorImpl<MachineInstr *> &NewMIs) const override;
469469

0 commit comments

Comments
 (0)