================ @@ -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 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
