• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/

Lines Matching defs:NodeToMatch

2308     SDNode *NodeToMatch, SDValue InputChain,
2331 if (ChainNode == NodeToMatch && isMorphNodeTo)
2347 if (ChainNode != NodeToMatch && ChainNode->use_empty() &&
2735 SDNode **NodeToMatch;
2740 MatchStateUpdater(SelectionDAG &DAG, SDNode **NodeToMatch,
2743 : SelectionDAG::DAGUpdateListener(DAG), NodeToMatch(NodeToMatch),
2754 // Check if NodeToMatch was updated.
2755 if (N == *NodeToMatch)
2756 *NodeToMatch = E;
2773 void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
2777 switch (NodeToMatch->getOpcode()) {
2803 NodeToMatch->setNodeId(-1); // Mark selected.
2807 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0));
2808 CurDAG->RemoveDeadNode(NodeToMatch);
2812 Select_INLINEASM(NodeToMatch,
2813 NodeToMatch->getOpcode() == ISD::INLINEASM_BR);
2816 Select_READ_REGISTER(NodeToMatch);
2819 Select_WRITE_REGISTER(NodeToMatch);
2822 Select_UNDEF(NodeToMatch);
2826 assert(!NodeToMatch->isMachineOpcode() && "Node already selected!");
2828 // Set up the node stack with NodeToMatch as the only node on the stack.
2830 SDValue N = SDValue(NodeToMatch, 0);
3069 MSU.reset(new MatchStateUpdater(*CurDAG, &NodeToMatch, RecordedNodes,
3072 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second,
3222 NodeToMatch) ||
3224 NodeToMatch, OptLevel,
3237 CurDAG->getTargetConstant(Val, SDLoc(NodeToMatch),
3270 Imm = CurDAG->getTargetConstant(*Val, SDLoc(NodeToMatch),
3274 Imm = CurDAG->getTargetConstantFP(*Val, SDLoc(NodeToMatch),
3298 if (ChainNodesMatched.back() != NodeToMatch &&
3335 if (ChainNodesMatched.back() != NodeToMatch &&
3366 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch),
3449 assert(NodeToMatch->getNumOperands() >= FirstOpToCopy &&
3453 for (unsigned i = FirstOpToCopy, e = NodeToMatch->getNumOperands();
3455 SDValue V = NodeToMatch->getOperand(i);
3485 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch),
3495 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE &&
3496 "NodeToMatch was removed partway through selection");
3505 Res = cast<MachineSDNode>(MorphNode(NodeToMatch, TargetOpc, VTList,
3586 assert(i < NodeToMatch->getNumValues() &&
3587 NodeToMatch->getValueType(i) != MVT::Other &&
3588 NodeToMatch->getValueType(i) != MVT::Glue &&
3590 assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
3591 NodeToMatch->getValueType(i) == MVT::iPTR ||
3593 NodeToMatch->getValueType(i).getSizeInBits() ==
3596 ReplaceUses(SDValue(NodeToMatch, i), Res);
3600 UpdateChains(NodeToMatch, InputChain, ChainNodesMatched, false);
3606 if (NodeToMatch->getValueType(NodeToMatch->getNumValues() - 1) ==
3609 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1),
3612 assert(NodeToMatch->use_empty() &&
3614 CurDAG->RemoveDeadNode(NodeToMatch);
3628 CannotYetSelect(NodeToMatch);