Lines Matching refs:Chain
230 SelectionDAG &DAG, SDValue Chain, in unpackFromRegLoc() argument
256 Val = DAG.getCopyFromReg(Chain, DL, VReg, LocVT); in unpackFromRegLoc()
261 static SDValue unpackFromMemLoc(SelectionDAG &DAG, SDValue Chain, in unpackFromMemLoc() argument
283 ExtType, DL, LocVT, Chain, FIN, in unpackFromMemLoc()
288 static SDValue unpack64(SelectionDAG &DAG, SDValue Chain, const CCValAssign &VA, in unpack64() argument
301 return DAG.getLoad(VA.getValVT(), DL, Chain, FIN, in unpack64()
309 SDValue Lo = DAG.getCopyFromReg(Chain, DL, LoVReg, MVT::i32); in unpack64()
315 Hi = DAG.getLoad(MVT::i32, DL, Chain, FIN, in unpack64()
321 Hi = DAG.getCopyFromReg(Chain, DL, HiVReg, MVT::i32); in unpack64()
328 SDValue Chain, CallingConv::ID CallConv, bool IsVarArg, in LowerFormalArguments() argument
358 ArgValue = unpack64(DAG, Chain, VA, DL); in LowerFormalArguments()
360 ArgValue = unpackFromRegLoc(Subtarget, DAG, Chain, VA, DL); in LowerFormalArguments()
362 ArgValue = unpackFromMemLoc(DAG, Chain, VA, DL); in LowerFormalArguments()
404 SDValue ArgValue = DAG.getCopyFromReg(Chain, DL, Reg, XLenVT); in LowerFormalArguments()
407 SDValue Store = DAG.getStore(Chain, DL, ArgValue, PtrOff, in LowerFormalArguments()
420 OutChains.push_back(Chain); in LowerFormalArguments()
421 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, OutChains); in LowerFormalArguments()
424 return Chain; in LowerFormalArguments()
436 CSKYTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv, in LowerReturn() argument
450 SmallVector<SDValue, 4> RetOps(1, Chain); in LowerReturn()
472 Chain = DAG.getCopyToReg(Chain, DL, RegLo, Lo, Glue); in LowerReturn()
473 Glue = Chain.getValue(1); in LowerReturn()
475 Chain = DAG.getCopyToReg(Chain, DL, RegHi, Hi, Glue); in LowerReturn()
476 Glue = Chain.getValue(1); in LowerReturn()
481 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Val, Glue); in LowerReturn()
484 Glue = Chain.getValue(1); in LowerReturn()
489 RetOps[0] = Chain; // Update chain. in LowerReturn()
512 SDValue Chain = CLI.Chain; in LowerCall() local
557 Chain = DAG.getMemcpy(Chain, DL, FIPtr, Arg, SizeNode, Alignment, in LowerCall()
565 Chain = DAG.getCALLSEQ_START(Chain, NumBytes, 0, CLI.DL); in LowerCall()
592 StackPtr = DAG.getCopyFromReg(Chain, DL, CSKY::R14, PtrVT); in LowerCall()
595 DAG.getStore(Chain, DL, Hi, StackPtr, MachinePointerInfo())); in LowerCall()
621 StackPtr = DAG.getCopyFromReg(Chain, DL, CSKY::R14, PtrVT); in LowerCall()
628 DAG.getStore(Chain, DL, ArgValue, Address, MachinePointerInfo())); in LowerCall()
634 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, MemOpChains); in LowerCall()
640 Chain = DAG.getCopyToReg(Chain, DL, Reg.first, Reg.second, Glue); in LowerCall()
641 Glue = Chain.getValue(1); in LowerCall()
648 Ops.push_back(Chain); in LowerCall()
706 Chain = DAG.getNode(IsRegCall ? CSKYISD::CALLReg : CSKYISD::CALL, DL, NodeTys, in LowerCall()
708 DAG.addNoMergeSiteInfo(Chain.getNode(), CLI.NoMerge); in LowerCall()
709 Glue = Chain.getValue(1); in LowerCall()
712 Chain = DAG.getCALLSEQ_END(Chain, NumBytes, 0, Glue, DL); in LowerCall()
713 Glue = Chain.getValue(1); in LowerCall()
724 DAG.getCopyFromReg(Chain, DL, VA.getLocReg(), VA.getLocVT(), Glue); in LowerCall()
726 Chain = RetValue.getValue(1); in LowerCall()
734 DAG.getCopyFromReg(Chain, DL, GPRArgRegs[1], MVT::i32, Glue); in LowerCall()
735 Chain = RetValue2.getValue(1); in LowerCall()
746 return Chain; in LowerCall()