[Mlir-commits] [mlir] [mlir] Add missing materialization function diag for dialect convertion (PR #207689)
lonely eagle
llvmlistbot at llvm.org
Mon Aug 3 07:59:59 PDT 2026
================
@@ -3383,14 +3383,25 @@ legalizeUnresolvedMaterialization(RewriterBase &rewriter,
rewriter.replaceOp(op, newMaterialization);
return success();
}
+ StringRef direction =
+ info.getMaterializationKind() == MaterializationKind::Target ? "target"
+ : "source";
+ InFlightDiagnostic diag = op.emitError()
+ << "mismatch " << direction
+ << " materialization function from ("
+ << inputOperands.getTypes() << ") to ("
+ << op.getResultTypes() << ")";
+ diag.attachNote(op->getUsers().begin()->getLoc())
+ << "require this materialization is here";
----------------
linuxlonelyeagle wrote:
Thank you for your guidance.😉
https://github.com/llvm/llvm-project/pull/207689
More information about the Mlir-commits
mailing list