Lines Matching refs:NodeToMatch

2316     SDNode *NodeToMatch, SDValue InputChain,  in UpdateChains()  argument
2339 if (ChainNode == NodeToMatch && isMorphNodeTo) in UpdateChains()
2355 if (ChainNode != NodeToMatch && ChainNode->use_empty() && in UpdateChains()
2754 SDNode **NodeToMatch; member in __anone743f0c40411::MatchStateUpdater
2759 MatchStateUpdater(SelectionDAG &DAG, SDNode **NodeToMatch, in MatchStateUpdater() argument
2762 : SelectionDAG::DAGUpdateListener(DAG), NodeToMatch(NodeToMatch), in MatchStateUpdater()
2774 if (N == *NodeToMatch) in NodeDeleted()
2775 *NodeToMatch = E; in NodeDeleted()
2792 void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch, in SelectCodeCommon() argument
2796 switch (NodeToMatch->getOpcode()) { in SelectCodeCommon()
2823 NodeToMatch->setNodeId(-1); // Mark selected. in SelectCodeCommon()
2828 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0)); in SelectCodeCommon()
2829 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
2833 Select_INLINEASM(NodeToMatch); in SelectCodeCommon()
2836 Select_READ_REGISTER(NodeToMatch); in SelectCodeCommon()
2839 Select_WRITE_REGISTER(NodeToMatch); in SelectCodeCommon()
2842 Select_UNDEF(NodeToMatch); in SelectCodeCommon()
2845 Select_FREEZE(NodeToMatch); in SelectCodeCommon()
2848 Select_ARITH_FENCE(NodeToMatch); in SelectCodeCommon()
2851 Select_STACKMAP(NodeToMatch); in SelectCodeCommon()
2854 Select_PATCHPOINT(NodeToMatch); in SelectCodeCommon()
2858 assert(!NodeToMatch->isMachineOpcode() && "Node already selected!"); in SelectCodeCommon()
2862 SDValue N = SDValue(NodeToMatch, 0); in SelectCodeCommon()
3101 MSU.reset(new MatchStateUpdater(*CurDAG, &NodeToMatch, RecordedNodes, in SelectCodeCommon()
3104 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second, in SelectCodeCommon()
3256 NodeToMatch) || in SelectCodeCommon()
3258 NodeToMatch, OptLevel, in SelectCodeCommon()
3274 CurDAG->getTargetConstant(Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3307 Imm = CurDAG->getTargetConstant(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3311 Imm = CurDAG->getTargetConstantFP(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3337 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3376 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3407 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch), in SelectCodeCommon()
3490 assert(NodeToMatch->getNumOperands() >= FirstOpToCopy && in SelectCodeCommon()
3494 for (unsigned i = FirstOpToCopy, e = NodeToMatch->getNumOperands(); in SelectCodeCommon()
3496 SDValue V = NodeToMatch->getOperand(i); in SelectCodeCommon()
3524 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch), in SelectCodeCommon()
3534 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE && in SelectCodeCommon()
3544 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList, in SelectCodeCommon()
3625 assert(i < NodeToMatch->getNumValues() && in SelectCodeCommon()
3626 NodeToMatch->getValueType(i) != MVT::Other && in SelectCodeCommon()
3627 NodeToMatch->getValueType(i) != MVT::Glue && in SelectCodeCommon()
3629 assert((NodeToMatch->getValueType(i) == Res.getValueType() || in SelectCodeCommon()
3630 NodeToMatch->getValueType(i) == MVT::iPTR || in SelectCodeCommon()
3632 NodeToMatch->getValueType(i).getSizeInBits() == in SelectCodeCommon()
3635 ReplaceUses(SDValue(NodeToMatch, i), Res); in SelectCodeCommon()
3639 UpdateChains(NodeToMatch, InputChain, ChainNodesMatched, false); in SelectCodeCommon()
3645 if (NodeToMatch->getValueType(NodeToMatch->getNumValues() - 1) == in SelectCodeCommon()
3648 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1), in SelectCodeCommon()
3651 assert(NodeToMatch->use_empty() && in SelectCodeCommon()
3653 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
3667 CannotYetSelect(NodeToMatch); in SelectCodeCommon()