Lines Matching defs:NodeToMatch

2681     SDNode *NodeToMatch, SDValue InputChain,
2704 if (ChainNode == NodeToMatch && isMorphNodeTo)
2720 if (ChainNode != NodeToMatch && ChainNode->use_empty() &&
3192 SDNode **NodeToMatch;
3197 MatchStateUpdater(SelectionDAG &DAG, SDNode **NodeToMatch,
3200 : SelectionDAG::DAGUpdateListener(DAG), NodeToMatch(NodeToMatch),
3211 // Check if NodeToMatch was updated.
3212 if (N == *NodeToMatch)
3213 *NodeToMatch = E;
3230 void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
3234 switch (NodeToMatch->getOpcode()) {
3261 NodeToMatch->setNodeId(-1); // Mark selected.
3266 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0));
3267 CurDAG->RemoveDeadNode(NodeToMatch);
3271 Select_INLINEASM(NodeToMatch);
3274 Select_READ_REGISTER(NodeToMatch);
3277 Select_WRITE_REGISTER(NodeToMatch);
3280 Select_UNDEF(NodeToMatch);
3283 Select_FAKE_USE(NodeToMatch);
3286 Select_FREEZE(NodeToMatch);
3289 Select_ARITH_FENCE(NodeToMatch);
3292 Select_MEMBARRIER(NodeToMatch);
3295 Select_STACKMAP(NodeToMatch);
3298 Select_PATCHPOINT(NodeToMatch);
3301 Select_JUMP_TABLE_DEBUG_INFO(NodeToMatch);
3304 Select_CONVERGENCECTRL_ANCHOR(NodeToMatch);
3307 Select_CONVERGENCECTRL_ENTRY(NodeToMatch);
3310 Select_CONVERGENCECTRL_LOOP(NodeToMatch);
3314 assert(!NodeToMatch->isMachineOpcode() && "Node already selected!");
3316 // Set up the node stack with NodeToMatch as the only node on the stack.
3318 SDValue N = SDValue(NodeToMatch, 0);
3609 MSU.reset(new MatchStateUpdater(*CurDAG, &NodeToMatch, RecordedNodes,
3612 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second,
3810 NodeToMatch) ||
3812 NodeToMatch, OptLevel,
3850 CurDAG->getSignedConstant(Val, SDLoc(NodeToMatch), VT,
3905 Imm = CurDAG->getTargetConstant(*Val, SDLoc(NodeToMatch),
3909 Imm = CurDAG->getTargetConstantFP(*Val, SDLoc(NodeToMatch),
3935 if (ChainNodesMatched.back() != NodeToMatch &&
3974 if (ChainNodesMatched.back() != NodeToMatch &&
4016 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch),
4157 assert(NodeToMatch->getNumOperands() >= FirstOpToCopy &&
4161 for (unsigned i = FirstOpToCopy, e = NodeToMatch->getNumOperands();
4163 SDValue V = NodeToMatch->getOperand(i);
4192 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch),
4202 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE &&
4203 "NodeToMatch was removed partway through selection");
4212 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList,
4291 assert(i < NodeToMatch->getNumValues() &&
4292 NodeToMatch->getValueType(i) != MVT::Other &&
4293 NodeToMatch->getValueType(i) != MVT::Glue &&
4295 assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
4296 NodeToMatch->getValueType(i) == MVT::iPTR ||
4298 NodeToMatch->getValueType(i).getSizeInBits() ==
4301 ReplaceUses(SDValue(NodeToMatch, i), Res);
4305 UpdateChains(NodeToMatch, InputChain, ChainNodesMatched, false);
4311 if (NodeToMatch->getValueType(NodeToMatch->getNumValues() - 1) ==
4314 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1),
4317 assert(NodeToMatch->use_empty() &&
4319 CurDAG->RemoveDeadNode(NodeToMatch);
4333 CannotYetSelect(NodeToMatch);