Lines Matching refs:NodeToMatch
2362 SDNode *NodeToMatch, SDValue InputChain, in UpdateChains() argument
2385 if (ChainNode == NodeToMatch && isMorphNodeTo) in UpdateChains()
2401 if (ChainNode != NodeToMatch && ChainNode->use_empty() && in UpdateChains()
2800 SDNode **NodeToMatch; member in __anon75d0bdc80411::MatchStateUpdater
2805 MatchStateUpdater(SelectionDAG &DAG, SDNode **NodeToMatch, in MatchStateUpdater() argument
2808 : SelectionDAG::DAGUpdateListener(DAG), NodeToMatch(NodeToMatch), in MatchStateUpdater()
2820 if (N == *NodeToMatch) in NodeDeleted()
2821 *NodeToMatch = E; in NodeDeleted()
2838 void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch, in SelectCodeCommon() argument
2842 switch (NodeToMatch->getOpcode()) { in SelectCodeCommon()
2869 NodeToMatch->setNodeId(-1); // Mark selected. in SelectCodeCommon()
2874 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0)); in SelectCodeCommon()
2875 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
2879 Select_INLINEASM(NodeToMatch); in SelectCodeCommon()
2882 Select_READ_REGISTER(NodeToMatch); in SelectCodeCommon()
2885 Select_WRITE_REGISTER(NodeToMatch); in SelectCodeCommon()
2888 Select_UNDEF(NodeToMatch); in SelectCodeCommon()
2891 Select_FREEZE(NodeToMatch); in SelectCodeCommon()
2894 Select_ARITH_FENCE(NodeToMatch); in SelectCodeCommon()
2898 assert(!NodeToMatch->isMachineOpcode() && "Node already selected!"); in SelectCodeCommon()
2902 SDValue N = SDValue(NodeToMatch, 0); in SelectCodeCommon()
3141 MSU.reset(new MatchStateUpdater(*CurDAG, &NodeToMatch, RecordedNodes, in SelectCodeCommon()
3144 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second, in SelectCodeCommon()
3296 NodeToMatch) || in SelectCodeCommon()
3298 NodeToMatch, OptLevel, in SelectCodeCommon()
3314 CurDAG->getTargetConstant(Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3347 Imm = CurDAG->getTargetConstant(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3351 Imm = CurDAG->getTargetConstantFP(*Val, SDLoc(NodeToMatch), in SelectCodeCommon()
3375 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3412 if (ChainNodesMatched.back() != NodeToMatch && in SelectCodeCommon()
3443 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch), in SelectCodeCommon()
3526 assert(NodeToMatch->getNumOperands() >= FirstOpToCopy && in SelectCodeCommon()
3530 for (unsigned i = FirstOpToCopy, e = NodeToMatch->getNumOperands(); in SelectCodeCommon()
3532 SDValue V = NodeToMatch->getOperand(i); in SelectCodeCommon()
3562 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch), in SelectCodeCommon()
3572 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE && in SelectCodeCommon()
3582 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList, in SelectCodeCommon()
3663 assert(i < NodeToMatch->getNumValues() && in SelectCodeCommon()
3664 NodeToMatch->getValueType(i) != MVT::Other && in SelectCodeCommon()
3665 NodeToMatch->getValueType(i) != MVT::Glue && in SelectCodeCommon()
3667 assert((NodeToMatch->getValueType(i) == Res.getValueType() || in SelectCodeCommon()
3668 NodeToMatch->getValueType(i) == MVT::iPTR || in SelectCodeCommon()
3670 NodeToMatch->getValueType(i).getSizeInBits() == in SelectCodeCommon()
3673 ReplaceUses(SDValue(NodeToMatch, i), Res); in SelectCodeCommon()
3677 UpdateChains(NodeToMatch, InputChain, ChainNodesMatched, false); in SelectCodeCommon()
3683 if (NodeToMatch->getValueType(NodeToMatch->getNumValues() - 1) == in SelectCodeCommon()
3686 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1), in SelectCodeCommon()
3689 assert(NodeToMatch->use_empty() && in SelectCodeCommon()
3691 CurDAG->RemoveDeadNode(NodeToMatch); in SelectCodeCommon()
3705 CannotYetSelect(NodeToMatch); in SelectCodeCommon()