[compiler-rt] [compiler-rt][ubsan] Add powerpc64le support to offload UBSan HSA interceptors (PR #228007)

Riyaz Ahmad via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 02:18:32 PDT 2026


https://github.com/riyaz86a created https://github.com/llvm/llvm-project/pull/228007

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.

>From 83bd72940de21f18e12a405ca6ab17d86db54a99 Mon Sep 17 00:00:00 2001
From: Riyaz Ahmad <riyaz.ahmad at ibm.com>
Date: Thu, 1 Oct 2026 05:15:13 -0400
Subject: [PATCH] [compiler-rt][ubsan] Add powerpc64le support to offload UBSan
 HSA interceptors

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.

Add PPC64 to ALL_UBSAN_OFFLOAD_SUPPORTED_ARCH to extend support for powerpc64le.
---
 compiler-rt/lib/ubsan/offload/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the llvm-commits mailing list