[Mlir-commits] [mlir] [MLIR][OpenMP] Simplify translation to LLVM IR error handling (PR #114036)
Sergio Afonso
llvmlistbot at llvm.org
Tue Oct 29 09:23:27 PDT 2024
================
@@ -89,8 +89,54 @@ class OpenMPVarMappingStackFrame
DenseMap<Value, llvm::Value *> mapping;
};
+
+/// Custom error class to signal translation errors that don't need reporting,
+/// since encountering them will have already triggered relevant error messages.
+///
+/// For example, it should be used to trigger errors from within callbacks
+/// passed to the \see OpenMPIRBuilder when these errors resulted from the
+/// translation of their own regions. This unclutters the error log from
+/// redundant messages.
+class SilentTranslationError : public llvm::ErrorInfo<SilentTranslationError> {
----------------
skatrak wrote:
I think I improved it a bit by naming it `PreviouslyReportedError`, but I don't know if others will find that to be a good name. Let me know if you have a better alternative.
https://github.com/llvm/llvm-project/pull/114036
More information about the Mlir-commits
mailing list