[llvm] 073b057 - [Target] Construct SmallVector<MachineMemOperand *> with ArrayRef (NFC) (#102779)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 00:13:01 PDT 2024
Author: Kazu Hirata
Date: 2024-08-11T00:12:57-07:00
New Revision: 073b0578b79904647e601937954e800b918f2b29
URL: https://github.com/llvm/llvm-project/commit/073b0578b79904647e601937954e800b918f2b29
DIFF: https://github.com/llvm/llvm-project/commit/073b0578b79904647e601937954e800b918f2b29.diff
LOG: [Target] Construct SmallVector<MachineMemOperand *> with ArrayRef (NFC) (#102779)
Added:
Modified:
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp
index 04624c6ce769df..875d8831e9b73c 100644
--- a/llvm/lib/Target/VE/VEISelLowering.cpp
+++ b/llvm/lib/Target/VE/VEISelLowering.cpp
@@ -2184,8 +2184,7 @@ VETargetLowering::emitEHSjLjSetJmp(MachineInstr &MI,
MachineFunction::iterator I = ++MBB->getIterator();
// Memory Reference.
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
Register BufReg = MI.getOperand(1).getReg();
Register DstReg;
@@ -2311,8 +2310,7 @@ VETargetLowering::emitEHSjLjLongJmp(MachineInstr &MI,
MachineRegisterInfo &MRI = MF->getRegInfo();
// Memory Reference.
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
Register BufReg = MI.getOperand(0).getReg();
Register Tmp = MRI.createVirtualRegister(&VE::I64RegClass);
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index b604e85b46e788..895435f102a1cc 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -35771,8 +35771,7 @@ void X86TargetLowering::emitSetJmpShadowStackFix(MachineInstr &MI,
MachineInstrBuilder MIB;
// Memory Reference.
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
// Initialize a register with zero.
MVT PVT = getPointerTy(MF->getDataLayout());
@@ -35817,8 +35816,7 @@ X86TargetLowering::emitEHSjLjSetJmp(MachineInstr &MI,
MachineFunction::iterator I = ++MBB->getIterator();
// Memory Reference
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
unsigned DstReg;
unsigned MemOpndSlot = 0;
@@ -35974,8 +35972,7 @@ X86TargetLowering::emitLongJmpShadowStackFix(MachineInstr &MI,
MachineRegisterInfo &MRI = MF->getRegInfo();
// Memory Reference
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
MVT PVT = getPointerTy(MF->getDataLayout());
const TargetRegisterClass *PtrRC = getRegClassFor(PVT);
@@ -36164,8 +36161,7 @@ X86TargetLowering::emitEHSjLjLongJmp(MachineInstr &MI,
MachineRegisterInfo &MRI = MF->getRegInfo();
// Memory Reference
- SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands_begin(),
- MI.memoperands_end());
+ SmallVector<MachineMemOperand *, 2> MMOs(MI.memoperands());
MVT PVT = getPointerTy(MF->getDataLayout());
assert((PVT == MVT::i64 || PVT == MVT::i32) &&
More information about the llvm-commits
mailing list