Lines Matching refs:Chain

245 SparcTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,  in LowerReturn()  argument
251 return LowerReturn_64(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG); in LowerReturn()
252 return LowerReturn_32(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG); in LowerReturn()
256 SparcTargetLowering::LowerReturn_32(SDValue Chain, CallingConv::ID CallConv, in LowerReturn_32() argument
274 SmallVector<SDValue, 4> RetOps(1, Chain); in LowerReturn_32()
299 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Part0, Glue); in LowerReturn_32()
300 Glue = Chain.getValue(1); in LowerReturn_32()
303 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Part1, in LowerReturn_32()
306 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Arg, Glue); in LowerReturn_32()
309 Glue = Chain.getValue(1); in LowerReturn_32()
321 SDValue Val = DAG.getCopyFromReg(Chain, DL, Reg, PtrVT); in LowerReturn_32()
322 Chain = DAG.getCopyToReg(Chain, DL, SP::I0, Val, Glue); in LowerReturn_32()
323 Glue = Chain.getValue(1); in LowerReturn_32()
328 RetOps[0] = Chain; // Update chain. in LowerReturn_32()
341 SparcTargetLowering::LowerReturn_64(SDValue Chain, CallingConv::ID CallConv, in LowerReturn_64() argument
357 SmallVector<SDValue, 4> RetOps(1, Chain); in LowerReturn_64()
401 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), OutVal, Glue); in LowerReturn_64()
404 Glue = Chain.getValue(1); in LowerReturn_64()
408 RetOps[0] = Chain; // Update chain. in LowerReturn_64()
418 SDValue Chain, CallingConv::ID CallConv, bool IsVarArg, in LowerFormalArguments() argument
422 return LowerFormalArguments_64(Chain, CallConv, IsVarArg, Ins, in LowerFormalArguments()
424 return LowerFormalArguments_32(Chain, CallConv, IsVarArg, Ins, in LowerFormalArguments()
432 SDValue Chain, CallingConv::ID CallConv, bool isVarArg, in LowerFormalArguments_32() argument
459 DAG.getLoad(MVT::i32, dl, Chain, FIPtr, MachinePointerInfo()); in LowerFormalArguments_32()
470 SDValue HiVal = DAG.getCopyFromReg(Chain, dl, VRegHi, MVT::i32); in LowerFormalArguments_32()
480 LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr, MachinePointerInfo()); in LowerFormalArguments_32()
484 LoVal = DAG.getCopyFromReg(Chain, dl, loReg, MVT::i32); in LowerFormalArguments_32()
498 SDValue Arg = DAG.getCopyFromReg(Chain, dl, VReg, MVT::i32); in LowerFormalArguments_32()
524 DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr, MachinePointerInfo()); in LowerFormalArguments_32()
534 DAG.getLoad(MVT::i32, dl, Chain, FIPtr, MachinePointerInfo()); in LowerFormalArguments_32()
541 DAG.getLoad(MVT::i32, dl, Chain, FIPtr2, MachinePointerInfo()); in LowerFormalArguments_32()
559 Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr, MachinePointerInfo()); in LowerFormalArguments_32()
579 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Copy, Chain); in LowerFormalArguments_32()
617 OutChains.push_back(Chain); in LowerFormalArguments_32()
618 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains); in LowerFormalArguments_32()
622 return Chain; in LowerFormalArguments_32()
627 SDValue Chain, CallingConv::ID CallConv, bool IsVarArg, in LowerFormalArguments_64() argument
649 SDValue Arg = DAG.getCopyFromReg(Chain, DL, VReg, VA.getLocVT()); in LowerFormalArguments_64()
692 DAG.getLoad(VA.getValVT(), DL, Chain, in LowerFormalArguments_64()
698 return Chain; in LowerFormalArguments_64()
719 SDValue VArg = DAG.getCopyFromReg(Chain, DL, VReg, MVT::i64); in LowerFormalArguments_64()
723 DAG.getStore(Chain, DL, VArg, DAG.getFrameIndex(FI, PtrVT), in LowerFormalArguments_64()
728 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, OutChains); in LowerFormalArguments_64()
730 return Chain; in LowerFormalArguments_64()
828 SDValue Chain = CLI.Chain; in LowerCall_32() local
868 Chain = DAG.getMemcpy(Chain, dl, FIPtr, Arg, SizeNode, Alignment, in LowerCall_32()
884 Chain = DAG.getCALLSEQ_START(Chain, ArgsSize, 0, dl); in LowerCall_32()
938 DAG.getStore(Chain, dl, Arg, PtrOff, MachinePointerInfo())); in LowerCall_32()
958 DAG.getStore(Chain, dl, Arg, PtrOff, MachinePointerInfo())); in LowerCall_32()
992 DAG.getStore(Chain, dl, Part1, PtrOff, MachinePointerInfo())); in LowerCall_32()
1001 DAG.getStore(Chain, dl, Part0, PtrOff, MachinePointerInfo())); in LowerCall_32()
1006 DAG.getStore(Chain, dl, Part1, PtrOff, MachinePointerInfo())); in LowerCall_32()
1031 DAG.getStore(Chain, dl, Arg, PtrOff, MachinePointerInfo())); in LowerCall_32()
1037 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, MemOpChains); in LowerCall_32()
1048 Chain = DAG.getCopyToReg(Chain, dl, Reg, RegsToPass[i].second, InGlue); in LowerCall_32()
1049 InGlue = Chain.getValue(1); in LowerCall_32()
1067 Ops.push_back(Chain); in LowerCall_32()
1099 Chain = DAG.getNode(SPISD::CALL, dl, NodeTys, Ops); in LowerCall_32()
1100 InGlue = Chain.getValue(1); in LowerCall_32()
1102 Chain = DAG.getCALLSEQ_END(Chain, ArgsSize, 0, InGlue, dl); in LowerCall_32()
1103 InGlue = Chain.getValue(1); in LowerCall_32()
1118 Chain, dl, toCallerWindow(RVLocs[i++].getLocReg()), MVT::i32, InGlue); in LowerCall_32()
1119 Chain = Lo.getValue(1); in LowerCall_32()
1124 Chain, dl, toCallerWindow(RVLocs[i].getLocReg()), MVT::i32, InGlue); in LowerCall_32()
1125 Chain = Hi.getValue(1); in LowerCall_32()
1131 Chain = in LowerCall_32()
1132 DAG.getCopyFromReg(Chain, dl, toCallerWindow(RVLocs[i].getLocReg()), in LowerCall_32()
1135 InGlue = Chain.getValue(2); in LowerCall_32()
1136 InVals.push_back(Chain.getValue(0)); in LowerCall_32()
1140 return Chain; in LowerCall_32()
1226 SDValue Chain = CLI.Chain; in LowerCall_64() local
1259 Chain = DAG.getCALLSEQ_START(Chain, ArgsSize, 0, DL); in LowerCall_64()
1313 DAG.getStore(Chain, DL, Arg, HiPtrOff, MachinePointerInfo()); in LowerCall_64()
1368 DAG.getStore(Chain, DL, Arg, PtrOff, MachinePointerInfo())); in LowerCall_64()
1373 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, MemOpChains); in LowerCall_64()
1381 Chain = DAG.getCopyToReg(Chain, DL, in LowerCall_64()
1383 InGlue = Chain.getValue(1); in LowerCall_64()
1400 Ops.push_back(Chain); in LowerCall_64()
1430 Chain = DAG.getNode(SPISD::CALL, DL, NodeTys, Ops); in LowerCall_64()
1431 InGlue = Chain.getValue(1); in LowerCall_64()
1434 Chain = DAG.getCALLSEQ_END(Chain, ArgsSize, 0, InGlue, DL); in LowerCall_64()
1435 InGlue = Chain.getValue(1); in LowerCall_64()
1462 if (RegisterSDNode *SrcReg = dyn_cast<RegisterSDNode>(Chain.getOperand(1))) in LowerCall_64()
1463 if (SrcReg->getReg() == Reg && Chain->getOpcode() == ISD::CopyFromReg) in LowerCall_64()
1464 RV = Chain.getValue(0); in LowerCall_64()
1468 RV = DAG.getCopyFromReg(Chain, DL, Reg, RVLocs[i].getLocVT(), InGlue); in LowerCall_64()
1469 Chain = RV.getValue(1); in LowerCall_64()
1470 InGlue = Chain.getValue(2); in LowerCall_64()
1500 return Chain; in LowerCall_64()
2240 SDValue Chain = DAG.getEntryNode(); in LowerGlobalTLSAddress() local
2243 Chain = DAG.getCALLSEQ_START(Chain, 1, 0, DL); in LowerGlobalTLSAddress()
2244 Chain = DAG.getCopyToReg(Chain, DL, SP::O0, Argument, InGlue); in LowerGlobalTLSAddress()
2245 InGlue = Chain.getValue(1); in LowerGlobalTLSAddress()
2253 SDValue Ops[] = {Chain, in LowerGlobalTLSAddress()
2259 Chain = DAG.getNode(SPISD::TLS_CALL, DL, NodeTys, Ops); in LowerGlobalTLSAddress()
2260 InGlue = Chain.getValue(1); in LowerGlobalTLSAddress()
2261 Chain = DAG.getCALLSEQ_END(Chain, 1, 0, InGlue, DL); in LowerGlobalTLSAddress()
2262 InGlue = Chain.getValue(1); in LowerGlobalTLSAddress()
2263 SDValue Ret = DAG.getCopyFromReg(Chain, DL, SP::O0, PtrVT, InGlue); in LowerGlobalTLSAddress()
2312 SDValue SparcTargetLowering::LowerF128_LibCallArg(SDValue Chain, in LowerF128_LibCallArg() argument
2328 Chain = DAG.getStore(Chain, DL, Entry.Node, FIPtr, MachinePointerInfo(), in LowerF128_LibCallArg()
2335 return Chain; in LowerF128_LibCallArg()
2351 SDValue Chain = DAG.getEntryNode(); in LowerF128Op() local
2372 Chain = LowerF128_LibCallArg(Chain, Args, Op.getOperand(i), SDLoc(Op), DAG); in LowerF128Op()
2375 CLI.setDebugLoc(SDLoc(Op)).setChain(Chain) in LowerF128Op()
2386 Chain = CallInfo.second; in LowerF128Op()
2389 return DAG.getLoad(Op.getValueType(), SDLoc(Op), Chain, RetPtr, in LowerF128Op()
2421 SDValue Chain = DAG.getEntryNode(); in LowerF128Compare() local
2422 Chain = LowerF128_LibCallArg(Chain, Args, LHS, DL, DAG); in LowerF128Compare()
2423 Chain = LowerF128_LibCallArg(Chain, Args, RHS, DL, DAG); in LowerF128Compare()
2426 CLI.setDebugLoc(DL).setChain(Chain) in LowerF128Compare()
2624 SDValue Chain = Op.getOperand(0); in LowerBR_CC() local
2644 return DAG.getNode(SPISD::BR_REG, dl, MVT::Other, Chain, Dest, in LowerBR_CC()
2668 return DAG.getNode(Opc, dl, MVT::Other, Chain, Dest, in LowerBR_CC()
2772 SDValue Chain = Op.getOperand(0); // Legalize the chain. in LowerDYNAMIC_STACKALLOC() local
2822 SDValue SP = DAG.getCopyFromReg(Chain, dl, SPReg, VT); in LowerDYNAMIC_STACKALLOC()
2824 Chain = DAG.getCopyToReg(SP.getValue(1), dl, SPReg, NewSP); // Output chain in LowerDYNAMIC_STACKALLOC()
2830 SDValue Ops[2] = { NewVal, Chain }; in LowerDYNAMIC_STACKALLOC()
2837 SDValue Chain = DAG.getNode(SPISD::FLUSHW, in getFLUSHW() local
2839 return Chain; in getFLUSHW()
2854 SDValue Chain; in getFRAMEADDR() local
2857 Chain = (depth || AlwaysFlush) ? getFLUSHW(Op, DAG) : DAG.getEntryNode(); in getFRAMEADDR()
2859 FrameAddr = DAG.getCopyFromReg(Chain, dl, FrameReg, VT); in getFRAMEADDR()
2866 FrameAddr = DAG.getLoad(VT, dl, Chain, Ptr, MachinePointerInfo()); in getFRAMEADDR()
3055 SDValue Chain = DAG.getStore( in LowerSTORE() local
3059 return Chain; in LowerSTORE()