[compiler-rt] [llvm] [UBSan][AMDGPU] Report minimal-runtime diagnostics with symbolization (PR #204705)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 13:08:35 PDT 2026


================
@@ -52,6 +53,8 @@ target_include_directories(PluginCommon PUBLIC
   ${LIBOMPTARGET_LLVM_INCLUDE_DIRS}
   ${LIBOMPTARGET_BINARY_INCLUDE_DIR}
   ${LIBOMPTARGET_INCLUDE_DIR}
+  # For the shared GPU sanitizer report ABI header.
+  ${OFFLOAD_SOURCE_DIR}/../compiler-rt/include
----------------
jhuber6 wrote:

We have a lot of precedent for shared headers, but it's a little difficult to do them in a principled way. I'm not sure if it's better for compiler-rt to reach into offload/ or vice-versa. Alternatively I could just stash this with the `libc/` interface. This it's the biggest ask of the PR I believe, but it's necessary to share the implementation. Now, an alternative would be to do what flang-rt does and register the dependency dynamically, but that would require the user having the compiler-rt linked, which isn't guaranteed, because I want to keep this supported where someone does `-Xarch_device -fsanitize=undefined`.

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


More information about the llvm-commits mailing list