Introduce LDBG_OS() macro as a variant of LDBG() (#157194)

Also, improve LDBG() to accept debug type and level in any order, and
add unit-tests for LDBG() and LGDB_OS().

LDBG_OS() is a macro that behaves like LDBG() but instead of directly
using it to stream the output, it takes a callback function that will be
called with a raw_ostream.

Co-authored-by: Andrzej WarzyƄski <andrzej.warzynski@gmail.com>
GitOrigin-RevId: c84f34bcd8c7fb6d5038b3f52da8c7be64ad5189
1 file changed
tree: 5b70c54ea00061a7d20c5d880a53627d297637f0
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. Maintainers.md
  17. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.