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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to