[clang] [CIR] Route MLIR diagnostics through clang::DiagnosticsEngine (PR #199297)
Konstantinos Parasyris via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 11:57:36 PDT 2026
================
@@ -519,4 +519,11 @@ def err_cir_to_cir_transform_failed : Error<
def err_cir_verification_failed_pre_passes : Error<
"CIR module verification error before running CIR-to-CIR passes">,
DefaultFatal;
+
+// Diagnostics relayed from MLIR-side passes/verifier through the
+// clang::DiagnosticsEngine. The full message text comes from MLIR.
+def err_cir_mlir_diagnostic : Error<"%0">;
----------------
koparasy wrote:
Is this what you had in mind?
https://github.com/llvm/llvm-project/pull/199297
More information about the cfe-commits
mailing list