https://github.com/arsenm created 
https://github.com/llvm/llvm-project/pull/181107

It is wrong to compile as tahiti, and then treat everything
else as an alias. The IR is tainted with "target-cpu"="tahiti".
Optimizations on the libclc build can break the program, even if
the target-cpu is ultimately overridden by -mlink-builtin-bitcode.

The main risk of doing this is if mesa is still relying on finding
the subtarget suffixed bc file. As far as I can tell clover has been
removed, and rusticl only uses the spirv versions.

>From 17582caec0a7c01417cc3594e577428508d9d2c7 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <[email protected]>
Date: Wed, 11 Feb 2026 09:40:16 +0100
Subject: [PATCH] libclc: Stop building amdgpu targets all as tahiti

It is wrong to compile as tahiti, and then treat everything
else as an alias. The IR is tainted with "target-cpu"="tahiti".
Optimizations on the libclc build can break the program, even if
the target-cpu is ultimately overridden by -mlink-builtin-bitcode.

The main risk of doing this is if mesa is still relying on finding
the subtarget suffixed bc file. As far as I can tell clover has been
removed, and rusticl only uses the spirv versions.
---
 libclc/CMakeLists.txt | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 70b4d96f211c5..e12a971452132 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -205,8 +205,8 @@ include_directories( ${LLVM_INCLUDE_DIRS} )
 
 # Setup arch devices
 set( r600--_devices cedar cypress barts cayman )
-set( amdgcn--_devices tahiti )
-set( amdgcn-mesa-mesa3d_devices ${amdgcn--_devices} )
+set( amdgcn--_devices none )
+set( amdgcn-mesa-mesa3d_devices none )
 set( amdgcn-amd-amdhsa-llvm_devices none )
 set( clspv--_devices none )
 set( clspv64--_devices none )
@@ -221,18 +221,6 @@ set( cedar_aliases palm sumo sumo2 redwood juniper )
 set( cypress_aliases hemlock )
 set( barts_aliases turks caicos )
 set( cayman_aliases aruba )
-set( tahiti_aliases pitcairn verde oland hainan bonaire kabini kaveri hawaii
-  mullins tonga tongapro iceland carrizo fiji stoney polaris10 polaris11
-  gfx602 gfx705 gfx805
-  gfx900 gfx902 gfx904 gfx906 gfx908 gfx909 gfx90a gfx90c gfx942 gfx950
-  gfx1010 gfx1011 gfx1012 gfx1013
-  gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036
-  gfx1100 gfx1101 gfx1102 gfx1103
-  gfx1150 gfx1151 gfx1152 gfx1153
-  gfx1170
-  gfx1200 gfx1201 gfx1250 gfx1251
-  gfx1310
-)
 
 # pkg-config file
 configure_file( libclc.pc.in libclc.pc @ONLY )

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to