[llvm] [Offload] Enable more refined debug printing (PR #163431)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 17 12:05:34 PDT 2025
jhuber6 wrote:
We should copy the `DEBUG_WITH_TYPE` form and pass it in to the macro, or have helpers for it. I'm generally against 'levels' for debugging, having a list of 'kinds' to enable is better in all cases.
```c
OFFLOAD_DEBUG(TAG, dbgs() << "foo");
```
We could make a default tag if you were so inclined, doable with some macro magic like
```c
#define GET_MACRO(1, 2, NAME, ...) NAME
GET_MACRO(__VA_ARGS__, FORM1, FORM2)(a, b, c)
```
https://github.com/llvm/llvm-project/pull/163431
More information about the llvm-commits
mailing list