[libc-commits] [libc] [libc][GPU] Add target-specific folder for SPIR-V to use pure float versions (PR #243024)
via libc-commits
libc-commits at lists.llvm.org
Mon Nov 16 23:32:43 PST 2026
================
@@ -1,6 +1,23 @@
add_subdirectory(generic)
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
+ add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
+endif()
function(add_complex_entrypoint_object name)
+ # We prefer machine specific implementation if available. Hence we check
+ # that first and return early if we are able to add an alias target for the
+ # machine specific implementation.
+ get_fq_target_name("${LIBC_TARGET_ARCHITECTURE}.${name}" fq_machine_specific_target_name)
----------------
jinge90 wrote:
Hi, @lntue
Could you take a look at this PR when having time?
Thanks very much.
https://github.com/llvm/llvm-project/pull/243024
More information about the libc-commits
mailing list