| commit | 2db4cec5762f2ee4297c14ba047cc5c91c731f09 | [log] [tgz] |
|---|---|---|
| author | Mehdi Amini <joker.eph@gmail.com> | Fri Sep 12 12:30:54 2025 +0100 |
| committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 12 04:35:23 2025 -0700 |
| tree | f00be347bd74582f910296bd211ea8a10ee88a6d | |
| parent | 14fc52eac51b07796a3c8ae94940130646aa2954 [diff] |
Introduce LDBG_OS() macro as a variant of LDBG() (#158277) 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. This is a re-land with workarounds for older gcc and clang versions. Previous attempts in #157194 and #158260 Co-authored-by: Andrzej WarzyĆski <andrzej.warzynski@gmail.com> GitOrigin-RevId: 2832717ecc84a93519aaf9a6558b8ce4e1c40933
See https://mlir.llvm.org/ for more information.