[clang] [llvm] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 7 11:56:07 PST 2024
================
@@ -141,20 +109,21 @@ set(bc_flags -c -foffload-lto -std=c++17 -fvisibility=hidden
# first create an object target
add_library(omptarget.devicertl.all_objs OBJECT IMPORTED)
-function(compileDeviceRTLLibrary target_cpu target_name target_triple)
+function(compileDeviceRTLLibrary target_name target_triple)
set(target_bc_flags ${ARGN})
set(bc_files "")
foreach(src ${src_files})
get_filename_component(infile ${src} ABSOLUTE)
get_filename_component(outfile ${src} NAME)
- set(outfile "${outfile}-${target_cpu}.bc")
+ set(outfile "${outfile}-${target_name}.bc")
set(depfile "${outfile}.d")
add_custom_command(OUTPUT ${outfile}
COMMAND ${CLANG_TOOL}
${bc_flags}
- --offload-arch=${target_cpu}
+ -fopenmp-targets=${target_triple}
+ -Xopenmp-target=${target_triple} -march=
----------------
jhuber6 wrote:
Intentional
https://github.com/llvm/llvm-project/pull/119091
More information about the cfe-commits
mailing list