[llvm] [OFFLOAD] Add support for more fine grained debug messages control (PR #165416)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 08:22:10 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- offload/include/Shared/Debug.h offload/libomptarget/OffloadRTL.cpp offload/libomptarget/PluginManager.cpp offload/plugins-nextgen/host/src/rtl.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/include/Shared/Debug.h b/offload/include/Shared/Debug.h
index 3af4bb4ab..79da4c186 100644
--- a/offload/include/Shared/Debug.h
+++ b/offload/include/Shared/Debug.h
@@ -241,7 +241,8 @@ inline uint32_t getDebugLevel() {
 // LIBOFFLOAD_DEBUG=init:3,mapping:2 (Print messages of type "init" of level 3
 //                                   or lower and messages of type "mapping" of
 //                                   level 2 or lower)
-// LIBOFFLOAD_DEBUG=omptarget:4, init (Print messages from component "omptarget" of
+// LIBOFFLOAD_DEBUG=omptarget:4, init (Print messages from component "omptarget"
+// of
 //                                   level 4 or lower and messages of type
 //                                   "init" of level 1 or lower)
 //

``````````

</details>


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


More information about the llvm-commits mailing list