[libclc] [libclc] Restore always_inline for SPIR-V targets (PR #202891)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 03:54:35 PDT 2026
wenju-he wrote:
`-finline-hint-functions` also needs to be deleted to get rid of `noinline`:
```
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index bc3624688a08..a4d8fa5b0ccb 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -145,7 +145,7 @@ if(LIBCLC_TARGET_ARCH IN_LIST LIBCLC_ARCHS_SPIRV)
if(LIBCLC_TARGET_OS STREQUAL vulkan)
list(APPEND target_compile_flags -Wno-unknown-assumption -U__opencl_c_int64)
else()
- list(APPEND target_compile_flags -O0 -finline-hint-functions)
+ list(APPEND target_compile_flags "SHELL:-Xclang -disable-llvm-passes")
list(APPEND target_extra_defines CLC_SPIRV)
set(opt_flags)
endif()
```
https://github.com/llvm/llvm-project/pull/202891
More information about the cfe-commits
mailing list