Lines Matching refs:getNode
86 IndexReg.getNode() != nullptr || Base_Reg.getNode() != nullptr; in hasBaseOrIndexReg()
93 dyn_cast_or_null<RegisterSDNode>(Base_Reg.getNode())) in isRIPRelative()
107 if (Base_Reg.getNode()) in dump()
108 Base_Reg.getNode()->dump(); in dump()
114 if (IndexReg.getNode()) in dump()
115 IndexReg.getNode()->dump(); in dump()
280 if (AM.Segment.getNode()) in getAddressOperands()
316 User->getOperand(1).getNode() == N) { in shouldAvoidImmediateInstFormsForSize()
341 if (OtherOp.getNode() == N) in shouldAvoidImmediateInstFormsForSize()
348 OtherOp->getOperand(1).getNode()))) in shouldAvoidImmediateInstFormsForSize()
468 if (Chain.getNode() == Load.getNode()) in moveBelowOrigChain()
474 if (Chain.getOperand(i).getNode() == Load.getNode()) in moveBelowOrigChain()
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()
489 Ops.push_back(SDValue(Load.getNode(), 1)); in moveBelowOrigChain()
491 CurDAG->UpdateNodeOperands(Call.getNode(), Ops); in moveBelowOrigChain()
504 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse()) in isCalleeLoad()
506 LoadSDNode *LD = dyn_cast<LoadSDNode>(Callee.getNode()); in isCalleeLoad()
524 if (isa<MemSDNode>(Chain.getNode()) && in isCalleeLoad()
525 cast<MemSDNode>(Chain.getNode())->writeMem()) in isCalleeLoad()
527 if (Chain.getOperand(0).getNode() == Callee.getNode()) in isCalleeLoad()
530 Callee.getValue(1).isOperandOf(Chain.getOperand(0).getNode()) && in isCalleeLoad()
721 if (C->getSExtValue() == 0 && AM.Segment.getNode() == nullptr && in matchLoadInAddress()
846 AM.Base_Reg.getNode() == nullptr) { in matchAddress()
858 AM.Base_Reg.getNode() == nullptr && in matchAddress()
859 AM.IndexReg.getNode() == nullptr && in matchAddress()
889 !AM.Base_Reg.getNode() && in matchAdd()
890 !AM.IndexReg.getNode()) { in matchAdd()
907 if (N.getNode()->getNodeId() == -1 || in insertDAGNode()
908 N.getNode()->getNodeId() > Pos.getNode()->getNodeId()) { in insertDAGNode()
909 DAG.RepositionNode(Pos.getNode()->getIterator(), N.getNode()); in insertDAGNode()
910 N.getNode()->setNodeId(Pos.getNode()->getNodeId()); in insertDAGNode()
936 SDValue Srl = DAG.getNode(ISD::SRL, DL, VT, X, Eight); in foldMaskAndShiftToExtract()
937 SDValue And = DAG.getNode(ISD::AND, DL, VT, Srl, NewMask); in foldMaskAndShiftToExtract()
939 SDValue Shl = DAG.getNode(ISD::SHL, DL, VT, And, ShlCount); in foldMaskAndShiftToExtract()
983 SDValue NewAnd = DAG.getNode(ISD::AND, DL, VT, X, NewMask); in foldMaskedShiftToScaledMask()
984 SDValue NewShift = DAG.getNode(ISD::SHL, DL, VT, NewAnd, Shift.getOperand(1)); in foldMaskedShiftToScaledMask()
1083 SDValue NewX = DAG.getNode(ISD::ZERO_EXTEND, SDLoc(X), VT, X); in foldMaskAndShiftToScale()
1089 SDValue NewSRL = DAG.getNode(ISD::SRL, DL, VT, X, NewSRLAmt); in foldMaskAndShiftToScale()
1091 SDValue NewSHL = DAG.getNode(ISD::SHL, DL, VT, NewSRL, NewSHLAmt); in foldMaskAndShiftToScale()
1167 AM.Base_Reg.getNode() == nullptr && in matchAddressRecursively()
1176 if (AM.IndexReg.getNode() != nullptr || AM.Scale != 1) in matchAddressRecursively()
1180 *CN = dyn_cast<ConstantSDNode>(N.getNode()->getOperand(1))) { in matchAddressRecursively()
1188 SDValue ShVal = N.getNode()->getOperand(0); in matchAddressRecursively()
1194 AM.IndexReg = ShVal.getNode()->getOperand(0); in matchAddressRecursively()
1196 cast<ConstantSDNode>(ShVal.getNode()->getOperand(1)); in matchAddressRecursively()
1210 if (AM.IndexReg.getNode() != nullptr || AM.Scale != 1) break; in matchAddressRecursively()
1244 AM.Base_Reg.getNode() == nullptr && in matchAddressRecursively()
1245 AM.IndexReg.getNode() == nullptr) { in matchAddressRecursively()
1247 *CN = dyn_cast<ConstantSDNode>(N.getNode()->getOperand(1))) in matchAddressRecursively()
1252 SDValue MulVal = N.getNode()->getOperand(0); in matchAddressRecursively()
1258 if (MulVal.getNode()->getOpcode() == ISD::ADD && MulVal.hasOneUse() && in matchAddressRecursively()
1259 isa<ConstantSDNode>(MulVal.getNode()->getOperand(1))) { in matchAddressRecursively()
1260 Reg = MulVal.getNode()->getOperand(0); in matchAddressRecursively()
1262 cast<ConstantSDNode>(MulVal.getNode()->getOperand(1)); in matchAddressRecursively()
1265 Reg = N.getNode()->getOperand(0); in matchAddressRecursively()
1267 Reg = N.getNode()->getOperand(0); in matchAddressRecursively()
1290 if (matchAddressRecursively(N.getNode()->getOperand(0), AM, Depth+1)) { in matchAddressRecursively()
1295 if (AM.IndexReg.getNode() || AM.isRIPRelative()) { in matchAddressRecursively()
1301 SDValue RHS = Handle.getValue().getNode()->getOperand(1); in matchAddressRecursively()
1305 if (!RHS.getNode()->hasOneUse() || in matchAddressRecursively()
1306 RHS.getNode()->getOpcode() == ISD::CopyFromReg || in matchAddressRecursively()
1307 RHS.getNode()->getOpcode() == ISD::TRUNCATE || in matchAddressRecursively()
1308 RHS.getNode()->getOpcode() == ISD::ANY_EXTEND || in matchAddressRecursively()
1309 (RHS.getNode()->getOpcode() == ISD::ZERO_EXTEND && in matchAddressRecursively()
1310 RHS.getNode()->getOperand(0).getValueType() == MVT::i32)) in matchAddressRecursively()
1315 AM.Base_Reg.getNode() && in matchAddressRecursively()
1316 !AM.Base_Reg.getNode()->hasOneUse()) || in matchAddressRecursively()
1323 (AM.Segment.getNode() && !Backup.Segment.getNode()) >= 2) in matchAddressRecursively()
1333 SDValue Neg = CurDAG->getNode(ISD::SUB, dl, N.getValueType(), Zero, RHS); in matchAddressRecursively()
1365 if (AM.IndexReg.getNode() != nullptr || AM.Scale != 1) break; in matchAddressRecursively()
1402 if (AM.BaseType != X86ISelAddressMode::RegBase || AM.Base_Reg.getNode()) { in matchAddressBase()
1404 if (!AM.IndexReg.getNode()) { in matchAddressBase()
1450 if (AM.Segment.getNode()) in selectVectorAddr()
1494 if (!AM.Base_Reg.getNode()) in selectAddr()
1498 if (!AM.IndexReg.getNode()) in selectAddr()
1519 if (ISD::isNON_EXTLoad(PatternNodeWithChain.getNode()) && in selectScalarSSELoad()
1521 IsProfitableToFold(N.getOperand(0), N.getNode(), Root) && in selectScalarSSELoad()
1522 IsLegalToFold(N.getOperand(0), N.getNode(), Root, OptLevel)) { in selectScalarSSELoad()
1532 if (N.getOpcode() == X86ISD::VZEXT_MOVL && N.getNode()->hasOneUse() && in selectScalarSSELoad()
1535 N.getOperand(0).getNode()->hasOneUse() && in selectScalarSSELoad()
1536 ISD::isNON_EXTLoad(N.getOperand(0).getOperand(0).getNode()) && in selectScalarSSELoad()
1538 IsProfitableToFold(N.getOperand(0), N.getNode(), Root) && in selectScalarSSELoad()
1539 IsLegalToFold(N.getOperand(0), N.getNode(), Root, OptLevel)) { in selectScalarSSELoad()
1644 if (AM.Base_Reg.getNode()) in selectLEAAddr()
1651 if (AM.IndexReg.getNode()) in selectLEAAddr()
1674 if (AM.Disp && (AM.Base_Reg.getNode() || AM.IndexReg.getNode())) in selectLEAAddr()
1714 if (!ISD::isNON_EXTLoad(N.getNode()) || in tryFoldLoad()
1719 return selectAddr(N.getNode(), in tryFoldLoad()
1729 return CurDAG->getRegister(GlobalBaseReg, TLI->getPointerTy(DL)).getNode(); in getGlobalBaseReg()
1807 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isLoadIncOrDecStore()
1815 if (!ISD::isNormalLoad(Load.getNode())) return false; in isLoadIncOrDecStore()
1856 for (SDNode::use_iterator UI = Op.getNode()->use_begin(), in isLoadIncOrDecStore()
1870 InputChain = CurDAG->getNode(ISD::TokenFactor, SDLoc(Chain), in isLoadIncOrDecStore()
1958 SDValue Brind = CurDAG->getNode(ISD::BRIND, dl, MVT::Other, in Select()
1960 ReplaceNode(Node, Brind.getNode()); in Select()
1961 SelectCode(ZextTarget.getNode()); in Select()
1962 SelectCode(Brind.getNode()); in Select()
2022 SDValue VSelect = CurDAG->getNode( in Select()
2026 SelectCode(VSelect.getNode()); in Select()
2290 if (!ResLo.getNode()) { in Select()
2297 DEBUG(dbgs() << "=> "; ResLo.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2301 if (!ResHi.getNode()) { in Select()
2308 DEBUG(dbgs() << "=> "; ResHi.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2477 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2485 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2493 DEBUG(dbgs() << "=> "; Result.getNode()->dump(CurDAG); dbgs() << '\n'); in Select()
2514 if ((N0.getNode()->getOpcode() == ISD::AND || in Select()
2515 (N0.getResNo() == 0 && N0.getNode()->getOpcode() == X86ISD::AND)) && in Select()
2516 N0.getNode()->hasOneUse() && in Select()
2519 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getNode()->getOperand(1)); in Select()
2527 SDValue Reg = N0.getNode()->getOperand(0); in Select()
2563 SDValue Reg = N0.getNode()->getOperand(0); in Select()
2600 SDValue Reg = N0.getNode()->getOperand(0); in Select()
2623 SDValue Reg = N0.getNode()->getOperand(0); in Select()
2686 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in Select()