Lines Matching refs:Chain
81 SparcTargetLowering::LowerReturn(SDValue Chain,
114 Chain = DAG.getCopyToReg(Chain, dl, VA.getLocReg(),
118 Flag = Chain.getValue(1);
128 SDValue Val = DAG.getCopyFromReg(Chain, dl, Reg, getPointerTy());
129 Chain = DAG.getCopyToReg(Chain, dl, SP::I0, Val, Flag);
130 Flag = Chain.getValue(1);
139 return DAG.getNode(SPISD::RET_FLAG, dl, MVT::Other, Chain,
141 return DAG.getNode(SPISD::RET_FLAG, dl, MVT::Other, Chain,
149 SparcTargetLowering::LowerFormalArguments(SDValue Chain,
176 SDValue Arg = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
188 SDValue HiVal = DAG.getCopyFromReg(Chain, dl, VRegHi, MVT::i32);
198 LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
204 LoVal = DAG.getCopyFromReg(Chain, dl, loReg, MVT::i32);
214 SDValue Arg = DAG.getCopyFromReg(Chain, dl, VReg, MVT::i32);
238 SDValue Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr,
249 SDValue HiVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr,
257 SDValue LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr2,
274 Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr,
283 Load = DAG.getExtLoad(LoadOp, dl, MVT::i32, Chain, FIPtr,
300 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Copy, Chain);
339 OutChains.push_back(Chain);
340 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
345 return Chain;
349 SparcTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
389 Chain = DAG.getMemcpy(Chain, dl, FIPtr, Arg, SizeNode, Align,
396 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(ArgsSize, true));
440 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
457 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
490 MemOpChains.push_back(DAG.getStore(Chain, dl, Lo, PtrOff,
500 MemOpChains.push_back(DAG.getStore(Chain, dl, Hi, PtrOff,
506 MemOpChains.push_back(DAG.getStore(Chain, dl, Lo, PtrOff,
531 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
539 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
543 // chain and flag operands which copy the outgoing args into registers.
553 Chain = DAG.getCopyToReg(Chain, dl, Reg, RegsToPass[i].second, InFlag);
554 InFlag = Chain.getValue(1);
567 // Returns a chain & a flag for retval copy to use
570 Ops.push_back(Chain);
584 Chain = DAG.getNode(SPISD::CALL, dl, NodeTys, &Ops[0], Ops.size());
585 InFlag = Chain.getValue(1);
587 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(ArgsSize, true),
589 InFlag = Chain.getValue(1);
606 Chain = DAG.getCopyFromReg(Chain, dl, Reg,
608 InFlag = Chain.getValue(2);
609 InVals.push_back(Chain.getValue(0));
612 return Chain;
939 SDValue Chain = Op.getOperand(0);
966 return DAG.getNode(Opc, dl, MVT::Other, Chain, Dest,
1054 SDValue Chain = Op.getOperand(0); // Legalize the chain.
1059 SDValue SP = DAG.getCopyFromReg(Chain, dl, SPReg, MVT::i32);
1061 Chain = DAG.getCopyToReg(SP.getValue(1), dl, SPReg, NewSP); // Output chain
1067 SDValue Ops[2] = { NewVal, Chain };
1074 SDValue Chain = DAG.getNode(SPISD::FLUSHW,
1076 return Chain;
1094 SDValue Chain = getFLUSHW(Op, DAG);
1095 FrameAddr = DAG.getCopyFromReg(Chain, dl, FrameReg, VT);
1102 Chain,
1125 SDValue Chain = getFLUSHW(Op, DAG);
1126 RetAddr = DAG.getCopyFromReg(Chain, dl, SP::I6, VT);
1134 Chain,