[llvm-branch-commits] [mlir] [mlir-c] Add 1:N TypeConverter conversion and materialization bindings (PR #208935)
Jacques Pienaar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 21 01:50:31 PDT 2026
================
@@ -833,7 +833,194 @@ static MlirValue buildCastMaterialization(MlirRewriterBase rewriter,
return mlirOperationGetResult(castOp, 0);
}
-// Conversion pattern for `test.source`: replaces it with a `test.source_i64`
+// Source materialization callback that always declines (returns a null value)
+// and records that it was consulted. Used to exercise the "this materialization
+// declined, try the next one" fallback path.
+static MlirValue
+declineSourceMaterialization(MlirRewriterBase rewriter, MlirType outputType,
----------------
jpienaar wrote:
Up to you, but I think you can also just do
`MlirRewriterBase /*rewriter*/`
to avoid needing void below and make it more self-documenting in signature that not used.
https://github.com/llvm/llvm-project/pull/208935
More information about the llvm-branch-commits
mailing list