[flang] Do not print backtrace for most TODOs.
authorSlava Zakharin <szakharin@nvidia.com>
Fri, 10 Feb 2023 16:56:30 +0000 (08:56 -0800)
committerSlava Zakharin <szakharin@nvidia.com>
Fri, 10 Feb 2023 23:07:37 +0000 (15:07 -0800)
commite8a79dc3d8ebcd5474dab35f180fc0dee77236ab
treefc8d5b3a06445b2625e9434dbd4f5ed611a07891
parentd2cc2c5610ffa78736aa99512bc85a85417efb0a
[flang] Do not print backtrace for most TODOs.

There are two ways to interrupt flang when a TODO is hit: abort or
exit with non-zero exit code. Abort implies printing the backtrace
and "PLEASE submit a bug report" message. We used to use abort
only in debug compiler build. Since the TODOs are already known
problems it may be counterproductive to ask debug compiler users
to submit bug reports. In addition, the TODO messages are pretty
self-explanatory, so the backtrace printing seems to be redundant.

This change makes all TODOs non-aborting. I added TODO_.*TRACE macros
for TODOs that may benefit from the backtrace and the "bug report"
message in the debug compiler. These macros are currently unused.

Differential Revision: https://reviews.llvm.org/D143761
flang/include/flang/Optimizer/Builder/Todo.h
flang/include/flang/Optimizer/Support/FatalError.h
flang/test/lit.cfg.py