Lines Matching refs:NodeToMatch
2370 SDNode *NodeToMatch, SDValue InputChain, in UpdateChains() argument
2393 if (ChainNode == NodeToMatch && isMorphNodeTo) in UpdateChains()
2409 if (ChainNode != NodeToMatch && ChainNode->use_empty() && in UpdateChains()
2808 SDNode **NodeToMatch; member in __anon2a30ef0b0411::MatchStateUpdater
2813 MatchStateUpdater(SelectionDAG &DAG, SDNode **NodeToMatch, in MatchStateUpdater() argument
2816 : SelectionDAG::DAGUpdateListener(DAG), NodeToMatch(NodeToMatch), in MatchStateUpdater()
2828 if (N == *NodeToMatch) in NodeDeleted()
2829 *NodeToMatch = E; in NodeDeleted()
2846 void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch, in SelectCodeCommon() argument
2850 switch (NodeToMatch->getOpcode()) { in SelectCodeCommon()
2877 NodeToMatch->setNodeId(-1); // Mark selected. in SelectCodeCommon()
2882 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0)); in SelectCodeCommon()
2883 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
2887 Select_INLINEASM(NodeToMatch); in SelectCodeCommon()
2890 Select_READ_REGISTER(NodeToMatch); in SelectCodeCommon()
2893 Select_WRITE_REGISTER(NodeToMatch); in SelectCodeCommon()
2896 Select_UNDEF(NodeToMatch); in SelectCodeCommon()
2899 Select_FREEZE(NodeToMatch); in SelectCodeCommon()
2902 Select_ARITH_FENCE(NodeToMatch); in SelectCodeCommon()
2905 Select_MEMBARRIER(NodeToMatch); in SelectCodeCommon()
2908 Select_STACKMAP(NodeToMatch); in SelectCodeCommon()
2911 Select_PATCHPOINT(NodeToMatch); in SelectCodeCommon()
2915 assert(!NodeToMatch->isMachineOpcode() && "Node already selected!"); in SelectCodeCommon()
2919 SDValue N = SDValue(NodeToMatch, 0); in SelectCodeCommon()
3158 MSU.reset(new MatchStateUpdater(*CurDAG, &NodeToMatch, RecordedNodes, in SelectCodeCommon()
3161 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second, in SelectCodeCommon()
3313 NodeToMatch) || in SelectCodeCommon()
3315 NodeToMatch, OptLevel, in SelectCodeCommon()
3331 CurDAG->getTargetConstant(Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3364 Imm = CurDAG->getTargetConstant(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3368 Imm = CurDAG->getTargetConstantFP(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3394 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3433 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3464 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch), in SelectCodeCommon()
3547 assert(NodeToMatch->getNumOperands() >= FirstOpToCopy && in SelectCodeCommon()
3551 for (unsigned i = FirstOpToCopy, e = NodeToMatch->getNumOperands(); in SelectCodeCommon()
3553 SDValue V = NodeToMatch->getOperand(i); in SelectCodeCommon()
3581 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch), in SelectCodeCommon()
3591 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE && in SelectCodeCommon()
3601 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList, in SelectCodeCommon()
3682 assert(i < NodeToMatch->getNumValues() && in SelectCodeCommon()
3683 NodeToMatch->getValueType(i) != MVT::Other && in SelectCodeCommon()
3684 NodeToMatch->getValueType(i) != MVT::Glue && in SelectCodeCommon()
3686 assert((NodeToMatch->getValueType(i) == Res.getValueType() || in SelectCodeCommon()
3687 NodeToMatch->getValueType(i) == MVT::iPTR || in SelectCodeCommon()
3689 NodeToMatch->getValueType(i).getSizeInBits() == in SelectCodeCommon()
3692 ReplaceUses(SDValue(NodeToMatch, i), Res); in SelectCodeCommon()
3696 UpdateChains(NodeToMatch, InputChain, ChainNodesMatched, false); in SelectCodeCommon()
3702 if (NodeToMatch->getValueType(NodeToMatch->getNumValues() - 1) == in SelectCodeCommon()
3705 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1), in SelectCodeCommon()
3708 assert(NodeToMatch->use_empty() && in SelectCodeCommon()
3710 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
3724 CannotYetSelect(NodeToMatch); in SelectCodeCommon()