[Mlir-commits] [llvm] [mlir] [MLIR][OpenMP][OMPIRBuilder] Error propagation across callbacks (PR #112533)

Michael Kruse llvmlistbot at llvm.org
Wed Oct 16 06:22:32 PDT 2024


Meinersbur wrote:

My naive view would be that once we start emitting code, other than non-recoverable errors such as bugs and non-yet-implemented aborts where the compiler should just crash. For descriptive messages for crashes, there is https://github.com/llvm/llvm-project/blob/df0551298868b164197a4e54e9444120dc96ff53/llvm/include/llvm/Support/PrettyStackTrace.h#L52 . This is what adds
```
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/clang++ -gdwarf-4 -g -o /app/output.s -mllvm --x86-asm-syntax=intel -fno-verbose-asm -S --gcc-toolchain=/opt/compiler-explorer/gcc-snapshot -fcolor-diagnostics -fno-crash-diagnostics <source>
1.	<eof> parser at end of file
2.	<source>:2:6: LLVM IR generation of declaration 'test'
3.	<source>:2:6: Generating code for declaration 'test'
```
to Clang crash reports. "failed region translation" (or more descriptive: "translating region 'X'") could be an entry added in OpenMPIRBuilder.

In other words, what recoverable error will this be used for? `convertBlock` not succeeding looks non-recoverable.

https://github.com/llvm/llvm-project/pull/112533


More information about the Mlir-commits mailing list