[compiler-rt] [compiler-rt][ubsan] Add powerpc64le support to offload UBSan HSA interceptors (PR #228007)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 02:19:13 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Riyaz Ahmad (riyaz86a)
<details>
<summary>Changes</summary>
The HSA interceptor library was limited to x86_64 and aarch64, causing the hsa-load-order and hsa-missing lit tests to fail on powerpc64le.
All dependencies (sanitizer_offload, RTSanitizerOffload, llvm-libc-common-utilities)
are already available on powerpc64le Linux and the INTERCEPTOR macro works
via standard ELF symbol interposition on that platform.
Add PPC64 to ALL_UBSAN_OFFLOAD_SUPPORTED_ARCH to extend support for powerpc64le.
---
Full diff: https://github.com/llvm/llvm-project/pull/228007.diff
1 Files Affected:
- (modified) compiler-rt/lib/ubsan/offload/CMakeLists.txt (+1-1)
``````````diff
diff --git a/compiler-rt/lib/ubsan/offload/CMakeLists.txt b/compiler-rt/lib/ubsan/offload/CMakeLists.txt
index 11d569bce76b3..0523a460919ad 100644
--- a/compiler-rt/lib/ubsan/offload/CMakeLists.txt
+++ b/compiler-rt/lib/ubsan/offload/CMakeLists.txt
@@ -3,7 +3,7 @@ if(NOT OS_NAME MATCHES "Linux" OR NOT TARGET llvm-libc-common-utilities)
return()
endif()
-set(ALL_UBSAN_OFFLOAD_SUPPORTED_ARCH ${X86_64} ${ARM64})
+set(ALL_UBSAN_OFFLOAD_SUPPORTED_ARCH ${X86_64} ${ARM64} ${PPC64})
list_intersect(UBSAN_OFFLOAD_SUPPORTED_ARCH
UBSAN_SUPPORTED_ARCH
ALL_UBSAN_OFFLOAD_SUPPORTED_ARCH)
``````````
</details>
https://github.com/llvm/llvm-project/pull/228007
More information about the llvm-commits
mailing list