[libclc] [libclc] Move sign to the CLC builtins library (PR #115699)
Karol Herbst via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 16:53:16 PST 2024
================
@@ -322,22 +322,26 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
if ( ARCH STREQUAL spirv OR ARCH STREQUAL spirv64 )
set( build_flags -O0 -finline-hint-functions -DCLC_SPIRV )
- set( opt_flags )
+ set( clc_opt_flags )
+ # Inline CLC functions into OpenCL builtins
+ set( opencl_opt_flags "--passes=always-inline" )
----------------
karolherbst wrote:
An alternative good solution would be to have things like `HAVE_HW_FMA32()` compiling to a SPIR-V specialization constant and then we just specialize the SPIR-V, but I'm not sure if it's worth the effort.
But of course things here could also be more formalized for libclc compiled to a generic SPIR-V binary.
There are many possible paths to make it "proper".
But anyway, I'm not in the mood to discuss this any further with this kind of attitude, soo.. have fun.
https://github.com/llvm/llvm-project/pull/115699
More information about the cfe-commits
mailing list