Lines Matching refs:CurDAG
249 ? CurDAG->getTargetFrameIndex( in getAddressOperands()
251 TLI->getPointerTy(CurDAG->getDataLayout())) in getAddressOperands()
258 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), in getAddressOperands()
262 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i32, in getAddressOperands()
266 Disp = CurDAG->getTargetExternalSymbol(AM.ES, MVT::i32, AM.SymbolFlags); in getAddressOperands()
270 Disp = CurDAG->getMCSymbol(AM.MCSym, MVT::i32); in getAddressOperands()
273 Disp = CurDAG->getTargetJumpTable(AM.JT, MVT::i32, AM.SymbolFlags); in getAddressOperands()
275 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
278 Disp = CurDAG->getTargetConstant(AM.Disp, DL, MVT::i32); in getAddressOperands()
283 Segment = CurDAG->getRegister(0, MVT::i32); in getAddressOperands()
364 return CurDAG->getTargetConstant(Imm, DL, MVT::i8); in getI8Imm()
369 return CurDAG->getTargetConstant(Imm, DL, MVT::i32); in getI32Imm()
464 static void moveBelowOrigChain(SelectionDAG *CurDAG, SDValue Load, in moveBelowOrigChain() argument
479 CurDAG->getNode(ISD::TokenFactor, SDLoc(Load), MVT::Other, Ops); in moveBelowOrigChain()
484 CurDAG->UpdateNodeOperands(OrigChain.getNode(), Ops); in moveBelowOrigChain()
485 CurDAG->UpdateNodeOperands(Load.getNode(), Call.getOperand(0), in moveBelowOrigChain()
491 CurDAG->UpdateNodeOperands(Call.getNode(), Ops); in moveBelowOrigChain()
542 for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(), in PreprocessISelDAG()
543 E = CurDAG->allnodes_end(); I != E; ) { in PreprocessISelDAG()
578 moveBelowOrigChain(CurDAG, Load, SDValue(N, 0), Chain); in PreprocessISelDAG()
628 SDValue MemTmp = CurDAG->CreateStackTemporary(MemVT); in PreprocessISelDAG()
632 SDValue Store = CurDAG->getTruncStore(CurDAG->getEntryNode(), dl, in PreprocessISelDAG()
636 SDValue Result = CurDAG->getExtLoad(ISD::EXTLOAD, dl, DstVT, Store, MemTmp, in PreprocessISelDAG()
645 CurDAG->ReplaceAllUsesOfValueWith(SDValue(N, 0), Result); in PreprocessISelDAG()
650 CurDAG->DeleteNode(N); in PreprocessISelDAG()
659 auto &DL = CurDAG->getDataLayout(); in emitSpecialCodeForMain()
661 TargetLowering::CallLoweringInfo CLI(*CurDAG); in emitSpecialCodeForMain()
662 CLI.setChain(CurDAG->getRoot()) in emitSpecialCodeForMain()
663 .setCallee(CallingConv::C, Type::getVoidTy(*CurDAG->getContext()), in emitSpecialCodeForMain()
664 CurDAG->getExternalSymbol("__main", TLI->getPointerTy(DL)), in emitSpecialCodeForMain()
666 const TargetLowering &TLI = CurDAG->getTargetLoweringInfo(); in emitSpecialCodeForMain()
668 CurDAG->setRoot(Result.second); in emitSpecialCodeForMain()
725 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in matchLoadInAddress()
728 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in matchLoadInAddress()
796 AM.setBaseReg(CurDAG->getRegister(X86::RIP, MVT::i64)); in matchWrapper()
862 AM.Base_Reg = CurDAG->getRegister(X86::RIP, MVT::i64); in matchAddress()
1193 if (CurDAG->isBaseWithConstantOffset(ShVal)) { in matchAddressRecursively()
1230 if (!foldMaskAndShiftToScale(*CurDAG, N, Mask, N, X, AM)) in matchAddressRecursively()
1332 SDValue Zero = CurDAG->getConstant(0, dl, N.getValueType()); in matchAddressRecursively()
1333 SDValue Neg = CurDAG->getNode(ISD::SUB, dl, N.getValueType(), Zero, RHS); in matchAddressRecursively()
1338 insertDAGNode(*CurDAG, N, Zero); in matchAddressRecursively()
1339 insertDAGNode(*CurDAG, N, Neg); in matchAddressRecursively()
1355 if (CurDAG->haveNoCommonBitsSet(N.getOperand(0), N.getOperand(1)) && in matchAddressRecursively()
1380 if (!foldMaskAndShiftToExtract(*CurDAG, N, Mask, Shift, X, AM)) in matchAddressRecursively()
1384 if (!foldMaskAndShiftToScale(*CurDAG, N, Mask, Shift, X, AM)) in matchAddressRecursively()
1389 if (!foldMaskedShiftToScaledMask(*CurDAG, N, Mask, Shift, X, AM)) in matchAddressRecursively()
1431 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in selectVectorAddr()
1433 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in selectVectorAddr()
1435 AM.Segment = CurDAG->getRegister(X86::SS, MVT::i16); in selectVectorAddr()
1448 Base = CurDAG->getRegister(0, MVT::i32); in selectVectorAddr()
1453 Segment = CurDAG->getRegister(0, MVT::i32); in selectVectorAddr()
1454 Disp = CurDAG->getTargetConstant(0, DL, MVT::i32); in selectVectorAddr()
1482 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in selectAddr()
1484 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in selectAddr()
1486 AM.Segment = CurDAG->getRegister(X86::SS, MVT::i16); in selectAddr()
1495 AM.Base_Reg = CurDAG->getRegister(0, VT); in selectAddr()
1499 AM.IndexReg = CurDAG->getRegister(0, VT); in selectAddr()
1557 Imm = CurDAG->getTargetConstant(ImmVal, SDLoc(N), MVT::i64); in selectMOV64Imm32()
1591 Base = CurDAG->getRegister(0, MVT::i64); in selectLEA64_32Addr()
1594 Base = SDValue(CurDAG->getMachineNode( in selectLEA64_32Addr()
1596 CurDAG->getTargetConstant(0, DL, MVT::i64), in selectLEA64_32Addr()
1598 CurDAG->getTargetConstant(X86::sub_32bit, DL, MVT::i32)), in selectLEA64_32Addr()
1604 Index = CurDAG->getRegister(0, MVT::i64); in selectLEA64_32Addr()
1608 Index = SDValue(CurDAG->getMachineNode( in selectLEA64_32Addr()
1610 CurDAG->getTargetConstant(0, DL, MVT::i64), in selectLEA64_32Addr()
1612 CurDAG->getTargetConstant(X86::sub_32bit, DL, in selectLEA64_32Addr()
1635 SDValue T = CurDAG->getRegister(0, MVT::i32); in selectLEAAddr()
1647 AM.Base_Reg = CurDAG->getRegister(0, VT); in selectLEAAddr()
1654 AM.IndexReg = CurDAG->getRegister(0, VT); in selectLEAAddr()
1695 AM.Base_Reg = CurDAG->getRegister(0, N.getValueType()); in selectTLSADDRAddr()
1700 AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32); in selectTLSADDRAddr()
1702 AM.IndexReg = CurDAG->getRegister(0, MVT::i64); in selectTLSADDRAddr()
1729 return CurDAG->getRegister(GlobalBaseReg, TLI->getPointerTy(DL)).getNode(); in getGlobalBaseReg()
1797 SDValue StoredVal, SelectionDAG *CurDAG, in isLoadIncOrDecStore() argument
1870 InputChain = CurDAG->getNode(ISD::TokenFactor, SDLoc(Chain), in isLoadIncOrDecStore()
1909 SDVTList VTs = CurDAG->getVTList(VSrc.getValueType(), VSrc.getValueType(), in tryGather()
1915 SDValue Disp = CurDAG->getTargetConstant(0, DL, MVT::i32); in tryGather()
1916 SDValue Segment = CurDAG->getRegister(0, MVT::i32); in tryGather()
1919 SDNode *ResNode = CurDAG->getMachineNode(Opc, DL, VTs, Ops); in tryGather()
1926 CurDAG->RemoveDeadNode(Node); in tryGather()
1936 DEBUG(dbgs() << "Selecting: "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
1939 DEBUG(dbgs() << "== "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
1957 SDValue ZextTarget = CurDAG->getZExtOrTrunc(Target, dl, EVT(MVT::i64)); in Select()
1958 SDValue Brind = CurDAG->getNode(ISD::BRIND, dl, MVT::Other, in Select()
2022 SDValue VSelect = CurDAG->getNode( in Select()
2105 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, dl, CstVT); in Select()
2106 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()
2108 CurDAG->SelectNodeTo(Node, AddOp, NVT, SDValue(New, 0), in Select()
2111 CurDAG->SelectNodeTo(Node, ShlOp, NVT, SDValue(New, 0), in Select()
2122 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, X86::AL, in Select()
2125 SDVTList VTs = CurDAG->getVTList(NVT, MVT::i32); in Select()
2127 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2146 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, LoReg, in Select()
2149 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::i32); in Select()
2151 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2220 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, SrcReg, in Select()
2230 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Other, MVT::Glue); in Select()
2231 CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops); in Select()
2237 SDVTList VTs = CurDAG->getVTList(MVT::Other, MVT::Glue); in Select()
2238 CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops); in Select()
2255 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Glue); in Select()
2256 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2261 SDVTList VTs = CurDAG->getVTList(MVT::Glue); in Select()
2262 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2270 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2277 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2280 Result = SDValue(CurDAG->getMachineNode(X86::SHR16ri, dl, MVT::i16, in Select()
2282 CurDAG->getTargetConstant(8, dl, MVT::i8)), in Select()
2286 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2292 ResLo = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, LoReg, NVT, in Select()
2297 DEBUG(dbgs() << "=> "; ResLo.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2303 ResHi = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, HiReg, NVT, in Select()
2308 DEBUG(dbgs() << "=> "; ResHi.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2366 bool signBitIsZero = CurDAG->SignBitIsZero(N0); in Select()
2376 SDValue(CurDAG->getMachineNode(X86::MOVZX32rm8, dl, MVT::i32, in Select()
2382 SDValue(CurDAG->getMachineNode(X86::MOVZX32rr8, dl, MVT::i32, N0),0); in Select()
2383 Chain = CurDAG->getEntryNode(); in Select()
2385 Chain = CurDAG->getCopyToReg(Chain, dl, X86::EAX, Move, SDValue()); in Select()
2389 CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, in Select()
2394 SDValue(CurDAG->getMachineNode(SExtOpcode, dl, MVT::Glue, InFlag),0); in Select()
2397 SDValue ClrNode = SDValue(CurDAG->getMachineNode(X86::MOV32r0, dl, NVT), 0); in Select()
2401 SDValue(CurDAG->getMachineNode( in Select()
2403 CurDAG->getTargetConstant(X86::sub_16bit, dl, in Select()
2411 SDValue(CurDAG->getMachineNode( in Select()
2413 CurDAG->getTargetConstant(0, dl, MVT::i64), ClrNode, in Select()
2414 CurDAG->getTargetConstant(X86::sub_32bit, dl, in Select()
2422 InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, ClrReg, in Select()
2431 CurDAG->getMachineNode(MOpc, dl, MVT::Other, MVT::Glue, Ops); in Select()
2437 SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Glue, N1, InFlag), 0); in Select()
2448 SDValue AHCopy = CurDAG->getRegister(X86::AH, MVT::i8); in Select()
2452 SDNode *RNode = CurDAG->getMachineNode(AHExtOpcode, dl, MVT::i32, in Select()
2465 SDValue(CurDAG->getMachineNode( in Select()
2467 CurDAG->getTargetConstant(0, dl, MVT::i64), Result, in Select()
2468 CurDAG->getTargetConstant(X86::sub_32bit, dl, in Select()
2474 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result); in Select()
2477 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2481 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2485 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2489 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2493 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2526 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), dl, MVT::i8); in Select()
2537 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), dl, MVT::i32); in Select()
2538 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2543 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, in Select()
2547 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri, dl, MVT::i32, in Select()
2561 SDValue ShiftedImm = CurDAG->getTargetConstant(C->getZExtValue() >> 8, in Select()
2573 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), dl, MVT::i32); in Select()
2574 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2578 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit_hi, dl, in Select()
2584 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri_NOREX, dl, in Select()
2598 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), dl, in Select()
2603 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_16bit, dl, in Select()
2607 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST16ri, dl, MVT::i32, in Select()
2621 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), dl, in Select()
2626 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_32bit, dl, in Select()
2630 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST32ri, dl, MVT::i32, in Select()
2665 if (!isLoadIncOrDecStore(StoreNode, Opc, StoredVal, CurDAG, in Select()
2680 MachineSDNode *Result = CurDAG->getMachineNode(newOpc, in Select()
2687 CurDAG->RemoveDeadNode(Node); in Select()