================
@@ -399,13 +372,14 @@ function(add_libclc_builtin_set)
     return()
   endif()
 
+  set( LIBCLC_OUTPUT_FILENAME libclc.bc )
   set( builtins_link_lib 
$<TARGET_PROPERTY:${builtins_link_lib_tgt},TARGET_FILE> )
 
   # For SPIR-V targets we diverage at this point and generate SPIR-V using the
   # llvm-spirv tool.
   if( ARG_ARCH STREQUAL spirv OR ARG_ARCH STREQUAL spirv64 )
-    set( obj_suffix ${ARG_ARCH_SUFFIX}.spv )
-    set( libclc_builtins_lib ${LIBCLC_OUTPUT_LIBRARY_DIR}/${obj_suffix} )
+    file( MAKE_DIRECTORY ${LIBCLC_OUTPUT_LIBRARY_DIR}/${ARG_TRIPLE} )
+    set( libclc_builtins_lib 
${LIBCLC_OUTPUT_LIBRARY_DIR}/${ARG_TRIPLE}/libclc.spv )
----------------
wenju-he wrote:

Each CPU has separate build and each cpu can have its own aliases.
The old bitcode name is ${ARG_ARCH_SUFFIX}.bc which contains CPU, but this 
information is not in the new libclc_builtins_lib and doesn't align with the 
change `llvm::sys::path::append(CPUPath, CPU, "libclc.bc");`

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

Reply via email to