Author: Romaric Jodin
Date: 2026-08-19T18:15:50+08:00
New Revision: d4c19355521fe0d7af54dd80c766fa00d1c6a278

URL: 
https://github.com/llvm/llvm-project/commit/d4c19355521fe0d7af54dd80c766fa00d1c6a278
DIFF: 
https://github.com/llvm/llvm-project/commit/d4c19355521fe0d7af54dd80c766fa00d1c6a278.diff

LOG: [libclc] Use generic subnormal_config for spirv-vulkan (#217240)

Since clspv properly handles denorm with
https://github.com/google/clspv/pull/1616
we should rely on the generic implementation of subnormal_config.

Added: 
    

Modified: 
    libclc/clc/lib/spirv/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libclc/clc/lib/spirv/CMakeLists.txt 
b/libclc/clc/lib/spirv/CMakeLists.txt
index 11d39189891ce..1a6340f93a0fe 100644
--- a/libclc/clc/lib/spirv/CMakeLists.txt
+++ b/libclc/clc/lib/spirv/CMakeLists.txt
@@ -8,5 +8,8 @@ libclc_add_sources(${LIBCLC_CLC_TARGET} FILES
   math/clc_fmin.cl
   math/clc_runtime_has_hw_fma32.cl
   math/clc_sw_fma.cl
-  subnormal_config.cl
 )
+
+if(NOT LIBCLC_TARGET_OS STREQUAL "vulkan")
+  libclc_add_sources(${LIBCLC_CLC_TARGET} FILES subnormal_config.cl)
+endif()


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

Reply via email to