mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
simplify interface to SelectionDAG::getMemIntrinsicNode, making it take a MachinePointerInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3795,18 +3795,18 @@ SDValue
|
||||
SelectionDAG::getMemIntrinsicNode(unsigned Opcode, DebugLoc dl,
|
||||
const EVT *VTs, unsigned NumVTs,
|
||||
const SDValue *Ops, unsigned NumOps,
|
||||
EVT MemVT, const Value *srcValue, int SVOff,
|
||||
EVT MemVT, MachinePointerInfo PtrInfo,
|
||||
unsigned Align, bool Vol,
|
||||
bool ReadMem, bool WriteMem) {
|
||||
return getMemIntrinsicNode(Opcode, dl, makeVTList(VTs, NumVTs), Ops, NumOps,
|
||||
MemVT, srcValue, SVOff, Align, Vol,
|
||||
MemVT, PtrInfo, Align, Vol,
|
||||
ReadMem, WriteMem);
|
||||
}
|
||||
|
||||
SDValue
|
||||
SelectionDAG::getMemIntrinsicNode(unsigned Opcode, DebugLoc dl, SDVTList VTList,
|
||||
const SDValue *Ops, unsigned NumOps,
|
||||
EVT MemVT, const Value *srcValue, int SVOff,
|
||||
EVT MemVT, MachinePointerInfo PtrInfo,
|
||||
unsigned Align, bool Vol,
|
||||
bool ReadMem, bool WriteMem) {
|
||||
if (Align == 0) // Ensure that codegen never sees alignment 0
|
||||
@@ -3821,8 +3821,7 @@ SelectionDAG::getMemIntrinsicNode(unsigned Opcode, DebugLoc dl, SDVTList VTList,
|
||||
if (Vol)
|
||||
Flags |= MachineMemOperand::MOVolatile;
|
||||
MachineMemOperand *MMO =
|
||||
MF.getMachineMemOperand(MachinePointerInfo(srcValue, SVOff), Flags,
|
||||
MemVT.getStoreSize(), Align);
|
||||
MF.getMachineMemOperand(PtrInfo, Flags, MemVT.getStoreSize(), Align);
|
||||
|
||||
return getMemIntrinsicNode(Opcode, dl, VTList, Ops, NumOps, MemVT, MMO);
|
||||
}
|
||||
|
Reference in New Issue
Block a user