Lines Matching refs:CurDAG
240 ? CurDAG->getTargetFrameIndex(AM.Base_FrameIndex, in getAddressOperands()
248 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), in getAddressOperands()
252 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i32, in getAddressOperands()
256 Disp = CurDAG->getTargetExternalSymbol(AM.ES, MVT::i32, AM.SymbolFlags); in getAddressOperands()
259 Disp = CurDAG->getTargetJumpTable(AM.JT, MVT::i32, AM.SymbolFlags); in getAddressOperands()
261 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
264 Disp = CurDAG->getTargetConstant(AM.Disp, MVT::i32); in getAddressOperands()
269 Segment = CurDAG->getRegister(0, MVT::i32); in getAddressOperands()
275 return CurDAG->getTargetConstant(Imm, MVT::i8); in getI8Imm()
281 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
377 static void MoveBelowOrigChain(SelectionDAG *CurDAG, SDValue Load, in MoveBelowOrigChain() argument
392 CurDAG->getNode(ISD::TokenFactor, SDLoc(Load), MVT::Other, Ops); in MoveBelowOrigChain()
397 CurDAG->UpdateNodeOperands(OrigChain.getNode(), Ops); in MoveBelowOrigChain()
398 CurDAG->UpdateNodeOperands(Load.getNode(), Call.getOperand(0), in MoveBelowOrigChain()
404 CurDAG->UpdateNodeOperands(Call.getNode(), Ops); in MoveBelowOrigChain()
453 for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(), in PreprocessISelDAG()
454 E = CurDAG->allnodes_end(); I != E; ) { in PreprocessISelDAG()
489 MoveBelowOrigChain(CurDAG, Load, SDValue(N, 0), Chain); in PreprocessISelDAG()
539 SDValue MemTmp = CurDAG->CreateStackTemporary(MemVT); in PreprocessISelDAG()
543 SDValue Store = CurDAG->getTruncStore(CurDAG->getEntryNode(), dl, in PreprocessISelDAG()
547 SDValue Result = CurDAG->getExtLoad(ISD::EXTLOAD, dl, DstVT, Store, MemTmp, in PreprocessISelDAG()
556 CurDAG->ReplaceAllUsesOfValueWith(SDValue(N, 0), Result); in PreprocessISelDAG()
561 CurDAG->DeleteNode(N); in PreprocessISelDAG()
572 TargetLowering::CallLoweringInfo CLI(*CurDAG); in EmitSpecialCodeForMain()
573 CLI.setChain(CurDAG->getRoot()) in EmitSpecialCodeForMain()
574 .setCallee(CallingConv::C, Type::getVoidTy(*CurDAG->getContext()), in EmitSpecialCodeForMain()
575 CurDAG->getExternalSymbol("__main", TLI->getPointerTy()), in EmitSpecialCodeForMain()
577 const TargetLowering &TLI = CurDAG->getTargetLoweringInfo(); in EmitSpecialCodeForMain()
579 CurDAG->setRoot(Result.second); in EmitSpecialCodeForMain()
633 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in MatchLoadInAddress()
636 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in MatchLoadInAddress()
701 AM.setBaseReg(CurDAG->getRegister(X86::RIP, MVT::i64)); in MatchWrapper()
766 AM.Base_Reg = CurDAG->getRegister(X86::RIP, MVT::i64); in MatchAddress()
1062 if (CurDAG->isBaseWithConstantOffset(ShVal)) { in MatchAddressRecursively()
1099 if (!FoldMaskAndShiftToScale(*CurDAG, N, Mask, N, X, AM)) in MatchAddressRecursively()
1201 SDValue Zero = CurDAG->getConstant(0, N.getValueType()); in MatchAddressRecursively()
1202 SDValue Neg = CurDAG->getNode(ISD::SUB, dl, N.getValueType(), Zero, RHS); in MatchAddressRecursively()
1207 InsertDAGNode(*CurDAG, N, Zero); in MatchAddressRecursively()
1208 InsertDAGNode(*CurDAG, N, Neg); in MatchAddressRecursively()
1247 if (CurDAG->isBaseWithConstantOffset(N)) { in MatchAddressRecursively()
1279 if (!FoldMaskAndShiftToExtract(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1283 if (!FoldMaskAndShiftToScale(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1288 if (!FoldMaskedShiftToScaledMask(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1343 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in SelectAddr()
1345 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in SelectAddr()
1354 AM.Base_Reg = CurDAG->getRegister(0, VT); in SelectAddr()
1358 AM.IndexReg = CurDAG->getRegister(0, VT); in SelectAddr()
1416 Imm = CurDAG->getTargetConstant(ImmVal, MVT::i64); in SelectMOV64Imm32()
1447 Base = CurDAG->getRegister(0, MVT::i64); in SelectLEA64_32Addr()
1450 Base = SDValue(CurDAG->getMachineNode( in SelectLEA64_32Addr()
1452 CurDAG->getTargetConstant(0, MVT::i64), in SelectLEA64_32Addr()
1454 CurDAG->getTargetConstant(X86::sub_32bit, MVT::i32)), in SelectLEA64_32Addr()
1460 Index = CurDAG->getRegister(0, MVT::i64); in SelectLEA64_32Addr()
1464 Index = SDValue(CurDAG->getMachineNode( in SelectLEA64_32Addr()
1466 CurDAG->getTargetConstant(0, MVT::i64), in SelectLEA64_32Addr()
1468 CurDAG->getTargetConstant(X86::sub_32bit, MVT::i32)), in SelectLEA64_32Addr()
1486 SDValue T = CurDAG->getRegister(0, MVT::i32); in SelectLEAAddr()
1499 AM.Base_Reg = CurDAG->getRegister(0, VT); in SelectLEAAddr()
1506 AM.IndexReg = CurDAG->getRegister(0, VT); in SelectLEAAddr()
1548 AM.Base_Reg = CurDAG->getRegister(0, N.getValueType()); in SelectTLSADDRAddr()
1553 AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32); in SelectTLSADDRAddr()
1555 AM.IndexReg = CurDAG->getRegister(0, MVT::i64); in SelectTLSADDRAddr()
1582 return CurDAG->getRegister(GlobalBaseReg, TLI->getPointerTy()).getNode(); in getGlobalBaseReg()
1713 static SDValue getAtomicLoadArithTargetConstant(SelectionDAG *CurDAG, in getAtomicLoadArithTargetConstant() argument
1728 return CurDAG->getTargetConstant(CNVal, NVT); in getAtomicLoadArithTargetConstant()
1743 return CurDAG->getTargetConstant(CNVal, NVT); in getAtomicLoadArithTargetConstant()
1761 return CurDAG->getTargetExtractSubreg(X86::sub_16bit, dl, NVT, in getAtomicLoadArithTargetConstant()
1804 Val = getAtomicLoadArithTargetConstant(CurDAG, dl, Op, NVT, Val, Subtarget); in SelectAtomicLoadArith()
1854 Ret = SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Other, Ops), 0); in SelectAtomicLoadArith()
1857 Ret = SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Other, Ops), 0); in SelectAtomicLoadArith()
1868 SDValue Undef = SDValue(CurDAG->getMachineNode(TargetOpcode::IMPLICIT_DEF, in SelectAtomicLoadArith()
1871 return CurDAG->getMergeValues(RetVals, dl).getNode(); in SelectAtomicLoadArith()
1940 SDValue StoredVal, SelectionDAG *CurDAG, in isLoadIncOrDecStore() argument
2013 InputChain = CurDAG->getNode(ISD::TokenFactor, SDLoc(Chain), in isLoadIncOrDecStore()
2053 SDVTList VTs = CurDAG->getVTList(VSrc.getValueType(), VSrc.getValueType(), in SelectGather()
2057 SDValue Disp = CurDAG->getTargetConstant(0, MVT::i32); in SelectGather()
2058 SDValue Segment = CurDAG->getRegister(0, MVT::i32); in SelectGather()
2061 SDNode *ResNode = CurDAG->getMachineNode(Opc, SDLoc(Node), VTs, Ops); in SelectGather()
2077 DEBUG(dbgs() << "Selecting: "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
2080 DEBUG(dbgs() << "== "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
2143 SDValue VSelect = CurDAG->getNode( in Select()
2235 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, CstVT); in Select()
2236 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()
2238 return CurDAG->SelectNodeTo(Node, AddOp, NVT, SDValue(New, 0), in Select()
2240 return CurDAG->SelectNodeTo(Node, ShlOp, NVT, SDValue(New, 0), in Select()
2250 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, X86::AL, in Select()
2253 SDVTList VTs = CurDAG->getVTList(NVT, MVT::i32); in Select()
2255 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2275 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, LoReg, in Select()
2278 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::i32); in Select()
2280 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2351 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, SrcReg, in Select()
2360 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Other, MVT::Glue); in Select()
2361 SDNode *CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops); in Select()
2367 SDVTList VTs = CurDAG->getVTList(MVT::Other, MVT::Glue); in Select()
2368 SDNode *CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops); in Select()
2378 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Glue); in Select()
2379 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2384 SDVTList VTs = CurDAG->getVTList(MVT::Glue); in Select()
2385 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops); in Select()
2393 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2400 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2403 Result = SDValue(CurDAG->getMachineNode(X86::SHR16ri, dl, MVT::i16, in Select()
2405 CurDAG->getTargetConstant(8, MVT::i8)), 0); in Select()
2408 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2414 ResLo = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, LoReg, NVT, in Select()
2419 DEBUG(dbgs() << "=> "; ResLo.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2425 ResHi = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, HiReg, NVT, in Select()
2430 DEBUG(dbgs() << "=> "; ResHi.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2488 bool signBitIsZero = CurDAG->SignBitIsZero(N0); in Select()
2498 SDValue(CurDAG->getMachineNode(X86::MOVZX32rm8, dl, MVT::i32, in Select()
2504 SDValue(CurDAG->getMachineNode(X86::MOVZX32rr8, dl, MVT::i32, N0),0); in Select()
2505 Chain = CurDAG->getEntryNode(); in Select()
2507 Chain = CurDAG->getCopyToReg(Chain, dl, X86::EAX, Move, SDValue()); in Select()
2511 CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, in Select()
2516 SDValue(CurDAG->getMachineNode(SExtOpcode, dl, MVT::Glue, InFlag),0); in Select()
2519 SDValue ClrNode = SDValue(CurDAG->getMachineNode(X86::MOV32r0, dl, NVT), 0); in Select()
2523 SDValue(CurDAG->getMachineNode( in Select()
2525 CurDAG->getTargetConstant(X86::sub_16bit, MVT::i32)), in Select()
2532 SDValue(CurDAG->getMachineNode( in Select()
2534 CurDAG->getTargetConstant(0, MVT::i64), ClrNode, in Select()
2535 CurDAG->getTargetConstant(X86::sub_32bit, MVT::i32)), in Select()
2542 InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, ClrReg, in Select()
2551 CurDAG->getMachineNode(MOpc, dl, MVT::Other, MVT::Glue, Ops); in Select()
2557 SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Glue, N1, InFlag), 0); in Select()
2568 SDValue AHCopy = CurDAG->getRegister(X86::AH, MVT::i8); in Select()
2572 SDNode *RNode = CurDAG->getMachineNode(AHExtOpcode, dl, MVT::i32, in Select()
2585 SDValue(CurDAG->getMachineNode( in Select()
2587 CurDAG->getTargetConstant(0, MVT::i64), Result, in Select()
2588 CurDAG->getTargetConstant(X86::sub_32bit, MVT::i32)), in Select()
2593 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result); in Select()
2596 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2600 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2604 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2608 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2612 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2645 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i8); in Select()
2656 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), MVT::i32); in Select()
2657 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2662 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, in Select()
2666 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri, dl, MVT::i32, in Select()
2680 SDValue ShiftedImm = CurDAG->getTargetConstant(C->getZExtValue() >> 8, in Select()
2692 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), MVT::i32); in Select()
2693 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2697 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit_hi, dl, in Select()
2703 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri_NOREX, dl, in Select()
2717 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i16); in Select()
2721 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_16bit, dl, in Select()
2725 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST16ri, dl, MVT::i32, in Select()
2739 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i32); in Select()
2743 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_32bit, dl, in Select()
2747 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST32ri, dl, MVT::i32, in Select()
2782 if (!isLoadIncOrDecStore(StoreNode, Opc, StoredVal, CurDAG, in Select()
2797 MachineSDNode *Result = CurDAG->getMachineNode(newOpc, in Select()
2813 Node->dump(CurDAG); in Select()
2815 ResNode->dump(CurDAG); in Select()