[Mlir-commits] [mlir] [mlir] Add `requiresAmendingMutatedDefs` and `amendMutatedDefs` to `PromotableOpInterface` (PR #86792)

Théo Degioanni llvmlistbot at llvm.org
Thu Mar 28 12:39:22 PDT 2024


================
@@ -229,6 +229,36 @@ def PromotableOpInterface : OpInterface<"PromotableOpInterface"> {
       (ins "const ::llvm::SmallPtrSetImpl<mlir::OpOperand *> &":$blockingUses,
            "::mlir::RewriterBase &":$rewriter)
     >,
+    InterfaceMethod<[{
+        This method returns whether the promoted operation requires amending the
+        mutated definitions by a store operation.
----------------
Moxinilian wrote:

```suggestion
        This method allows the promoted operation to visit the SSA values used
        in place of the memory slot once the promotion process of the memory
        slot is complete.
```

https://github.com/llvm/llvm-project/pull/86792


More information about the Mlir-commits mailing list