Lines Matching full:dl

199                                  const SDLoc &DL, SelectionDAG &DAG) const {  in LowerReturn()  argument
201 return LowerReturn_64(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG); in LowerReturn()
202 return LowerReturn_32(Chain, CallConv, IsVarArg, Outs, OutVals, DL, DAG); in LowerReturn()
210 const SDLoc &DL, SelectionDAG &DAG) const { in LowerReturn_32() argument
242 SDValue Part0 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, MVT::i32, in LowerReturn_32()
244 DAG.getConstant(0, DL, getVectorIdxTy(DAG.getDataLayout()))); in LowerReturn_32()
245 SDValue Part1 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, MVT::i32, in LowerReturn_32()
247 DAG.getConstant(1, DL, getVectorIdxTy(DAG.getDataLayout()))); in LowerReturn_32()
249 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Part0, Flag); in LowerReturn_32()
253 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Part1, in LowerReturn_32()
256 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Arg, Flag); in LowerReturn_32()
271 SDValue Val = DAG.getCopyFromReg(Chain, DL, Reg, PtrVT); in LowerReturn_32()
272 Chain = DAG.getCopyToReg(Chain, DL, SP::I0, Val, Flag); in LowerReturn_32()
279 RetOps[1] = DAG.getConstant(RetAddrOffset, DL, MVT::i32); in LowerReturn_32()
285 return DAG.getNode(SPISD::RET_FLAG, DL, MVT::Other, RetOps); in LowerReturn_32()
295 const SDLoc &DL, SelectionDAG &DAG) const { in LowerReturn_64() argument
311 RetOps.push_back(DAG.getConstant(8, DL, MVT::i32)); in LowerReturn_64()
323 OutVal = DAG.getNode(ISD::SIGN_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn_64()
326 OutVal = DAG.getNode(ISD::ZERO_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn_64()
329 OutVal = DAG.getNode(ISD::ANY_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn_64()
338 OutVal = DAG.getNode(ISD::SHL, DL, MVT::i64, OutVal, in LowerReturn_64()
339 DAG.getConstant(32, DL, MVT::i32)); in LowerReturn_64()
344 SDValue NV = DAG.getNode(ISD::ZERO_EXTEND, DL, MVT::i64, OutVals[i+1]); in LowerReturn_64()
345 OutVal = DAG.getNode(ISD::OR, DL, MVT::i64, OutVal, NV); in LowerReturn_64()
351 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), OutVal, Flag); in LowerReturn_64()
364 return DAG.getNode(SPISD::RET_FLAG, DL, MVT::Other, RetOps); in LowerReturn_64()
369 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerFormalArguments() argument
373 DL, DAG, InVals); in LowerFormalArguments()
375 DL, DAG, InVals); in LowerFormalArguments()
383 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &dl, in LowerFormalArguments_32() argument
408 SDValue Arg = DAG.getLoad(MVT::i32, dl, Chain, FIPtr, in LowerFormalArguments_32()
421 SDValue HiVal = DAG.getCopyFromReg(Chain, dl, VRegHi, MVT::i32); in LowerFormalArguments_32()
431 LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr, in LowerFormalArguments_32()
437 LoVal = DAG.getCopyFromReg(Chain, dl, loReg, MVT::i32); in LowerFormalArguments_32()
444 DAG.getNode(ISD::BUILD_PAIR, dl, MVT::i64, LoVal, HiVal); in LowerFormalArguments_32()
445 WholeValue = DAG.getNode(ISD::BITCAST, dl, VA.getLocVT(), WholeValue); in LowerFormalArguments_32()
451 SDValue Arg = DAG.getCopyFromReg(Chain, dl, VReg, MVT::i32); in LowerFormalArguments_32()
453 Arg = DAG.getNode(ISD::BITCAST, dl, MVT::f32, Arg); in LowerFormalArguments_32()
455 Arg = DAG.getNode(ISD::AssertSext, dl, MVT::i32, Arg, in LowerFormalArguments_32()
457 Arg = DAG.getNode(ISD::TRUNCATE, dl, VA.getLocVT(), Arg); in LowerFormalArguments_32()
476 SDValue Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr, in LowerFormalArguments_32()
487 SDValue HiVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr, in LowerFormalArguments_32()
495 SDValue LoVal = DAG.getLoad(MVT::i32, dl, Chain, FIPtr2, in LowerFormalArguments_32()
503 DAG.getNode(ISD::BUILD_PAIR, dl, MVT::i64, LoVal, HiVal); in LowerFormalArguments_32()
504 WholeValue = DAG.getNode(ISD::BITCAST, dl, VA.getValVT(), WholeValue); in LowerFormalArguments_32()
515 Load = DAG.getLoad(VA.getValVT(), dl, Chain, FIPtr, in LowerFormalArguments_32()
536 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), dl, Reg, InVals[0]); in LowerFormalArguments_32()
537 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Copy, Chain); in LowerFormalArguments_32()
563 SDValue Arg = DAG.getCopyFromReg(DAG.getRoot(), dl, VReg, MVT::i32); in LowerFormalArguments_32()
569 OutChains.push_back(DAG.getStore(DAG.getRoot(), dl, Arg, FIPtr, in LowerFormalArguments_32()
577 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains); in LowerFormalArguments_32()
587 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerFormalArguments_64() argument
609 SDValue Arg = DAG.getCopyFromReg(Chain, DL, VReg, VA.getLocVT()); in LowerFormalArguments_64()
613 Arg = DAG.getNode(ISD::SRL, DL, VA.getLocVT(), Arg, in LowerFormalArguments_64()
614 DAG.getConstant(32, DL, MVT::i32)); in LowerFormalArguments_64()
620 Arg = DAG.getNode(ISD::AssertSext, DL, VA.getLocVT(), Arg, in LowerFormalArguments_64()
624 Arg = DAG.getNode(ISD::AssertZext, DL, VA.getLocVT(), Arg, in LowerFormalArguments_64()
633 Arg = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), Arg); in LowerFormalArguments_64()
652 VA.getValVT(), DL, Chain, in LowerFormalArguments_64()
679 SDValue VArg = DAG.getCopyFromReg(Chain, DL, VReg, MVT::i64); in LowerFormalArguments_64()
683 Chain, DL, VArg, DAG.getFrameIndex(FI, PtrVT), in LowerFormalArguments_64()
688 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, OutChains); in LowerFormalArguments_64()
727 SDLoc &dl = CLI.DL; in LowerCall_32() local
768 SDValue SizeNode = DAG.getConstant(Size, dl, MVT::i32); in LowerCall_32()
770 Chain = DAG.getMemcpy(Chain, dl, FIPtr, Arg, SizeNode, Align, in LowerCall_32()
783 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(ArgsSize, dl, true), in LowerCall_32()
784 dl); in LowerCall_32()
813 Arg = DAG.getNode(ISD::SIGN_EXTEND, dl, VA.getLocVT(), Arg); in LowerCall_32()
816 Arg = DAG.getNode(ISD::ZERO_EXTEND, dl, VA.getLocVT(), Arg); in LowerCall_32()
819 Arg = DAG.getNode(ISD::ANY_EXTEND, dl, VA.getLocVT(), Arg); in LowerCall_32()
822 Arg = DAG.getNode(ISD::BITCAST, dl, VA.getLocVT(), Arg); in LowerCall_32()
830 SDValue PtrOff = DAG.getIntPtrConstant(64, dl); in LowerCall_32()
831 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
832 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff, in LowerCall_32()
847 SDValue PtrOff = DAG.getIntPtrConstant(Offset, dl); in LowerCall_32()
848 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
849 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff, in LowerCall_32()
864 Arg = DAG.getNode(ISD::BITCAST, dl, MVT::v2i32, Arg); in LowerCall_32()
867 SDValue Part0 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, MVT::i32, in LowerCall_32()
869 DAG.getConstant(0, dl, getVectorIdxTy(DAG.getDataLayout()))); in LowerCall_32()
870 SDValue Part1 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, MVT::i32, in LowerCall_32()
872 DAG.getConstant(1, dl, getVectorIdxTy(DAG.getDataLayout()))); in LowerCall_32()
884 SDValue PtrOff = DAG.getIntPtrConstant(Offset, dl); in LowerCall_32()
885 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
886 MemOpChains.push_back(DAG.getStore(Chain, dl, Part1, PtrOff, in LowerCall_32()
894 SDValue PtrOff = DAG.getIntPtrConstant(Offset, dl); in LowerCall_32()
895 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
896 MemOpChains.push_back(DAG.getStore(Chain, dl, Part0, PtrOff, in LowerCall_32()
900 PtrOff = DAG.getIntPtrConstant(Offset + 4, dl); in LowerCall_32()
901 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
902 MemOpChains.push_back(DAG.getStore(Chain, dl, Part1, PtrOff, in LowerCall_32()
916 Arg = DAG.getNode(ISD::BITCAST, dl, MVT::i32, Arg); in LowerCall_32()
926 dl); in LowerCall_32()
927 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall_32()
928 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff, in LowerCall_32()
936 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, MemOpChains); in LowerCall_32()
945 Chain = DAG.getCopyToReg(Chain, dl, Reg, RegsToPass[i].second, InFlag); in LowerCall_32()
957 Callee = DAG.getTargetGlobalAddress(G->getGlobal(), dl, MVT::i32, 0, TF); in LowerCall_32()
967 Ops.push_back(DAG.getTargetConstant(SRetArgSize, dl, MVT::i32)); in LowerCall_32()
984 Chain = DAG.getNode(SPISD::CALL, dl, NodeTys, Ops); in LowerCall_32()
987 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(ArgsSize, dl, true), in LowerCall_32()
988 DAG.getIntPtrConstant(0, dl, true), InFlag, dl); in LowerCall_32()
1001 SDValue Vec = DAG.getNode(ISD::UNDEF, dl, MVT::v2i32); in LowerCall_32()
1003 Chain, dl, toCallerWindow(RVLocs[i++].getLocReg()), MVT::i32, InFlag); in LowerCall_32()
1006 Vec = DAG.getNode(ISD::INSERT_VECTOR_ELT, dl, MVT::v2i32, Vec, Lo, in LowerCall_32()
1007 DAG.getConstant(0, dl, MVT::i32)); in LowerCall_32()
1009 Chain, dl, toCallerWindow(RVLocs[i].getLocReg()), MVT::i32, InFlag); in LowerCall_32()
1012 Vec = DAG.getNode(ISD::INSERT_VECTOR_ELT, dl, MVT::v2i32, Vec, Hi, in LowerCall_32()
1013 DAG.getConstant(1, dl, MVT::i32)); in LowerCall_32()
1017 DAG.getCopyFromReg(Chain, dl, toCallerWindow(RVLocs[i].getLocReg()), in LowerCall_32()
1152 SDLoc DL = CLI.DL; in LowerCall_64() local
1181 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(ArgsSize, DL, true), in LowerCall_64()
1182 DL); in LowerCall_64()
1205 Arg = DAG.getNode(ISD::SIGN_EXTEND, DL, VA.getLocVT(), Arg); in LowerCall_64()
1208 Arg = DAG.getNode(ISD::ZERO_EXTEND, DL, VA.getLocVT(), Arg); in LowerCall_64()
1211 Arg = DAG.getNode(ISD::ANY_EXTEND, DL, VA.getLocVT(), Arg); in LowerCall_64()
1218 Arg = DAG.getNode(ISD::BITCAST, DL, VA.getLocVT(), Arg); in LowerCall_64()
1229 SDValue HiPtrOff = DAG.getIntPtrConstant(StackOffset, DL); in LowerCall_64()
1230 HiPtrOff = DAG.getNode(ISD::ADD, DL, PtrVT, StackPtr, HiPtrOff); in LowerCall_64()
1231 SDValue LoPtrOff = DAG.getIntPtrConstant(StackOffset + 8, DL); in LowerCall_64()
1232 LoPtrOff = DAG.getNode(ISD::ADD, DL, PtrVT, StackPtr, LoPtrOff); in LowerCall_64()
1235 SDValue Store = DAG.getStore(Chain, DL, Arg, HiPtrOff, in LowerCall_64()
1239 SDValue Hi64 = DAG.getLoad(MVT::i64, DL, Store, HiPtrOff, in LowerCall_64()
1242 SDValue Lo64 = DAG.getLoad(MVT::i64, DL, Store, LoPtrOff, in LowerCall_64()
1255 Arg = DAG.getNode(ISD::SHL, DL, MVT::i64, Arg, in LowerCall_64()
1256 DAG.getConstant(32, DL, MVT::i32)); in LowerCall_64()
1262 SDValue NV = DAG.getNode(ISD::ZERO_EXTEND, DL, MVT::i64, in LowerCall_64()
1264 Arg = DAG.getNode(ISD::OR, DL, MVT::i64, Arg, NV); in LowerCall_64()
1281 128, DL); in LowerCall_64()
1282 PtrOff = DAG.getNode(ISD::ADD, DL, PtrVT, StackPtr, PtrOff); in LowerCall_64()
1283 MemOpChains.push_back(DAG.getStore(Chain, DL, Arg, PtrOff, in LowerCall_64()
1290 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, MemOpChains); in LowerCall_64()
1298 Chain = DAG.getCopyToReg(Chain, DL, in LowerCall_64()
1310 Callee = DAG.getTargetGlobalAddress(G->getGlobal(), DL, PtrVT, 0, TF); in LowerCall_64()
1338 Chain = DAG.getNode(SPISD::CALL, DL, NodeTys, Ops); in LowerCall_64()
1342 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(ArgsSize, DL, true), in LowerCall_64()
1343 DAG.getIntPtrConstant(0, DL, true), InGlue, DL); in LowerCall_64()
1376 RV = DAG.getCopyFromReg(Chain, DL, Reg, RVLocs[i].getLocVT(), InGlue); in LowerCall_64()
1383 RV = DAG.getNode(ISD::SRL, DL, VA.getLocVT(), RV, in LowerCall_64()
1384 DAG.getConstant(32, DL, MVT::i32)); in LowerCall_64()
1390 RV = DAG.getNode(ISD::AssertSext, DL, VA.getLocVT(), RV, in LowerCall_64()
1394 RV = DAG.getNode(ISD::AssertZext, DL, VA.getLocVT(), RV, in LowerCall_64()
1403 RV = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), RV); in LowerCall_64()
1961 SDLoc DL(Op); in makeHiLoPair() local
1963 SDValue Hi = DAG.getNode(SPISD::Hi, DL, VT, withTargetFlags(Op, HiTF, DAG)); in makeHiLoPair()
1964 SDValue Lo = DAG.getNode(SPISD::Lo, DL, VT, withTargetFlags(Op, LoTF, DAG)); in makeHiLoPair()
1965 return DAG.getNode(ISD::ADD, DL, VT, Hi, Lo); in makeHiLoPair()
1971 SDLoc DL(Op); in makeAddress() local
1979 SDValue GlobalBase = DAG.getNode(SPISD::GLOBAL_BASE_REG, DL, VT); in makeAddress()
1980 SDValue AbsAddr = DAG.getNode(ISD::ADD, DL, VT, GlobalBase, HiLo); in makeAddress()
1985 return DAG.getLoad(VT, DL, DAG.getEntryNode(), AbsAddr, in makeAddress()
2002 H44 = DAG.getNode(ISD::SHL, DL, VT, H44, DAG.getConstant(12, DL, MVT::i32)); in makeAddress()
2004 L44 = DAG.getNode(SPISD::Lo, DL, VT, L44); in makeAddress()
2005 return DAG.getNode(ISD::ADD, DL, VT, H44, L44); in makeAddress()
2011 Hi = DAG.getNode(ISD::SHL, DL, VT, Hi, DAG.getConstant(32, DL, MVT::i32)); in makeAddress()
2014 return DAG.getNode(ISD::ADD, DL, VT, Hi, Lo); in makeAddress()
2041 SDLoc DL(GA); in LowerGlobalTLSAddress() local
2062 SDValue Base = DAG.getNode(SPISD::GLOBAL_BASE_REG, DL, PtrVT); in LowerGlobalTLSAddress()
2063 SDValue Argument = DAG.getNode(SPISD::TLS_ADD, DL, PtrVT, Base, HiLo, in LowerGlobalTLSAddress()
2069 Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(1, DL, true), DL); in LowerGlobalTLSAddress()
2070 Chain = DAG.getCopyToReg(Chain, DL, SP::O0, Argument, InFlag); in LowerGlobalTLSAddress()
2085 Chain = DAG.getNode(SPISD::TLS_CALL, DL, NodeTys, Ops); in LowerGlobalTLSAddress()
2087 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(1, DL, true), in LowerGlobalTLSAddress()
2088 DAG.getIntPtrConstant(0, DL, true), InFlag, DL); in LowerGlobalTLSAddress()
2090 SDValue Ret = DAG.getCopyFromReg(Chain, DL, SP::O0, PtrVT, InFlag); in LowerGlobalTLSAddress()
2095 SDValue Hi = DAG.getNode(SPISD::Hi, DL, PtrVT, in LowerGlobalTLSAddress()
2097 SDValue Lo = DAG.getNode(SPISD::Lo, DL, PtrVT, in LowerGlobalTLSAddress()
2099 HiLo = DAG.getNode(ISD::XOR, DL, PtrVT, Hi, Lo); in LowerGlobalTLSAddress()
2100 return DAG.getNode(SPISD::TLS_ADD, DL, PtrVT, Ret, HiLo, in LowerGlobalTLSAddress()
2108 SDValue Base = DAG.getNode(SPISD::GLOBAL_BASE_REG, DL, PtrVT); in LowerGlobalTLSAddress()
2118 SDValue Ptr = DAG.getNode(ISD::ADD, DL, PtrVT, Base, TGA); in LowerGlobalTLSAddress()
2120 DL, PtrVT, Ptr, in LowerGlobalTLSAddress()
2122 return DAG.getNode(SPISD::TLS_ADD, DL, PtrVT, in LowerGlobalTLSAddress()
2129 SDValue Hi = DAG.getNode(SPISD::Hi, DL, PtrVT, in LowerGlobalTLSAddress()
2131 SDValue Lo = DAG.getNode(SPISD::Lo, DL, PtrVT, in LowerGlobalTLSAddress()
2133 SDValue Offset = DAG.getNode(ISD::XOR, DL, PtrVT, Hi, Lo); in LowerGlobalTLSAddress()
2135 return DAG.getNode(ISD::ADD, DL, PtrVT, in LowerGlobalTLSAddress()
2141 const SDLoc &DL, in LowerF128_LibCallArg() argument
2156 DL, in LowerF128_LibCallArg()
2229 unsigned &SPCC, const SDLoc &DL, in LowerF128Compare() argument
2257 Chain = LowerF128_LibCallArg(Chain, Args, LHS, DL, DAG); in LowerF128Compare()
2258 Chain = LowerF128_LibCallArg(Chain, Args, RHS, DL, DAG); in LowerF128Compare()
2261 CLI.setDebugLoc(DL).setChain(Chain) in LowerF128Compare()
2271 SDValue RHS = DAG.getTargetConstant(0, DL, Result.getValueType()); in LowerF128Compare()
2273 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2276 SDValue Mask = DAG.getTargetConstant(1, DL, Result.getValueType()); in LowerF128Compare()
2277 Result = DAG.getNode(ISD::AND, DL, Result.getValueType(), Result, Mask); in LowerF128Compare()
2278 SDValue RHS = DAG.getTargetConstant(0, DL, Result.getValueType()); in LowerF128Compare()
2280 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2283 SDValue RHS = DAG.getTargetConstant(2, DL, Result.getValueType()); in LowerF128Compare()
2285 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2288 SDValue RHS = DAG.getTargetConstant(1, DL, Result.getValueType()); in LowerF128Compare()
2290 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2293 SDValue RHS = DAG.getTargetConstant(1, DL, Result.getValueType()); in LowerF128Compare()
2295 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2299 SDValue RHS = DAG.getTargetConstant(3, DL, Result.getValueType()); in LowerF128Compare()
2301 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2304 SDValue RHS = DAG.getTargetConstant(3, DL, Result.getValueType()); in LowerF128Compare()
2306 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2309 SDValue Mask = DAG.getTargetConstant(3, DL, Result.getValueType()); in LowerF128Compare()
2310 Result = DAG.getNode(ISD::AND, DL, Result.getValueType(), Result, Mask); in LowerF128Compare()
2311 SDValue RHS = DAG.getTargetConstant(0, DL, Result.getValueType()); in LowerF128Compare()
2313 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2316 SDValue Mask = DAG.getTargetConstant(3, DL, Result.getValueType()); in LowerF128Compare()
2317 Result = DAG.getNode(ISD::AND, DL, Result.getValueType(), Result, Mask); in LowerF128Compare()
2318 SDValue RHS = DAG.getTargetConstant(0, DL, Result.getValueType()); in LowerF128Compare()
2320 return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); in LowerF128Compare()
2362 SDLoc dl(Op); in LowerFP_TO_SINT() local
2381 Op = DAG.getNode(SPISD::FTOI, dl, MVT::f32, Op.getOperand(0)); in LowerFP_TO_SINT()
2383 Op = DAG.getNode(SPISD::FTOX, dl, MVT::f64, Op.getOperand(0)); in LowerFP_TO_SINT()
2385 return DAG.getNode(ISD::BITCAST, dl, VT, Op); in LowerFP_TO_SINT()
2391 SDLoc dl(Op); in LowerSINT_TO_FP() local
2411 SDValue Tmp = DAG.getNode(ISD::BITCAST, dl, floatVT, Op.getOperand(0)); in LowerSINT_TO_FP()
2413 return DAG.getNode(opcode, dl, Op.getValueType(), Tmp); in LowerSINT_TO_FP()
2419 SDLoc dl(Op); in LowerFP_TO_UINT() local
2440 SDLoc dl(Op); in LowerUINT_TO_FP() local
2464 SDLoc dl(Op); in LowerBR_CC() local
2474 CompareFlag = DAG.getNode(SPISD::CMPICC, dl, MVT::Glue, LHS, RHS); in LowerBR_CC()
2481 CompareFlag = TLI.LowerF128Compare(LHS, RHS, SPCC, dl, DAG); in LowerBR_CC()
2484 CompareFlag = DAG.getNode(SPISD::CMPFCC, dl, MVT::Glue, LHS, RHS); in LowerBR_CC()
2489 return DAG.getNode(Opc, dl, MVT::Other, Chain, Dest, in LowerBR_CC()
2490 DAG.getConstant(SPCC, dl, MVT::i32), CompareFlag); in LowerBR_CC()
2501 SDLoc dl(Op); in LowerSELECT_CC() local
2510 CompareFlag = DAG.getNode(SPISD::CMPICC, dl, MVT::Glue, LHS, RHS); in LowerSELECT_CC()
2517 CompareFlag = TLI.LowerF128Compare(LHS, RHS, SPCC, dl, DAG); in LowerSELECT_CC()
2520 CompareFlag = DAG.getNode(SPISD::CMPFCC, dl, MVT::Glue, LHS, RHS); in LowerSELECT_CC()
2525 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
2526 DAG.getConstant(SPCC, dl, MVT::i32), CompareFlag); in LowerSELECT_CC()
2531 SDLoc DL(Op); in LowerEH_SJLJ_SETJMP() local
2532 return DAG.getNode(SPISD::EH_SJLJ_SETJMP, DL, in LowerEH_SJLJ_SETJMP()
2539 SDLoc DL(Op); in LowerEH_SJLJ_LONGJMP() local
2540 return DAG.getNode(SPISD::EH_SJLJ_LONGJMP, DL, MVT::Other, Op.getOperand(0), Op.getOperand(1)); in LowerEH_SJLJ_LONGJMP()
2554 SDLoc DL(Op); in LowerVASTART() local
2556 DAG.getNode(ISD::ADD, DL, PtrVT, DAG.getRegister(SP::I6, PtrVT), in LowerVASTART()
2557 DAG.getIntPtrConstant(FuncInfo->getVarArgsFrameOffset(), DL)); in LowerVASTART()
2559 return DAG.getStore(Op.getOperand(0), DL, Offset, Op.getOperand(1), in LowerVASTART()
2570 SDLoc DL(Node); in LowerVAARG() local
2571 SDValue VAList = DAG.getLoad(PtrVT, DL, InChain, VAListPtr, in LowerVAARG()
2574 SDValue NextPtr = DAG.getNode(ISD::ADD, DL, PtrVT, VAList, in LowerVAARG()
2576 DL)); in LowerVAARG()
2578 InChain = DAG.getStore(VAList.getValue(1), DL, NextPtr, in LowerVAARG()
2582 return DAG.getLoad(VT, DL, InChain, VAList, MachinePointerInfo(), in LowerVAARG()
2592 SDLoc dl(Op); in LowerDYNAMIC_STACKALLOC() local
2595 SDValue SP = DAG.getCopyFromReg(Chain, dl, SPReg, VT); in LowerDYNAMIC_STACKALLOC()
2596 SDValue NewSP = DAG.getNode(ISD::SUB, dl, VT, SP, Size); // Value in LowerDYNAMIC_STACKALLOC()
2597 Chain = DAG.getCopyToReg(SP.getValue(1), dl, SPReg, NewSP); // Output chain in LowerDYNAMIC_STACKALLOC()
2604 SDValue NewVal = DAG.getNode(ISD::ADD, dl, VT, NewSP, in LowerDYNAMIC_STACKALLOC()
2605 DAG.getConstant(regSpillArea, dl, VT)); in LowerDYNAMIC_STACKALLOC()
2607 return DAG.getMergeValues(Ops, dl); in LowerDYNAMIC_STACKALLOC()
2612 SDLoc dl(Op); in getFLUSHW() local
2614 dl, MVT::Other, DAG.getEntryNode()); in getFLUSHW()
2624 SDLoc dl(Op); in getFRAMEADDR() local
2631 FrameAddr = DAG.getCopyFromReg(DAG.getEntryNode(), dl, FrameReg, VT); in getFRAMEADDR()
2633 FrameAddr = DAG.getNode(ISD::ADD, dl, VT, FrameAddr, in getFRAMEADDR()
2634 DAG.getIntPtrConstant(stackBias, dl)); in getFRAMEADDR()
2640 FrameAddr = DAG.getCopyFromReg(Chain, dl, FrameReg, VT); in getFRAMEADDR()
2645 SDValue Ptr = DAG.getNode(ISD::ADD, dl, VT, FrameAddr, in getFRAMEADDR()
2646 DAG.getIntPtrConstant(Offset, dl)); in getFRAMEADDR()
2647 FrameAddr = DAG.getLoad(VT, dl, Chain, Ptr, MachinePointerInfo(), in getFRAMEADDR()
2651 FrameAddr = DAG.getNode(ISD::ADD, dl, VT, FrameAddr, in getFRAMEADDR()
2652 DAG.getIntPtrConstant(stackBias, dl)); in getFRAMEADDR()
2676 SDLoc dl(Op); in LowerRETURNADDR() local
2683 RetAddr = DAG.getCopyFromReg(DAG.getEntryNode(), dl, RetReg, VT); in LowerRETURNADDR()
2692 dl, VT, in LowerRETURNADDR()
2694 DAG.getIntPtrConstant(Offset, dl)); in LowerRETURNADDR()
2695 RetAddr = DAG.getLoad(VT, dl, DAG.getEntryNode(), Ptr, in LowerRETURNADDR()
2701 static SDValue LowerF64Op(SDValue SrcReg64, const SDLoc &dl, SelectionDAG &DAG, in LowerF64Op() argument
2715 SDValue Hi32 = DAG.getTargetExtractSubreg(SP::sub_even, dl, MVT::f32, in LowerF64Op()
2717 SDValue Lo32 = DAG.getTargetExtractSubreg(SP::sub_odd, dl, MVT::f32, in LowerF64Op()
2721 Lo32 = DAG.getNode(opcode, dl, MVT::f32, Lo32); in LowerF64Op()
2723 Hi32 = DAG.getNode(opcode, dl, MVT::f32, Hi32); in LowerF64Op()
2726 dl, MVT::f64), 0); in LowerF64Op()
2727 DstReg64 = DAG.getTargetInsertSubreg(SP::sub_even, dl, MVT::f64, in LowerF64Op()
2729 DstReg64 = DAG.getTargetInsertSubreg(SP::sub_odd, dl, MVT::f64, in LowerF64Op()
2737 SDLoc dl(Op); in LowerF128Load() local
2747 dl, in LowerF128Load()
2753 SDValue LoPtr = DAG.getNode(ISD::ADD, dl, addrVT, in LowerF128Load()
2755 DAG.getConstant(8, dl, addrVT)); in LowerF128Load()
2757 dl, in LowerF128Load()
2763 SDValue SubRegEven = DAG.getTargetConstant(SP::sub_even64, dl, MVT::i32); in LowerF128Load()
2764 SDValue SubRegOdd = DAG.getTargetConstant(SP::sub_odd64, dl, MVT::i32); in LowerF128Load()
2767 dl, MVT::f128); in LowerF128Load()
2768 InFP128 = DAG.getMachineNode(TargetOpcode::INSERT_SUBREG, dl, in LowerF128Load()
2773 InFP128 = DAG.getMachineNode(TargetOpcode::INSERT_SUBREG, dl, in LowerF128Load()
2780 SDValue OutChain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains); in LowerF128Load()
2782 return DAG.getMergeValues(Ops, dl); in LowerF128Load()
2798 SDLoc dl(Op); in LowerF128Store() local
2802 SDValue SubRegEven = DAG.getTargetConstant(SP::sub_even64, dl, MVT::i32); in LowerF128Store()
2803 SDValue SubRegOdd = DAG.getTargetConstant(SP::sub_odd64, dl, MVT::i32); in LowerF128Store()
2806 dl, in LowerF128Store()
2811 dl, in LowerF128Store()
2822 dl, in LowerF128Store()
2828 SDValue LoPtr = DAG.getNode(ISD::ADD, dl, addrVT, in LowerF128Store()
2830 DAG.getConstant(8, dl, addrVT)); in LowerF128Store()
2832 dl, in LowerF128Store()
2837 return DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains); in LowerF128Store()
2842 SDLoc dl(Op); in LowerSTORE() local
2852 SDValue Val = DAG.getNode(ISD::BITCAST, dl, MVT::v2i32, St->getValue()); in LowerSTORE()
2854 St->getChain(), dl, Val, St->getBasePtr(), St->getPointerInfo(), in LowerSTORE()
2867 SDLoc dl(Op); in LowerFNEGorFABS() local
2870 return LowerF64Op(Op.getOperand(0), dl, DAG, Op.getOpcode()); in LowerFNEGorFABS()
2880 SDValue Hi64 = DAG.getTargetExtractSubreg(SP::sub_even64, dl, MVT::f64, in LowerFNEGorFABS()
2882 SDValue Lo64 = DAG.getTargetExtractSubreg(SP::sub_odd64, dl, MVT::f64, in LowerFNEGorFABS()
2887 Lo64 = DAG.getNode(Op.getOpcode(), dl, MVT::f64, Lo64); in LowerFNEGorFABS()
2889 Lo64 = LowerF64Op(Lo64, dl, DAG, Op.getOpcode()); in LowerFNEGorFABS()
2892 Hi64 = DAG.getNode(Op.getOpcode(), dl, MVT::f64, Hi64); in LowerFNEGorFABS()
2894 Hi64 = LowerF64Op(Hi64, dl, DAG, Op.getOpcode()); in LowerFNEGorFABS()
2898 dl, MVT::f128), 0); in LowerFNEGorFABS()
2899 DstReg128 = DAG.getTargetInsertSubreg(SP::sub_even64, dl, MVT::f128, in LowerFNEGorFABS()
2901 DstReg128 = DAG.getTargetInsertSubreg(SP::sub_odd64, dl, MVT::f128, in LowerFNEGorFABS()
2911 SDLoc dl(Op); in LowerADDC_ADDE_SUBC_SUBE() local
2913 SDValue Src1Lo = DAG.getNode(ISD::TRUNCATE, dl, MVT::i32, Src1); in LowerADDC_ADDE_SUBC_SUBE()
2914 SDValue Src1Hi = DAG.getNode(ISD::SRL, dl, MVT::i64, Src1, in LowerADDC_ADDE_SUBC_SUBE()
2915 DAG.getConstant(32, dl, MVT::i64)); in LowerADDC_ADDE_SUBC_SUBE()
2916 Src1Hi = DAG.getNode(ISD::TRUNCATE, dl, MVT::i32, Src1Hi); in LowerADDC_ADDE_SUBC_SUBE()
2919 SDValue Src2Lo = DAG.getNode(ISD::TRUNCATE, dl, MVT::i32, Src2); in LowerADDC_ADDE_SUBC_SUBE()
2920 SDValue Src2Hi = DAG.getNode(ISD::SRL, dl, MVT::i64, Src2, in LowerADDC_ADDE_SUBC_SUBE()
2921 DAG.getConstant(32, dl, MVT::i64)); in LowerADDC_ADDE_SUBC_SUBE()
2922 Src2Hi = DAG.getNode(ISD::TRUNCATE, dl, MVT::i32, Src2Hi); in LowerADDC_ADDE_SUBC_SUBE()
2937 Lo = DAG.getNode(Op.getOpcode(), dl, VTs, Src1Lo, Src2Lo, in LowerADDC_ADDE_SUBC_SUBE()
2940 Lo = DAG.getNode(Op.getOpcode(), dl, VTs, Src1Lo, Src2Lo); in LowerADDC_ADDE_SUBC_SUBE()
2942 SDValue Hi = DAG.getNode(hiOpc, dl, VTs, Src1Hi, Src2Hi, Lo.getValue(1)); in LowerADDC_ADDE_SUBC_SUBE()
2945 Lo = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i64, Lo); in LowerADDC_ADDE_SUBC_SUBE()
2946 Hi = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i64, Hi); in LowerADDC_ADDE_SUBC_SUBE()
2947 Hi = DAG.getNode(ISD::SHL, dl, MVT::i64, Hi, in LowerADDC_ADDE_SUBC_SUBE()
2948 DAG.getConstant(32, dl, MVT::i64)); in LowerADDC_ADDE_SUBC_SUBE()
2950 SDValue Dst = DAG.getNode(ISD::OR, dl, MVT::i64, Hi, Lo); in LowerADDC_ADDE_SUBC_SUBE()
2952 return DAG.getMergeValues(Ops, dl); in LowerADDC_ADDE_SUBC_SUBE()
2966 SDLoc dl(Op); in LowerUMULO_SMULO() local
2972 SDValue ShiftAmt = DAG.getConstant(63, dl, VT); in LowerUMULO_SMULO()
2975 SDValue HiLHS = DAG.getNode(ISD::SRA, dl, VT, LHS, ShiftAmt); in LowerUMULO_SMULO()
2976 SDValue HiRHS = DAG.getNode(ISD::SRA, dl, MVT::i64, RHS, ShiftAmt); in LowerUMULO_SMULO()
2981 Args, isSigned, dl).first; in LowerUMULO_SMULO()
2982 SDValue BottomHalf = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, VT, in LowerUMULO_SMULO()
2983 MulResult, DAG.getIntPtrConstant(0, dl)); in LowerUMULO_SMULO()
2984 SDValue TopHalf = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, VT, in LowerUMULO_SMULO()
2985 MulResult, DAG.getIntPtrConstant(1, dl)); in LowerUMULO_SMULO()
2987 SDValue Tmp1 = DAG.getNode(ISD::SRA, dl, VT, BottomHalf, ShiftAmt); in LowerUMULO_SMULO()
2988 TopHalf = DAG.getSetCC(dl, MVT::i32, TopHalf, Tmp1, ISD::SETNE); in LowerUMULO_SMULO()
2990 TopHalf = DAG.getSetCC(dl, MVT::i32, TopHalf, DAG.getConstant(0, dl, VT), in LowerUMULO_SMULO()
3000 return DAG.getMergeValues(Ops, dl); in LowerUMULO_SMULO()
3015 SDLoc dl(Op); in LowerINTRINSIC_WO_CHAIN() local
3117 DebugLoc dl = MI.getDebugLoc(); in expandSelectCC() local
3149 BuildMI(BB, dl, TII.get(BROpcode)).addMBB(sinkMBB).addImm(CC); in expandSelectCC()
3163 BuildMI(*BB, BB->begin(), dl, TII.get(SP::PHI), MI.getOperand(0).getReg()) in expandSelectCC()
3176 DebugLoc DL = MI.getDebugLoc(); in emitEHSjLjLongJmp() local
3191 MIB = BuildMI(*MBB, MI, DL, TII->get(SP::TRAPri), SP::G0).addImm(3).addImm(SPCC::ICC_A); in emitEHSjLjLongJmp()
3195 MIB = BuildMI(*MBB, MI, DL, TII->get(SP::LDri)) in emitEHSjLjLongJmp()
3201 MIB = BuildMI(*MBB, MI, DL, TII->get(SP::LDri)) in emitEHSjLjLongJmp()
3208 MIB = BuildMI(*MBB, MI, DL, TII->get(SP::LDri)) in emitEHSjLjLongJmp()
3214 MIB = BuildMI(*MBB, MI, DL, TII->get(SP::LDri)) in emitEHSjLjLongJmp()
3220 …BuildMI(*MBB, MI, DL, TII->get(SP::JMPLrr)).addReg(SP::G0).addReg(JmpLoc, RegState::Kill).addReg(S… in emitEHSjLjLongJmp()
3229 DebugLoc DL = MI.getDebugLoc(); in emitEHSjLjSetJmp() local
3291 MIB = BuildMI(thisMBB, DL, TII->get(SP::STri)) in emitEHSjLjSetJmp()
3297 MIB = BuildMI(thisMBB, DL, TII->get(SP::SETHIi)) in emitEHSjLjSetJmp()
3301 MIB = BuildMI(thisMBB, DL, TII->get(SP::ORri)) in emitEHSjLjSetJmp()
3306 MIB = BuildMI(thisMBB, DL, TII->get(SP::STri)) in emitEHSjLjSetJmp()
3313 MIB = BuildMI(thisMBB, DL, TII->get(SP::STri)) in emitEHSjLjSetJmp()
3319 MIB = BuildMI(thisMBB, DL, TII->get(SP::STri)) in emitEHSjLjSetJmp()
3329 …//MIB = BuildMI(thisMBB, DL, TII->get(SP::EH_SjLj_Setup)).addMBB(restoreMBB, SparcMCExpr::VK_Sparc… in emitEHSjLjSetJmp()
3330 MIB = BuildMI(thisMBB, DL, TII->get(SP::BCOND)) in emitEHSjLjSetJmp()
3334 MIB = BuildMI(thisMBB, DL, TII->get(SP::BCOND)) in emitEHSjLjSetJmp()
3343 MIB = BuildMI(mainMBB, DL, TII->get(SP::ORrr)) in emitEHSjLjSetJmp()
3347 MIB = BuildMI(mainMBB, DL, TII->get(SP::BCOND)).addMBB(sinkMBB).addImm(SPCC::ICC_A); in emitEHSjLjSetJmp()
3353 MIB = BuildMI(restoreMBB, DL, TII->get(SP::ORri)) in emitEHSjLjSetJmp()
3357 //MIB = BuildMI(restoreMBB, DL, TII->get(SP::BCOND)).addMBB(sinkMBB).addImm(SPCC::ICC_A); in emitEHSjLjSetJmp()
3361 MIB = BuildMI(*sinkMBB, sinkMBB->begin(), DL, in emitEHSjLjSetJmp()
3503 SDLoc dl(N); in ReplaceNodeResults() local
3550 SDLoc dl(N); in ReplaceNodeResults() local
3552 Ld->getExtensionType(), dl, MVT::v2i32, in ReplaceNodeResults()
3557 SDValue Res = DAG.getNode(ISD::BITCAST, dl, MVT::i64, LoadRes); in ReplaceNodeResults()