diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-26 19:29:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-26 19:29:41 +0000 |
commit | 206fcd450a738e19620ad3f72f1d08c9aa4259a6 (patch) | |
tree | bc77032e3bad25a7a53546ac0bdfc5aa4aa82f42 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | fa7278f18f7e91ad2dc4a0e687d0c67e427b608c (diff) | |
download | bcm5719-llvm-206fcd450a738e19620ad3f72f1d08c9aa4259a6.tar.gz bcm5719-llvm-206fcd450a738e19620ad3f72f1d08c9aa4259a6.zip |
Convert getMemIntrinsicNode to take ArrayRef of SDValue instead of pointer and size.
llvm-svn: 207329
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 637c1df24cb..754f8656db4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3799,8 +3799,7 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I, if (IsTgtIntrinsic) { // This is target intrinsic that touches memory Result = DAG.getMemIntrinsicNode(Info.opc, getCurSDLoc(), - VTs, &Ops[0], Ops.size(), - Info.memVT, + VTs, Ops, Info.memVT, MachinePointerInfo(Info.ptrVal, Info.offset), Info.align, Info.vol, Info.readMem, Info.writeMem); @@ -5320,8 +5319,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { Ops[3] = getValue(I.getArgOperand(2)); Ops[4] = getValue(I.getArgOperand(3)); DAG.setRoot(DAG.getMemIntrinsicNode(ISD::PREFETCH, sdl, - DAG.getVTList(MVT::Other), - &Ops[0], 5, + DAG.getVTList(MVT::Other), Ops, EVT::getIntegerVT(*Context, 8), MachinePointerInfo(I.getArgOperand(0)), 0, /* align */ |