Lines Matching defs:SDValue

866     for (const SDValue &Op : N->op_values())
879 SDValue Src = N->getOperand(2);
1273 for (const SDValue &Op : N->op_values()) {
2166 bool SelectionDAGISel::CheckAndMask(SDValue LHS, ConstantSDNode *RHS,
2195 bool SelectionDAGISel::CheckOrMask(SDValue LHS, ConstantSDNode *RHS,
2225 void SelectionDAGISel::SelectInlineAsmMemoryOperands(std::vector<SDValue> &Ops,
2227 // Change the vector of SDValue into a list of SDNodeHandle for x86 might call
2265 std::vector<SDValue> SelOps;
2318 for (const SDValue &Op : ImmedUse->op_values()) {
2331 for (const SDValue &Op : Root->op_values()) {
2347 bool SelectionDAGISel::IsProfitableToFold(SDValue N, SDNode *U,
2356 bool SelectionDAGISel::IsLegalToFold(SDValue N, SDNode *U, SDNode *Root,
2427 std::vector<SDValue> Ops(N->op_begin(), N->op_end());
2431 SDValue New = CurDAG->getNode(N->getOpcode(), DL, VTs, Ops);
2447 SDValue New = CurDAG->getCopyFromReg(
2464 SDValue New = CurDAG->getCopyToReg(
2508 void SelectionDAGISel::pushStackMapLiveVariable(SmallVectorImpl<SDValue> &Ops,
2509 SDValue OpVal, SDLoc DL) {
2527 SmallVector<SDValue, 32> Ops;
2532 SDValue Chain = *It++;
2533 SDValue InGlue = *It++;
2536 SDValue ID = *It++;
2541 SDValue Shad = *It++;
2557 SmallVector<SDValue, 32> Ops;
2562 SDValue Chain = *It++;
2563 std::optional<SDValue> Glue;
2566 SDValue RegMask = *It++;
2569 SDValue ID = *It++;
2574 SDValue Shad = *It++;
2582 SDValue NumArgs = *It++;
2634 SDNode *NodeToMatch, SDValue InputChain,
2660 SDValue ChainVal = SDValue(ChainNode, ChainNode->getNumValues()-1);
2691 static SDValue
2697 SmallVector<SDValue, 3> InputChains;
2706 std::function<void(const SDValue)> AddChains = [&](const SDValue V) {
2714 for (const SDValue &Op : V->op_values())
2736 for (SDValue V : InputChains)
2741 return SDValue();
2753 ArrayRef<SDValue> Ops, unsigned EmitNodeInfo) {
2788 ReplaceUses(SDValue(Node, OldGlueResultNo),
2789 SDValue(Res, ResNumResults - 1));
2797 ReplaceUses(SDValue(Node, OldChainResultNo),
2798 SDValue(Res, ResNumResults - 1));
2813 CheckSame(const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2814 const SmallVectorImpl<std::pair<SDValue, SDNode *>> &RecordedNodes) {
2823 const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2824 const SmallVectorImpl<std::pair<SDValue, SDNode *>> &RecordedNodes,
2867 SDValue N,
2878 CheckChildType(MVT::SimpleValueType VT, SDValue N, const TargetLowering *TLI,
2887 SDValue N) {
2894 SDValue N) {
2902 SDValue N, const TargetLowering *TLI, const DataLayout &DL) {
2925 SDValue N) {
2938 SDValue N, unsigned ChildNo) {
2946 SDValue N, const SelectionDAGISel &SDISel) {
2958 CheckOrImm(const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2977 unsigned Index, SDValue N,
2980 SmallVectorImpl<std::pair<SDValue, SDNode*>> &RecordedNodes) {
3126 SmallVector<SDValue, 4> NodeStack;
3135 SDValue InputChain, InputGlue;
3148 SmallVectorImpl<std::pair<SDValue, SDNode *>> &RecordedNodes;
3153 SmallVectorImpl<std::pair<SDValue, SDNode *>> &RN,
3221 ReplaceUses(SDValue(NodeToMatch, 0), NodeToMatch->getOperand(0));
3269 SmallVector<SDValue, 8> NodeStack;
3270 SDValue N = SDValue(NodeToMatch, 0);
3280 SmallVector<std::pair<SDValue, SDNode*>, 8> RecordedNodes;
3289 SDValue InputChain, InputGlue;
3532 SmallVector<SDValue, 8> Operands;
3803 RecordedNodes.push_back(std::pair<SDValue, SDNode *>(
3823 RecordedNodes.push_back(std::pair<SDValue, SDNode *>(
3835 RecordedNodes.push_back(std::pair<SDValue, SDNode*>(
3854 SDValue Imm = RecordedNodes[RecNo].first;
3981 SDValue Res = RunSDNodeXForm(RecordedNodes[RecNo].first, XFormNo);
3982 RecordedNodes.push_back(std::pair<SDValue,SDNode*>(Res, nullptr));
4094 SmallVector<SDValue, 8> Ops;
4115 SDValue V = NodeToMatch->getOperand(i);
4150 RecordedNodes.push_back(std::pair<SDValue,SDNode*>(SDValue(Res, i),
4179 InputGlue = SDValue(Res, VTs.size()-1);
4181 InputChain = SDValue(Res, VTs.size()-2);
4183 InputChain = SDValue(Res, VTs.size()-1);
4243 SDValue Res = RecordedNodes[ResSlot].first;
4255 ReplaceUses(SDValue(NodeToMatch, i), Res);
4268 ReplaceUses(SDValue(NodeToMatch, NodeToMatch->getNumValues() - 1),