Lines Matching refs:Chain
163 SparcTargetLowering::LowerReturn(SDValue Chain,
169 return LowerReturn_64(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG);
170 return LowerReturn_32(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG);
174 SparcTargetLowering::LowerReturn_32(SDValue Chain,
192 SmallVector<SDValue, 4> RetOps(1, Chain);
201 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(),
205 Flag = Chain.getValue(1);
216 SDValue Val = DAG.getCopyFromReg(Chain, DL, Reg, getPointerTy());
217 Chain = DAG.getCopyToReg(Chain, DL, SP::I0, Val, Flag);
218 Flag = Chain.getValue(1);
223 RetOps[0] = Chain; // Update chain.
237 SparcTargetLowering::LowerReturn_64(SDValue Chain,
253 SmallVector<SDValue, 4> RetOps(1, Chain);
295 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), OutVal, Flag);
298 Flag = Chain.getValue(1);
302 RetOps[0] = Chain; // Update chain.
313 LowerFormalArguments(SDValue Chain,
321 return LowerFormalArguments_64(Chain, CallConv, IsVarArg, Ins,
323 return LowerFormalArguments_32(Chain, CallConv, IsVarArg, Ins,
331 LowerFormalArguments_32(SDValue Chain,
357 SDValue Arg = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
369 SDValue HiVal = DAG.getCopyFromReg(Chain, dl, VRegHi, MVT::i32);
379 LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
385 LoVal = DAG.getCopyFromReg(Chain, dl, loReg, MVT::i32);
395 SDValue Arg = DAG.getCopyFromReg(Chain, dl, VReg, MVT::i32);
419 SDValue Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr,
430 SDValue HiVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
438 SDValue LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr2,
455 Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr,
464 Load = DAG.getExtLoad(LoadOp, dl, MVT::i32, Chain, FIPtr,
481 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Copy, Chain);
520 OutChains.push_back(Chain);
521 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
526 return Chain;
531 LowerFormalArguments_64(SDValue Chain,
558 SDValue Arg = DAG.getCopyFromReg(Chain, DL, VReg, VA.getLocVT());
600 InVals.push_back(DAG.getLoad(VA.getValVT(), DL, Chain,
607 return Chain;
628 SDValue VArg = DAG.getCopyFromReg(Chain, DL, VReg, MVT::i64);
630 OutChains.push_back(DAG.getStore(Chain, DL, VArg,
637 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other,
640 return Chain;
660 SDValue Chain = CLI.Chain;
698 Chain = DAG.getMemcpy(Chain, dl, FIPtr, Arg, SizeNode, Align,
705 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(ArgsSize, true),
750 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
767 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
800 MemOpChains.push_back(DAG.getStore(Chain, dl, Lo, PtrOff,
810 MemOpChains.push_back(DAG.getStore(Chain, dl, Hi, PtrOff,
816 MemOpChains.push_back(DAG.getStore(Chain, dl, Lo, PtrOff,
841 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
849 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
859 Chain = DAG.getCopyToReg(Chain, dl, Reg, RegsToPass[i].second, InFlag);
860 InFlag = Chain.getValue(1);
876 Ops.push_back(Chain);
886 Chain = DAG.getNode(SPISD::CALL, dl, NodeTys, &Ops[0], Ops.size());
887 InFlag = Chain.getValue(1);
889 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(ArgsSize, true),
891 InFlag = Chain.getValue(1);
902 Chain = DAG.getCopyFromReg(Chain, dl, toCallerWindow(RVLocs[i].getLocReg()),
904 InFlag = Chain.getValue(2);
905 InVals.push_back(Chain.getValue(0));
908 return Chain;
984 SDValue Chain = CLI.Chain;
1008 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(ArgsSize, true),
1077 MemOpChains.push_back(DAG.getStore(Chain, DL, Arg, PtrOff,
1084 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other,
1093 Chain = DAG.getCopyToReg(Chain, DL,
1095 InGlue = Chain.getValue(1);
1109 Ops.push_back(Chain);
1122 Chain = DAG.getNode(SPISD::CALL, DL, NodeTys, &Ops[0], Ops.size());
1123 InGlue = Chain.getValue(1);
1126 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(ArgsSize, true),
1128 InGlue = Chain.getValue(1);
1148 if (RegisterSDNode *SrcReg = dyn_cast<RegisterSDNode>(Chain.getOperand(1)))
1149 if (SrcReg->getReg() == Reg && Chain->getOpcode() == ISD::CopyFromReg)
1150 RV = Chain.getValue(0);
1154 RV = DAG.getCopyFromReg(Chain, DL, Reg, RVLocs[i].getLocVT(), InGlue);
1155 Chain = RV.getValue(1);
1156 InGlue = Chain.getValue(2);
1186 return Chain;
1569 SDValue Chain = Op.getOperand(0);
1593 return DAG.getNode(Opc, dl, MVT::Other, Chain, Dest,
1669 SDValue Chain = Op.getOperand(0); // Legalize the chain.
1674 SDValue SP = DAG.getCopyFromReg(Chain, dl, SPReg, MVT::i32);
1676 Chain = DAG.getCopyToReg(SP.getValue(1), dl, SPReg, NewSP); // Output chain
1682 SDValue Ops[2] = { NewVal, Chain };
1689 SDValue Chain = DAG.getNode(SPISD::FLUSHW,
1691 return Chain;
1709 SDValue Chain = getFLUSHW(Op, DAG);
1710 FrameAddr = DAG.getCopyFromReg(Chain, dl, FrameReg, VT);
1717 Chain,
1745 SDValue Chain = getFLUSHW(Op, DAG);
1746 RetAddr = DAG.getCopyFromReg(Chain, dl, SP::I6, VT);
1754 Chain,