[llvm-branch-commits] [mlir] [mlir][Transforms] Dialect conversion: Make materializations optional (PR #104668)
Markus Böck via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 19 13:00:14 PDT 2024
================
@@ -702,14 +702,8 @@ class UnresolvedMaterializationRewrite : public OperationRewrite {
return rewrite->getKind() == Kind::UnresolvedMaterialization;
}
- UnrealizedConversionCastOp getOperation() const {
----------------
zero9178 wrote:
I think it would be cleaner to keep this method for the code below, warn about the issue of potentially being erased and the need to check for it, and then add a method `bool erasedRewrite(OperationRewrite* rewrite)` or similar to `SingleEraseRewriter`. Since the static type is then `OperationRewrite` it'd be accessing the `Operation*`
https://github.com/llvm/llvm-project/pull/104668
More information about the llvm-branch-commits
mailing list