Lines Matching refs:DL

462   SDLoc DL(N);  in performDivRemCombine()  local
464 SDValue DivRem = DAG.getNode(Opc, DL, MVT::Glue, in performDivRemCombine()
471 SDValue CopyFromLo = DAG.getCopyFromReg(InChain, DL, LO, Ty, in performDivRemCombine()
480 SDValue CopyFromHi = DAG.getCopyFromReg(InChain, DL, in performDivRemCombine()
540 SDLoc DL(Op); in createFPCmp() local
546 return DAG.getNode(MipsISD::FPCmp, DL, MVT::Glue, LHS, RHS, in createFPCmp()
552 SDValue False, SDLoc DL) { in createCMovFP() argument
557 return DAG.getNode((invert ? MipsISD::CMovFP_F : MipsISD::CMovFP_T), DL, in createCMovFP()
591 const SDLoc DL(N); in performSELECTCombine() local
597 SetCC = DAG.getSetCC(DL, SetCC.getValueType(), SetCC.getOperand(0), in performSELECTCombine()
600 return DAG.getNode(ISD::SELECT, DL, FalseTy, SetCC, False, True); in performSELECTCombine()
623 return DAG.getNode(ISD::ADD, DL, SetCC.getValueType(), SetCC, False); in performSELECTCombine()
631 SetCC = DAG.getSetCC(DL, SetCC.getValueType(), SetCC.getOperand(0), in performSELECTCombine()
633 return DAG.getNode(ISD::ADD, DL, SetCC.getValueType(), SetCC, True); in performSELECTCombine()
781 SDLoc DL(N); in performADDCombine() local
783 SDValue Add1 = DAG.getNode(ISD::ADD, DL, ValTy, N->getOperand(0), in performADDCombine()
785 return DAG.getNode(ISD::ADD, DL, ValTy, Add1, Lo); in performADDCombine()
1034 DebugLoc DL = MI->getDebugLoc(); in emitAtomicBinary() local
1093 BuildMI(BB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in emitAtomicBinary()
1097 BuildMI(BB, DL, TII->get(AND), AndRes).addReg(OldVal).addReg(Incr); in emitAtomicBinary()
1098 BuildMI(BB, DL, TII->get(NOR), StoreVal).addReg(ZERO).addReg(AndRes); in emitAtomicBinary()
1101 BuildMI(BB, DL, TII->get(BinOpcode), StoreVal).addReg(OldVal).addReg(Incr); in emitAtomicBinary()
1105 BuildMI(BB, DL, TII->get(SC), Success).addReg(StoreVal).addReg(Ptr).addImm(0); in emitAtomicBinary()
1106 BuildMI(BB, DL, TII->get(BEQ)).addReg(Success).addReg(ZERO).addMBB(loopMBB); in emitAtomicBinary()
1117 DebugLoc DL = MI->getDebugLoc(); in emitSignExtendToI32InReg() local
1120 BuildMI(BB, DL, TII->get(Mips::SEB), DstReg).addReg(SrcReg); in emitSignExtendToI32InReg()
1125 BuildMI(BB, DL, TII->get(Mips::SEH), DstReg).addReg(SrcReg); in emitSignExtendToI32InReg()
1137 BuildMI(BB, DL, TII->get(Mips::SLL), ScrReg).addReg(SrcReg).addImm(ShiftImm); in emitSignExtendToI32InReg()
1138 BuildMI(BB, DL, TII->get(Mips::SRA), DstReg).addReg(ScrReg).addImm(ShiftImm); in emitSignExtendToI32InReg()
1153 DebugLoc DL = MI->getDebugLoc(); in emitAtomicBinaryPartword() local
1209 BuildMI(BB, DL, TII->get(Mips::ADDiu), MaskLSB2) in emitAtomicBinaryPartword()
1211 BuildMI(BB, DL, TII->get(Mips::AND), AlignedAddr) in emitAtomicBinaryPartword()
1213 BuildMI(BB, DL, TII->get(Mips::ANDi), PtrLSB2).addReg(Ptr).addImm(3); in emitAtomicBinaryPartword()
1215 BuildMI(BB, DL, TII->get(Mips::SLL), ShiftAmt).addReg(PtrLSB2).addImm(3); in emitAtomicBinaryPartword()
1218 BuildMI(BB, DL, TII->get(Mips::XORi), Off) in emitAtomicBinaryPartword()
1220 BuildMI(BB, DL, TII->get(Mips::SLL), ShiftAmt).addReg(Off).addImm(3); in emitAtomicBinaryPartword()
1222 BuildMI(BB, DL, TII->get(Mips::ORi), MaskUpper) in emitAtomicBinaryPartword()
1224 BuildMI(BB, DL, TII->get(Mips::SLLV), Mask) in emitAtomicBinaryPartword()
1226 BuildMI(BB, DL, TII->get(Mips::NOR), Mask2).addReg(Mips::ZERO).addReg(Mask); in emitAtomicBinaryPartword()
1227 BuildMI(BB, DL, TII->get(Mips::SLLV), Incr2).addReg(Incr).addReg(ShiftAmt); in emitAtomicBinaryPartword()
1250 BuildMI(BB, DL, TII->get(LL), OldVal).addReg(AlignedAddr).addImm(0); in emitAtomicBinaryPartword()
1255 BuildMI(BB, DL, TII->get(Mips::AND), AndRes).addReg(OldVal).addReg(Incr2); in emitAtomicBinaryPartword()
1256 BuildMI(BB, DL, TII->get(Mips::NOR), BinOpRes) in emitAtomicBinaryPartword()
1258 BuildMI(BB, DL, TII->get(Mips::AND), NewVal).addReg(BinOpRes).addReg(Mask); in emitAtomicBinaryPartword()
1262 BuildMI(BB, DL, TII->get(BinOpcode), BinOpRes).addReg(OldVal).addReg(Incr2); in emitAtomicBinaryPartword()
1263 BuildMI(BB, DL, TII->get(Mips::AND), NewVal).addReg(BinOpRes).addReg(Mask); in emitAtomicBinaryPartword()
1266 BuildMI(BB, DL, TII->get(Mips::AND), NewVal).addReg(Incr2).addReg(Mask); in emitAtomicBinaryPartword()
1269 BuildMI(BB, DL, TII->get(Mips::AND), MaskedOldVal0) in emitAtomicBinaryPartword()
1271 BuildMI(BB, DL, TII->get(Mips::OR), StoreVal) in emitAtomicBinaryPartword()
1274 BuildMI(BB, DL, TII->get(SC), Success) in emitAtomicBinaryPartword()
1276 BuildMI(BB, DL, TII->get(Mips::BEQ)) in emitAtomicBinaryPartword()
1285 BuildMI(BB, DL, TII->get(Mips::AND), MaskedOldVal1) in emitAtomicBinaryPartword()
1287 BuildMI(BB, DL, TII->get(Mips::SRLV), SrlRes) in emitAtomicBinaryPartword()
1305 DebugLoc DL = MI->getDebugLoc(); in emitAtomicCmpSwap() local
1358 BuildMI(BB, DL, TII->get(LL), Dest).addReg(Ptr).addImm(0); in emitAtomicCmpSwap()
1359 BuildMI(BB, DL, TII->get(BNE)) in emitAtomicCmpSwap()
1366 BuildMI(BB, DL, TII->get(SC), Success) in emitAtomicCmpSwap()
1368 BuildMI(BB, DL, TII->get(BEQ)) in emitAtomicCmpSwap()
1387 DebugLoc DL = MI->getDebugLoc(); in emitAtomicCmpSwapPartword() local
1451 BuildMI(BB, DL, TII->get(Mips::ADDiu), MaskLSB2) in emitAtomicCmpSwapPartword()
1453 BuildMI(BB, DL, TII->get(Mips::AND), AlignedAddr) in emitAtomicCmpSwapPartword()
1455 BuildMI(BB, DL, TII->get(Mips::ANDi), PtrLSB2).addReg(Ptr).addImm(3); in emitAtomicCmpSwapPartword()
1457 BuildMI(BB, DL, TII->get(Mips::SLL), ShiftAmt).addReg(PtrLSB2).addImm(3); in emitAtomicCmpSwapPartword()
1460 BuildMI(BB, DL, TII->get(Mips::XORi), Off) in emitAtomicCmpSwapPartword()
1462 BuildMI(BB, DL, TII->get(Mips::SLL), ShiftAmt).addReg(Off).addImm(3); in emitAtomicCmpSwapPartword()
1464 BuildMI(BB, DL, TII->get(Mips::ORi), MaskUpper) in emitAtomicCmpSwapPartword()
1466 BuildMI(BB, DL, TII->get(Mips::SLLV), Mask) in emitAtomicCmpSwapPartword()
1468 BuildMI(BB, DL, TII->get(Mips::NOR), Mask2).addReg(Mips::ZERO).addReg(Mask); in emitAtomicCmpSwapPartword()
1469 BuildMI(BB, DL, TII->get(Mips::ANDi), MaskedCmpVal) in emitAtomicCmpSwapPartword()
1471 BuildMI(BB, DL, TII->get(Mips::SLLV), ShiftedCmpVal) in emitAtomicCmpSwapPartword()
1473 BuildMI(BB, DL, TII->get(Mips::ANDi), MaskedNewVal) in emitAtomicCmpSwapPartword()
1475 BuildMI(BB, DL, TII->get(Mips::SLLV), ShiftedNewVal) in emitAtomicCmpSwapPartword()
1484 BuildMI(BB, DL, TII->get(LL), OldVal).addReg(AlignedAddr).addImm(0); in emitAtomicCmpSwapPartword()
1485 BuildMI(BB, DL, TII->get(Mips::AND), MaskedOldVal0) in emitAtomicCmpSwapPartword()
1487 BuildMI(BB, DL, TII->get(Mips::BNE)) in emitAtomicCmpSwapPartword()
1496 BuildMI(BB, DL, TII->get(Mips::AND), MaskedOldVal1) in emitAtomicCmpSwapPartword()
1498 BuildMI(BB, DL, TII->get(Mips::OR), StoreVal) in emitAtomicCmpSwapPartword()
1501 BuildMI(BB, DL, TII->get(SC), Success) in emitAtomicCmpSwapPartword()
1503 BuildMI(BB, DL, TII->get(Mips::BEQ)) in emitAtomicCmpSwapPartword()
1511 BuildMI(BB, DL, TII->get(Mips::SRLV), SrlRes) in emitAtomicCmpSwapPartword()
1526 DebugLoc DL = MI->getDebugLoc(); in emitSEL_D() local
1534 BuildMI(*BB, II, DL, TII->get(Mips::SUBREG_TO_REG), Fc2) in emitSEL_D()
1553 SDLoc DL(Op); in lowerBR_JT() local
1558 Index = DAG.getNode(ISD::MUL, DL, PTy, Index, in lowerBR_JT()
1560 SDValue Addr = DAG.getNode(ISD::ADD, DL, PTy, Index, Table); in lowerBR_JT()
1563 Addr = DAG.getExtLoad(ISD::SEXTLOAD, DL, PTy, Chain, Addr, in lowerBR_JT()
1572 Addr = DAG.getNode(ISD::ADD, DL, PTy, Addr, in lowerBR_JT()
1576 return DAG.getNode(ISD::BRIND, DL, MVT::Other, Chain, Addr); in lowerBR_JT()
1584 SDLoc DL(Op); in lowerBRCOND() local
1599 return DAG.getNode(MipsISD::FPBrcond, DL, Op.getValueType(), Chain, BrCode, in lowerBRCOND()
1620 SDLoc DL(Op); in lowerSELECT_CC() local
1622 SDValue Cond = DAG.getNode(ISD::SETCC, DL, in lowerSELECT_CC()
1627 return DAG.getNode(ISD::SELECT, DL, Op.getValueType(), Cond, Op.getOperand(2), in lowerSELECT_CC()
1695 SDLoc DL(GA); in lowerGlobalTLSAddress() local
1706 SDValue TGA = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, Flag); in lowerGlobalTLSAddress()
1707 SDValue Argument = DAG.getNode(MipsISD::Wrapper, DL, PtrVT, in lowerGlobalTLSAddress()
1721 CLI.setDebugLoc(DL).setChain(DAG.getEntryNode()) in lowerGlobalTLSAddress()
1730 SDValue TGAHi = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, in lowerGlobalTLSAddress()
1732 SDValue Hi = DAG.getNode(MipsISD::Hi, DL, PtrVT, TGAHi); in lowerGlobalTLSAddress()
1733 SDValue TGALo = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, in lowerGlobalTLSAddress()
1735 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, PtrVT, TGALo); in lowerGlobalTLSAddress()
1736 SDValue Add = DAG.getNode(ISD::ADD, DL, PtrVT, Hi, Ret); in lowerGlobalTLSAddress()
1737 return DAG.getNode(ISD::ADD, DL, PtrVT, Add, Lo); in lowerGlobalTLSAddress()
1743 SDValue TGA = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, in lowerGlobalTLSAddress()
1745 TGA = DAG.getNode(MipsISD::Wrapper, DL, PtrVT, getGlobalReg(DAG, PtrVT), in lowerGlobalTLSAddress()
1747 Offset = DAG.getLoad(PtrVT, DL, in lowerGlobalTLSAddress()
1753 SDValue TGAHi = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, in lowerGlobalTLSAddress()
1755 SDValue TGALo = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, in lowerGlobalTLSAddress()
1757 SDValue Hi = DAG.getNode(MipsISD::Hi, DL, PtrVT, TGAHi); in lowerGlobalTLSAddress()
1758 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, PtrVT, TGALo); in lowerGlobalTLSAddress()
1759 Offset = DAG.getNode(ISD::ADD, DL, PtrVT, Hi, Lo); in lowerGlobalTLSAddress()
1762 SDValue ThreadPointer = DAG.getNode(MipsISD::ThreadPointer, DL, PtrVT); in lowerGlobalTLSAddress()
1763 return DAG.getNode(ISD::ADD, DL, PtrVT, ThreadPointer, Offset); in lowerGlobalTLSAddress()
1803 SDLoc DL(Op); in lowerVASTART() local
1810 return DAG.getStore(Op.getOperand(0), DL, FI, Op.getOperand(1), in lowerVASTART()
1821 SDLoc DL(Node); in lowerVAARG() local
1824 SDValue VAListLoad = DAG.getLoad(getPointerTy(), DL, Chain, VAListPtr, in lowerVAARG()
1839 VAList = DAG.getNode(ISD::ADD, DL, VAList.getValueType(), VAList, in lowerVAARG()
1843 VAList = DAG.getNode(ISD::AND, DL, VAList.getValueType(), VAList, in lowerVAARG()
1850 SDValue Tmp3 = DAG.getNode(ISD::ADD, DL, VAList.getValueType(), VAList, in lowerVAARG()
1854 Chain = DAG.getStore(VAListLoad.getValue(1), DL, Tmp3, VAListPtr, in lowerVAARG()
1864 VAList = DAG.getNode(ISD::ADD, DL, VAListPtr.getValueType(), VAList, in lowerVAARG()
1868 return DAG.getLoad(VT, DL, Chain, VAList, MachinePointerInfo(), false, false, in lowerVAARG()
1878 SDLoc DL(Op); in lowerFCOPYSIGN32() local
1884 DAG.getNode(ISD::BITCAST, DL, MVT::i32, Op.getOperand(0)) : in lowerFCOPYSIGN32()
1885 DAG.getNode(MipsISD::ExtractElementF64, DL, MVT::i32, Op.getOperand(0), in lowerFCOPYSIGN32()
1888 DAG.getNode(ISD::BITCAST, DL, MVT::i32, Op.getOperand(1)) : in lowerFCOPYSIGN32()
1889 DAG.getNode(MipsISD::ExtractElementF64, DL, MVT::i32, Op.getOperand(1), in lowerFCOPYSIGN32()
1895 SDValue E = DAG.getNode(MipsISD::Ext, DL, MVT::i32, Y, Const31, Const1); in lowerFCOPYSIGN32()
1896 Res = DAG.getNode(MipsISD::Ins, DL, MVT::i32, E, Const31, Const1, X); in lowerFCOPYSIGN32()
1903 SDValue SllX = DAG.getNode(ISD::SHL, DL, MVT::i32, X, Const1); in lowerFCOPYSIGN32()
1904 SDValue SrlX = DAG.getNode(ISD::SRL, DL, MVT::i32, SllX, Const1); in lowerFCOPYSIGN32()
1905 SDValue SrlY = DAG.getNode(ISD::SRL, DL, MVT::i32, Y, Const31); in lowerFCOPYSIGN32()
1906 SDValue SllY = DAG.getNode(ISD::SHL, DL, MVT::i32, SrlY, Const31); in lowerFCOPYSIGN32()
1907 Res = DAG.getNode(ISD::OR, DL, MVT::i32, SrlX, SllY); in lowerFCOPYSIGN32()
1911 return DAG.getNode(ISD::BITCAST, DL, Op.getOperand(0).getValueType(), Res); in lowerFCOPYSIGN32()
1913 SDValue LowX = DAG.getNode(MipsISD::ExtractElementF64, DL, MVT::i32, in lowerFCOPYSIGN32()
1915 return DAG.getNode(MipsISD::BuildPairF64, DL, MVT::f64, LowX, Res); in lowerFCOPYSIGN32()
1924 SDLoc DL(Op); in lowerFCOPYSIGN64() local
1927 SDValue X = DAG.getNode(ISD::BITCAST, DL, TyX, Op.getOperand(0)); in lowerFCOPYSIGN64()
1928 SDValue Y = DAG.getNode(ISD::BITCAST, DL, TyY, Op.getOperand(1)); in lowerFCOPYSIGN64()
1933 SDValue E = DAG.getNode(MipsISD::Ext, DL, TyY, Y, in lowerFCOPYSIGN64()
1937 E = DAG.getNode(ISD::ZERO_EXTEND, DL, TyX, E); in lowerFCOPYSIGN64()
1939 E = DAG.getNode(ISD::TRUNCATE, DL, TyX, E); in lowerFCOPYSIGN64()
1941 SDValue I = DAG.getNode(MipsISD::Ins, DL, TyX, E, in lowerFCOPYSIGN64()
1943 return DAG.getNode(ISD::BITCAST, DL, Op.getOperand(0).getValueType(), I); in lowerFCOPYSIGN64()
1951 SDValue SllX = DAG.getNode(ISD::SHL, DL, TyX, X, Const1); in lowerFCOPYSIGN64()
1952 SDValue SrlX = DAG.getNode(ISD::SRL, DL, TyX, SllX, Const1); in lowerFCOPYSIGN64()
1953 SDValue SrlY = DAG.getNode(ISD::SRL, DL, TyY, Y, in lowerFCOPYSIGN64()
1957 SrlY = DAG.getNode(ISD::ZERO_EXTEND, DL, TyX, SrlY); in lowerFCOPYSIGN64()
1959 SrlY = DAG.getNode(ISD::TRUNCATE, DL, TyX, SrlY); in lowerFCOPYSIGN64()
1961 SDValue SllY = DAG.getNode(ISD::SHL, DL, TyX, SrlY, in lowerFCOPYSIGN64()
1963 SDValue Or = DAG.getNode(ISD::OR, DL, TyX, SrlX, SllY); in lowerFCOPYSIGN64()
1964 return DAG.getNode(ISD::BITCAST, DL, Op.getOperand(0).getValueType(), Or); in lowerFCOPYSIGN64()
1984 SDLoc DL(Op); in lowerFRAMEADDR() local
1986 DAG.getEntryNode(), DL, ABI.IsN64() ? Mips::FP_64 : Mips::FP, VT); in lowerFRAMEADDR()
2023 SDLoc DL(Op); in lowerEH_RETURN() local
2030 Chain = DAG.getCopyToReg(Chain, DL, OffsetReg, Offset, SDValue()); in lowerEH_RETURN()
2031 Chain = DAG.getCopyToReg(Chain, DL, AddrReg, Handler, Chain.getValue(1)); in lowerEH_RETURN()
2032 return DAG.getNode(MipsISD::EH_RETURN, DL, MVT::Other, Chain, in lowerEH_RETURN()
2043 SDLoc DL(Op); in lowerATOMIC_FENCE() local
2044 return DAG.getNode(MipsISD::Sync, DL, MVT::Other, Op.getOperand(0), in lowerATOMIC_FENCE()
2050 SDLoc DL(Op); in lowerShiftLeftParts() local
2061 SDValue Not = DAG.getNode(ISD::XOR, DL, MVT::i32, Shamt, in lowerShiftLeftParts()
2063 SDValue ShiftRight1Lo = DAG.getNode(ISD::SRL, DL, VT, Lo, in lowerShiftLeftParts()
2065 SDValue ShiftRightLo = DAG.getNode(ISD::SRL, DL, VT, ShiftRight1Lo, Not); in lowerShiftLeftParts()
2066 SDValue ShiftLeftHi = DAG.getNode(ISD::SHL, DL, VT, Hi, Shamt); in lowerShiftLeftParts()
2067 SDValue Or = DAG.getNode(ISD::OR, DL, VT, ShiftLeftHi, ShiftRightLo); in lowerShiftLeftParts()
2068 SDValue ShiftLeftLo = DAG.getNode(ISD::SHL, DL, VT, Lo, Shamt); in lowerShiftLeftParts()
2069 SDValue Cond = DAG.getNode(ISD::AND, DL, MVT::i32, Shamt, in lowerShiftLeftParts()
2071 Lo = DAG.getNode(ISD::SELECT, DL, VT, Cond, in lowerShiftLeftParts()
2073 Hi = DAG.getNode(ISD::SELECT, DL, VT, Cond, ShiftLeftLo, Or); in lowerShiftLeftParts()
2076 return DAG.getMergeValues(Ops, DL); in lowerShiftLeftParts()
2081 SDLoc DL(Op); in lowerShiftRightParts() local
2099 SDValue Not = DAG.getNode(ISD::XOR, DL, MVT::i32, Shamt, in lowerShiftRightParts()
2101 SDValue ShiftLeft1Hi = DAG.getNode(ISD::SHL, DL, VT, Hi, in lowerShiftRightParts()
2103 SDValue ShiftLeftHi = DAG.getNode(ISD::SHL, DL, VT, ShiftLeft1Hi, Not); in lowerShiftRightParts()
2104 SDValue ShiftRightLo = DAG.getNode(ISD::SRL, DL, VT, Lo, Shamt); in lowerShiftRightParts()
2105 SDValue Or = DAG.getNode(ISD::OR, DL, VT, ShiftLeftHi, ShiftRightLo); in lowerShiftRightParts()
2107 DL, VT, Hi, Shamt); in lowerShiftRightParts()
2108 SDValue Cond = DAG.getNode(ISD::AND, DL, MVT::i32, Shamt, in lowerShiftRightParts()
2110 SDValue Shift31 = DAG.getNode(ISD::SRA, DL, VT, Hi, DAG.getConstant(31, VT)); in lowerShiftRightParts()
2111 Lo = DAG.getNode(ISD::SELECT, DL, VT, Cond, ShiftRightHi, Or); in lowerShiftRightParts()
2112 Hi = DAG.getNode(ISD::SELECT, DL, VT, Cond, in lowerShiftRightParts()
2116 return DAG.getMergeValues(Ops, DL); in lowerShiftRightParts()
2124 SDLoc DL(LD); in createLoadLR() local
2128 Ptr = DAG.getNode(ISD::ADD, DL, BasePtrVT, Ptr, in createLoadLR()
2132 return DAG.getMemIntrinsicNode(Opc, DL, VTList, Ops, MemVT, in createLoadLR()
2193 SDLoc DL(LD); in lowerLOAD() local
2195 SDValue SLL = DAG.getNode(ISD::SHL, DL, MVT::i64, LWR, Const32); in lowerLOAD()
2196 SDValue SRL = DAG.getNode(ISD::SRL, DL, MVT::i64, SLL, Const32); in lowerLOAD()
2198 return DAG.getMergeValues(Ops, DL); in lowerLOAD()
2205 SDLoc DL(SD); in createStoreLR() local
2209 Ptr = DAG.getNode(ISD::ADD, DL, BasePtrVT, Ptr, in createStoreLR()
2213 return DAG.getMemIntrinsicNode(Opc, DL, VTList, Ops, MemVT, in createStoreLR()
2446 SDValue Chain, SDValue Arg, SDLoc DL, in passArgOnStack() argument
2449 SDValue PtrOff = DAG.getNode(ISD::ADD, DL, getPointerTy(), StackPtr, in passArgOnStack()
2451 return DAG.getStore(Chain, DL, Arg, PtrOff, MachinePointerInfo(), false, in passArgOnStack()
2458 return DAG.getStore(Chain, DL, Arg, FIN, MachinePointerInfo(), in passArgOnStack()
2491 Chain = CLI.DAG.getCopyToReg(Chain, CLI.DL, RegsToPass[i].first, in getOpndList()
2528 SDLoc DL = CLI.DL; in LowerCall() local
2579 Chain = DAG.getCALLSEQ_START(Chain, NextStackOffsetVal, DL); in LowerCall()
2582 Chain, DL, ABI.IsN64() ? Mips::SP_64 : Mips::SP, getPointerTy()); in LowerCall()
2609 passByValArg(Chain, DL, RegsToPass, MemOpChains, StackPtr, MFI, DAG, Arg, in LowerCall()
2625 Arg = DAG.getNode(ISD::BITCAST, DL, LocVT, Arg); in LowerCall()
2627 SDValue Lo = DAG.getNode(MipsISD::ExtractElementF64, DL, MVT::i32, in LowerCall()
2629 SDValue Hi = DAG.getNode(MipsISD::ExtractElementF64, DL, MVT::i32, in LowerCall()
2642 Arg = DAG.getNode(ISD::BITCAST, DL, LocVT, Arg); in LowerCall()
2648 Arg = DAG.getNode(ISD::SIGN_EXTEND, DL, LocVT, Arg); in LowerCall()
2654 Arg = DAG.getNode(ISD::ZERO_EXTEND, DL, LocVT, Arg); in LowerCall()
2660 Arg = DAG.getNode(ISD::ANY_EXTEND, DL, LocVT, Arg); in LowerCall()
2668 ISD::SHL, DL, VA.getLocVT(), Arg, in LowerCall()
2685 Chain, Arg, DL, IsTailCall, DAG)); in LowerCall()
2691 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, MemOpChains); in LowerCall()
2708 Callee = getAddrLocal(G, DL, Ty, DAG, ABI.IsN32() || ABI.IsN64()); in LowerCall()
2710 Callee = getAddrGlobalLargeGOT(G, DL, Ty, DAG, MipsII::MO_CALL_HI16, in LowerCall()
2715 Callee = getAddrGlobal(G, DL, Ty, DAG, MipsII::MO_GOT_CALL, Chain, in LowerCall()
2720 Callee = DAG.getTargetGlobalAddress(G->getGlobal(), DL, getPointerTy(), 0, in LowerCall()
2731 Callee = getAddrGlobalLargeGOT(S, DL, Ty, DAG, MipsII::MO_CALL_HI16, in LowerCall()
2736 Callee = getAddrGlobal(S, DL, Ty, DAG, MipsII::MO_GOT_CALL, Chain, in LowerCall()
2751 return DAG.getNode(MipsISD::TailCall, DL, MVT::Other, Ops); in LowerCall()
2753 Chain = DAG.getNode(MipsISD::JmpLink, DL, NodeTys, Ops); in LowerCall()
2758 DAG.getIntPtrConstant(0, true), InFlag, DL); in LowerCall()
2763 return LowerCallResult(Chain, InFlag, CallConv, IsVarArg, Ins, DL, DAG, in LowerCall()
2771 const SmallVectorImpl<ISD::InputArg> &Ins, SDLoc DL, SelectionDAG &DAG, in LowerCallResult() argument
2785 SDValue Val = DAG.getCopyFromReg(Chain, DL, RVLocs[i].getLocReg(), in LowerCallResult()
2796 Shift, DL, VA.getLocVT(), Val, in LowerCallResult()
2806 Val = DAG.getNode(ISD::BITCAST, DL, VA.getValVT(), Val); in LowerCallResult()
2810 Val = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), Val); in LowerCallResult()
2814 Val = DAG.getNode(ISD::AssertZext, DL, VA.getLocVT(), Val, in LowerCallResult()
2816 Val = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), Val); in LowerCallResult()
2820 Val = DAG.getNode(ISD::AssertSext, DL, VA.getLocVT(), Val, in LowerCallResult()
2822 Val = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), Val); in LowerCallResult()
2833 EVT ArgVT, SDLoc DL, SelectionDAG &DAG) { in UnpackFromArgumentSlot() argument
2849 Opcode, DL, VA.getLocVT(), Val, in UnpackFromArgumentSlot()
2866 Val = DAG.getNode(ISD::TRUNCATE, DL, ValVT, Val); in UnpackFromArgumentSlot()
2870 Val = DAG.getNode(ISD::AssertSext, DL, LocVT, Val, DAG.getValueType(ValVT)); in UnpackFromArgumentSlot()
2871 Val = DAG.getNode(ISD::TRUNCATE, DL, ValVT, Val); in UnpackFromArgumentSlot()
2875 Val = DAG.getNode(ISD::AssertZext, DL, LocVT, Val, DAG.getValueType(ValVT)); in UnpackFromArgumentSlot()
2876 Val = DAG.getNode(ISD::TRUNCATE, DL, ValVT, Val); in UnpackFromArgumentSlot()
2879 Val = DAG.getNode(ISD::BITCAST, DL, ValVT, Val); in UnpackFromArgumentSlot()
2896 SDLoc DL, SelectionDAG &DAG, in LowerFormalArguments() argument
2942 copyByValRegs(Chain, DL, OutChains, DAG, Flags, InVals, &*FuncArg, in LowerFormalArguments()
2957 SDValue ArgValue = DAG.getCopyFromReg(Chain, DL, Reg, RegVT); in LowerFormalArguments()
2959 ArgValue = UnpackFromArgumentSlot(ArgValue, VA, Ins[i].ArgVT, DL, DAG); in LowerFormalArguments()
2966 ArgValue = DAG.getNode(ISD::BITCAST, DL, ValVT, ArgValue); in LowerFormalArguments()
2971 SDValue ArgValue2 = DAG.getCopyFromReg(Chain, DL, Reg2, RegVT); in LowerFormalArguments()
2974 ArgValue = DAG.getNode(MipsISD::BuildPairF64, DL, MVT::f64, in LowerFormalArguments()
3000 SDValue ArgValue = DAG.getLoad(LocVT, DL, Chain, FIN, in LowerFormalArguments()
3005 ArgValue = UnpackFromArgumentSlot(ArgValue, VA, Ins[i].ArgVT, DL, DAG); in LowerFormalArguments()
3022 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), DL, Reg, InVals[i]); in LowerFormalArguments()
3023 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, Copy, Chain); in LowerFormalArguments()
3029 writeVarArgRegs(OutChains, Chain, DL, DAG, CCInfo); in LowerFormalArguments()
3035 Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, OutChains); in LowerFormalArguments()
3069 SDLoc DL, SelectionDAG &DAG) const { in LowerReturn() argument
3097 Val = DAG.getNode(ISD::BITCAST, DL, VA.getLocVT(), Val); in LowerReturn()
3103 Val = DAG.getNode(ISD::ANY_EXTEND, DL, VA.getLocVT(), Val); in LowerReturn()
3109 Val = DAG.getNode(ISD::ZERO_EXTEND, DL, VA.getLocVT(), Val); in LowerReturn()
3115 Val = DAG.getNode(ISD::SIGN_EXTEND, DL, VA.getLocVT(), Val); in LowerReturn()
3123 ISD::SHL, DL, VA.getLocVT(), Val, in LowerReturn()
3127 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), Val, Flag); in LowerReturn()
3144 SDValue Val = DAG.getCopyFromReg(Chain, DL, Reg, getPointerTy()); in LowerReturn()
3147 Chain = DAG.getCopyToReg(Chain, DL, V0, Val, Flag); in LowerReturn()
3159 return DAG.getNode(MipsISD::Ret, DL, MVT::Other, RetOps); in LowerReturn()
3568 SDValue Chain, SDLoc DL, std::vector<SDValue> &OutChains, SelectionDAG &DAG, in copyByValRegs() argument
3605 SDValue StorePtr = DAG.getNode(ISD::ADD, DL, PtrTy, FIN, in copyByValRegs()
3607 SDValue Store = DAG.getStore(Chain, DL, DAG.getRegister(VReg, RegTy), in copyByValRegs()
3616 SDValue Chain, SDLoc DL, in passByValArg() argument
3636 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg()
3638 SDValue LoadVal = DAG.getLoad(RegTy, DL, Chain, LoadPtr, in passByValArg()
3662 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg()
3665 ISD::ZEXTLOAD, DL, RegTy, Chain, LoadPtr, MachinePointerInfo(), in passByValArg()
3678 SDValue Shift = DAG.getNode(ISD::SHL, DL, RegTy, LoadVal, in passByValArg()
3682 Val = DAG.getNode(ISD::OR, DL, RegTy, Val, Shift); in passByValArg()
3699 SDValue Src = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg()
3701 SDValue Dst = DAG.getNode(ISD::ADD, DL, PtrTy, StackPtr, in passByValArg()
3703 Chain = DAG.getMemcpy(Chain, DL, Dst, Src, DAG.getConstant(MemCpySize, PtrTy), in passByValArg()
3711 SDValue Chain, SDLoc DL, in writeVarArgRegs() argument
3747 SDValue ArgValue = DAG.getCopyFromReg(Chain, DL, Reg, RegTy); in writeVarArgRegs()
3750 SDValue Store = DAG.getStore(Chain, DL, ArgValue, PtrOff, in writeVarArgRegs()
3812 DebugLoc DL = MI->getDebugLoc(); in emitPseudoSELECT() local
3846 BuildMI(BB, DL, TII->get(Opc)) in emitPseudoSELECT()
3851 BuildMI(BB, DL, TII->get(Opc)) in emitPseudoSELECT()
3870 BuildMI(*BB, BB->begin(), DL, in emitPseudoSELECT()