forked from OSchip/llvm-project
[NVPTX] Don't rely on default arguments to SelectionDAG::getMemIntrinsicNode. NFC.
NFC followup to D33147, this explicitly sets all the arguments (instead of relying on the defaults) to SelectionDAG::getMemIntrinsicNode to help identify -verify-machineinstrs issues. llvm-svn: 303047
This commit is contained in:
parent
57c4f648d1
commit
f8389656e3
|
|
@ -1548,7 +1548,9 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
|||
|
||||
Chain = DAG.getMemIntrinsicNode(
|
||||
Op, dl, DAG.getVTList(MVT::Other, MVT::Glue), StoreOperands,
|
||||
TheStoreType, MachinePointerInfo(), EltAlign);
|
||||
TheStoreType, MachinePointerInfo(), EltAlign,
|
||||
/* Volatile */ false, /* ReadMem */ true,
|
||||
/* WriteMem */ true, /* Size */ 0);
|
||||
InFlag = Chain.getValue(1);
|
||||
|
||||
// Cleanup.
|
||||
|
|
@ -1608,7 +1610,9 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
|||
theVal, InFlag };
|
||||
Chain = DAG.getMemIntrinsicNode(NVPTXISD::StoreParam, dl, CopyParamVTs,
|
||||
CopyParamOps, elemtype,
|
||||
MachinePointerInfo());
|
||||
MachinePointerInfo(), /* Align */ 0,
|
||||
/* Volatile */ false, /* ReadMem */ true,
|
||||
/* WriteMem */ true, /* Size */ 0);
|
||||
|
||||
InFlag = Chain.getValue(1);
|
||||
}
|
||||
|
|
@ -1794,7 +1798,8 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
|||
DAG.getConstant(Offsets[VecIdx], dl, MVT::i32), InFlag};
|
||||
SDValue RetVal = DAG.getMemIntrinsicNode(
|
||||
Op, dl, DAG.getVTList(LoadVTs), LoadOperands, TheLoadType,
|
||||
MachinePointerInfo(), EltAlign);
|
||||
MachinePointerInfo(), EltAlign, /* Volatile */ false,
|
||||
/* ReadMem */ true, /* WriteMem */ true, /* Size */ 0);
|
||||
|
||||
for (unsigned j = 0; j < NumElts; ++j) {
|
||||
SDValue Ret = RetVal.getValue(j);
|
||||
|
|
|
|||
Loading…
Reference in New Issue