Skip to content

Commit

Permalink
[lanai] Fix build by updating calls to getLoad & getStore.
Browse files Browse the repository at this point in the history
rL275592 removed the boolean parameters of SelectionDAG::getLoad and getStore, updating Lanai backend's calls to these functions.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275631 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jpienaar committed Jul 15, 2016
1 parent 9b30e73 commit 6417b3c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/Target/Lanai/LanaiISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,7 @@ SDValue LanaiTargetLowering::LowerCCCArguments(
SDValue FIN = DAG.getFrameIndex(FI, MVT::i32);
InVals.push_back(DAG.getLoad(
VA.getLocVT(), DL, Chain, FIN,
MachinePointerInfo::getFixedStack(DAG.getMachineFunction(), FI),
false, false, false, 0));
MachinePointerInfo::getFixedStack(DAG.getMachineFunction(), FI)));
}
}

Expand Down Expand Up @@ -683,8 +682,8 @@ SDValue LanaiTargetLowering::LowerCCCCallTo(
DAG.getNode(ISD::ADD, DL, getPointerTy(DAG.getDataLayout()), StackPtr,
DAG.getIntPtrConstant(VA.getLocMemOffset(), DL));

MemOpChains.push_back(DAG.getStore(
Chain, DL, Arg, PtrOff, MachinePointerInfo(), false, false, 0));
MemOpChains.push_back(
DAG.getStore(Chain, DL, Arg, PtrOff, MachinePointerInfo()));
}
}

Expand Down Expand Up @@ -1013,7 +1012,7 @@ SDValue LanaiTargetLowering::LowerVASTART(SDValue Op, SelectionDAG &DAG) const {
// memory location argument.
const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
return DAG.getStore(Op.getOperand(0), DL, FI, Op.getOperand(1),
MachinePointerInfo(SV), false, false, 0);
MachinePointerInfo(SV));
}

SDValue LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
Expand Down Expand Up @@ -1065,8 +1064,7 @@ SDValue LanaiTargetLowering::LowerRETURNADDR(SDValue Op,
const unsigned Offset = -4;
SDValue Ptr = DAG.getNode(ISD::ADD, DL, VT, FrameAddr,
DAG.getIntPtrConstant(Offset, DL));
return DAG.getLoad(VT, DL, DAG.getEntryNode(), Ptr, MachinePointerInfo(),
false, false, false, 0);
return DAG.getLoad(VT, DL, DAG.getEntryNode(), Ptr, MachinePointerInfo());
}

// Return the link register, which contains the return address.
Expand All @@ -1088,8 +1086,8 @@ SDValue LanaiTargetLowering::LowerFRAMEADDR(SDValue Op,
const unsigned Offset = -8;
SDValue Ptr = DAG.getNode(ISD::ADD, DL, VT, FrameAddr,
DAG.getIntPtrConstant(Offset, DL));
FrameAddr = DAG.getLoad(VT, DL, DAG.getEntryNode(), Ptr,
MachinePointerInfo(), false, false, false, 0);
FrameAddr =
DAG.getLoad(VT, DL, DAG.getEntryNode(), Ptr, MachinePointerInfo());
}
return FrameAddr;
}
Expand Down

0 comments on commit 6417b3c

Please sign in to comment.