Lines Matching refs:CurDAG
232 CurDAG->getTargetFrameIndex(AM.Base_FrameIndex, TLI.getPointerTy()) : in getAddressOperands()
239 Disp = CurDAG->getTargetGlobalAddress(AM.GV, DebugLoc(), in getAddressOperands()
243 Disp = CurDAG->getTargetConstantPool(AM.CP, MVT::i32, in getAddressOperands()
247 Disp = CurDAG->getTargetExternalSymbol(AM.ES, MVT::i32, AM.SymbolFlags); in getAddressOperands()
250 Disp = CurDAG->getTargetJumpTable(AM.JT, MVT::i32, AM.SymbolFlags); in getAddressOperands()
252 Disp = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp, in getAddressOperands()
255 Disp = CurDAG->getTargetConstant(AM.Disp, MVT::i32); in getAddressOperands()
260 Segment = CurDAG->getRegister(0, MVT::i32); in getAddressOperands()
266 return CurDAG->getTargetConstant(Imm, MVT::i8); in getI8Imm()
272 return CurDAG->getTargetConstant(Imm, MVT::i32); in getI32Imm()
361 static void MoveBelowOrigChain(SelectionDAG *CurDAG, SDValue Load, in MoveBelowOrigChain() argument
376 CurDAG->getNode(ISD::TokenFactor, Load.getDebugLoc(), in MoveBelowOrigChain()
383 CurDAG->UpdateNodeOperands(OrigChain.getNode(), &Ops[0], Ops.size()); in MoveBelowOrigChain()
384 CurDAG->UpdateNodeOperands(Load.getNode(), Call.getOperand(0), in MoveBelowOrigChain()
392 CurDAG->UpdateNodeOperands(Call.getNode(), &Ops[0], NumOps); in MoveBelowOrigChain()
442 for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(), in PreprocessISelDAG()
443 E = CurDAG->allnodes_end(); I != E; ) { in PreprocessISelDAG()
476 MoveBelowOrigChain(CurDAG, Load, SDValue(N, 0), Chain); in PreprocessISelDAG()
524 SDValue MemTmp = CurDAG->CreateStackTemporary(MemVT); in PreprocessISelDAG()
528 SDValue Store = CurDAG->getTruncStore(CurDAG->getEntryNode(), dl, in PreprocessISelDAG()
532 SDValue Result = CurDAG->getExtLoad(ISD::EXTLOAD, dl, DstVT, Store, MemTmp, in PreprocessISelDAG()
541 CurDAG->ReplaceAllUsesOfValueWith(SDValue(N, 0), Result); in PreprocessISelDAG()
546 CurDAG->DeleteNode(N); in PreprocessISelDAG()
614 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in MatchLoadInAddress()
617 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in MatchLoadInAddress()
682 AM.setBaseReg(CurDAG->getRegister(X86::RIP, MVT::i64)); in MatchWrapper()
747 AM.Base_Reg = CurDAG->getRegister(X86::RIP, MVT::i64); in MatchAddress()
1033 if (CurDAG->isBaseWithConstantOffset(ShVal)) { in MatchAddressRecursively()
1070 if (!FoldMaskAndShiftToScale(*CurDAG, N, Mask, N, X, AM)) in MatchAddressRecursively()
1172 SDValue Zero = CurDAG->getConstant(0, N.getValueType()); in MatchAddressRecursively()
1173 SDValue Neg = CurDAG->getNode(ISD::SUB, dl, N.getValueType(), Zero, RHS); in MatchAddressRecursively()
1178 InsertDAGNode(*CurDAG, N, Zero); in MatchAddressRecursively()
1179 InsertDAGNode(*CurDAG, N, Neg); in MatchAddressRecursively()
1218 if (CurDAG->isBaseWithConstantOffset(N)) { in MatchAddressRecursively()
1250 if (!FoldMaskAndShiftToExtract(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1254 if (!FoldMaskAndShiftToScale(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1259 if (!FoldMaskedShiftToScaledMask(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1314 AM.Segment = CurDAG->getRegister(X86::GS, MVT::i16); in SelectAddr()
1316 AM.Segment = CurDAG->getRegister(X86::FS, MVT::i16); in SelectAddr()
1325 AM.Base_Reg = CurDAG->getRegister(0, VT); in SelectAddr()
1329 AM.IndexReg = CurDAG->getRegister(0, VT); in SelectAddr()
1392 SDValue T = CurDAG->getRegister(0, MVT::i32); in SelectLEAAddr()
1405 AM.Base_Reg = CurDAG->getRegister(0, VT); in SelectLEAAddr()
1412 AM.IndexReg = CurDAG->getRegister(0, VT); in SelectLEAAddr()
1454 AM.Base_Reg = CurDAG->getRegister(0, N.getValueType()); in SelectTLSADDRAddr()
1459 AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32); in SelectTLSADDRAddr()
1461 AM.IndexReg = CurDAG->getRegister(0, MVT::i64); in SelectTLSADDRAddr()
1488 return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode(); in getGlobalBaseReg()
1503 SDNode *ResNode = CurDAG->getMachineNode(Opc, Node->getDebugLoc(), in SelectAtomic64()
1638 static SDValue getAtomicLoadArithTargetConstant(SelectionDAG *CurDAG, in getAtomicLoadArithTargetConstant() argument
1661 return CurDAG->getTargetConstant(CNVal, NVT); in getAtomicLoadArithTargetConstant()
1679 return CurDAG->getTargetExtractSubreg(X86::sub_16bit, dl, NVT, in getAtomicLoadArithTargetConstant()
1722 Val = getAtomicLoadArithTargetConstant(CurDAG, dl, Op, NVT, Val); in SelectAtomicLoadArith()
1767 SDValue Undef = SDValue(CurDAG->getMachineNode(TargetOpcode::IMPLICIT_DEF, in SelectAtomicLoadArith()
1773 Ret = SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Other, Ops, in SelectAtomicLoadArith()
1777 Ret = SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Other, Ops, in SelectAtomicLoadArith()
1782 return CurDAG->getMergeValues(RetVals, 2, dl).getNode(); in SelectAtomicLoadArith()
1851 SDValue StoredVal, SelectionDAG *CurDAG, in isLoadIncOrDecStore() argument
1924 InputChain = CurDAG->getNode(ISD::TokenFactor, Chain.getDebugLoc(), in isLoadIncOrDecStore()
1964 SDVTList VTs = CurDAG->getVTList(VSrc.getValueType(), VSrc.getValueType(), in SelectGather()
1968 SDValue Disp = CurDAG->getTargetConstant(0, MVT::i32); in SelectGather()
1969 SDValue Segment = CurDAG->getRegister(0, MVT::i32); in SelectGather()
1972 SDNode *ResNode = CurDAG->getMachineNode(Opc, Node->getDebugLoc(), in SelectGather()
1989 DEBUG(dbgs() << "Selecting: "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
1992 DEBUG(dbgs() << "== "; Node->dump(CurDAG); dbgs() << '\n'); in Select()
2164 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, CstVT); in Select()
2165 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()
2166 return CurDAG->SelectNodeTo(Node, ShlOp, NVT, SDValue(New, 0), in Select()
2182 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, LoReg, in Select()
2185 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::i32); in Select()
2187 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops, 2); in Select()
2258 SDValue InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, SrcReg, in Select()
2267 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Other, MVT::Glue); in Select()
2268 SDNode *CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops, in Select()
2275 SDVTList VTs = CurDAG->getVTList(MVT::Other, MVT::Glue); in Select()
2276 SDNode *CNode = CurDAG->getMachineNode(MOpc, dl, VTs, Ops, in Select()
2287 SDVTList VTs = CurDAG->getVTList(NVT, NVT, MVT::Glue); in Select()
2288 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops, in Select()
2294 SDVTList VTs = CurDAG->getVTList(MVT::Glue); in Select()
2295 SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops, in Select()
2304 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2311 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2314 Result = SDValue(CurDAG->getMachineNode(X86::SHR16ri, dl, MVT::i16, in Select()
2316 CurDAG->getTargetConstant(8, MVT::i8)), 0); in Select()
2319 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2325 ResLo = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, LoReg, NVT, in Select()
2330 DEBUG(dbgs() << "=> "; ResLo.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2336 ResHi = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, HiReg, NVT, in Select()
2341 DEBUG(dbgs() << "=> "; ResHi.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2399 bool signBitIsZero = CurDAG->SignBitIsZero(N0); in Select()
2409 SDValue(CurDAG->getMachineNode(X86::MOVZX32rm8, dl, MVT::i32, in Select()
2416 SDValue(CurDAG->getMachineNode(X86::MOVZX32rr8, dl, MVT::i32, N0),0); in Select()
2417 Chain = CurDAG->getEntryNode(); in Select()
2419 Chain = CurDAG->getCopyToReg(Chain, dl, X86::EAX, Move, SDValue()); in Select()
2423 CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, in Select()
2428 SDValue(CurDAG->getMachineNode(SExtOpcode, dl, MVT::Glue, InFlag),0); in Select()
2432 SDValue(CurDAG->getMachineNode(ClrOpcode, dl, NVT), 0); in Select()
2433 InFlag = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, ClrReg, in Select()
2442 CurDAG->getMachineNode(MOpc, dl, MVT::Other, MVT::Glue, Ops, in Select()
2449 SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Glue, N1, InFlag), 0); in Select()
2456 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2465 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2468 Result = SDValue(CurDAG->getMachineNode(X86::SHR16ri, dl, MVT::i16, in Select()
2470 CurDAG->getTargetConstant(8, MVT::i8)), in Select()
2473 CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result)); in Select()
2477 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2481 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2485 SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, in Select()
2489 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2521 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i8); in Select()
2532 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), MVT::i32); in Select()
2533 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2538 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, in Select()
2542 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri, dl, MVT::i32, in Select()
2556 SDValue ShiftedImm = CurDAG->getTargetConstant(C->getZExtValue() >> 8, in Select()
2568 SDValue RC = CurDAG->getTargetConstant(TRC->getID(), MVT::i32); in Select()
2569 Reg = SDValue(CurDAG->getMachineNode(X86::COPY_TO_REGCLASS, dl, in Select()
2573 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_8bit_hi, dl, in Select()
2579 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST8ri_NOREX, dl, in Select()
2593 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i16); in Select()
2597 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_16bit, dl, in Select()
2601 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST16ri, dl, MVT::i32, in Select()
2615 SDValue Imm = CurDAG->getTargetConstant(C->getZExtValue(), MVT::i32); in Select()
2619 SDValue Subreg = CurDAG->getTargetExtractSubreg(X86::sub_32bit, dl, in Select()
2623 SDNode *NewNode = CurDAG->getMachineNode(X86::TEST32ri, dl, MVT::i32, in Select()
2658 if (!isLoadIncOrDecStore(StoreNode, Opc, StoredVal, CurDAG, in Select()
2673 MachineSDNode *Result = CurDAG->getMachineNode(newOpc, in Select()
2690 Node->dump(CurDAG); in Select()
2692 ResNode->dump(CurDAG); in Select()