[Mlir-commits] [mlir] [mlir][side effect] refactor(*): Include more precise side effects (PR #94213)
donald chen
llvmlistbot at llvm.org
Wed Jun 5 05:28:03 PDT 2024
================
@@ -706,6 +706,7 @@ def MemRef_DmaStartOp : MemRef_Op<"dma_start"> {
let extraClassDeclaration = [{
// Returns the source MemRefType for this DMA operation.
Value getSrcMemRef() { return getOperand(0); }
+ OpOperand &getSrcMemRefMutable() { return getOperation()->getOpOperand(0); }
----------------
cxy-1993 wrote:
srcMemRef is not a arg in td file,actually, the td file of DmaStartOp argument is :
```
let arguments = (ins Variadic<AnyType>:$operands);
```
That also why we needs function getSrcMemRef in extraClassDeclaration.
https://github.com/llvm/llvm-project/pull/94213
More information about the Mlir-commits
mailing list