[Mlir-commits] [mlir] [MLIR][OpenMP] Simplify translation to LLVM IR error handling (PR #114036)
Michael Kruse
llvmlistbot at llvm.org
Tue Oct 29 08:23:05 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> {
----------------
Meinersbur wrote:
Could we think of a better name? These should not be ignored, just that is is expected to already have been reported.
https://github.com/llvm/llvm-project/pull/114036
More information about the Mlir-commits
mailing list