llvm.org GIT mirror llvm / f464242
[SDAG] Update the AVR backend for the SelectionDAG API changes in r339740, fixing the build for this target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339748 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 2 years ago
1 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
349349 SDNode *ResNode = CurDAG->getMachineNode(Opc, DL, MVT::Other, Ops);
350350
351351 // Transfer memory operands.
352 MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
353 MemOp[0] = ST->getMemOperand();
354 cast(ResNode)->setMemRefs(MemOp, MemOp + 1);
352 CurDAG->setNodeMemRefs(cast(ResNode), {ST->getMemOperand()});
355353
356354 ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
357355 CurDAG->RemoveDeadNode(N);
406404 }
407405
408406 // Transfer memory operands.
409 MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
410 MemOp[0] = LD->getMemOperand();
411 cast(ResNode)->setMemRefs(MemOp, MemOp + 1);
407 CurDAG->setNodeMemRefs(cast(ResNode), {LD->getMemOperand()});
412408
413409 ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
414410 ReplaceUses(SDValue(N, 1), SDValue(ResNode, 1));