@@ -179,58 +179,3 @@ function(libclc_configure_lib_source OUT_LIST)
179
179
set ( ${OUT_LIST} ${rel_files} PARENT_SCOPE )
180
180
181
181
endfunction (libclc_configure_lib_source OUT_LIST )
182
-
183
- # add_libclc_sycl_binding(arch_suffix
184
- # TRIPLE string
185
- # Triple used to compile
186
- # FILES string ...
187
- # List of file that should be built for this library
188
- # COMPILE_OPT
189
- # Compilation options
190
- # )
191
- #
192
- # Build the sycl binding file for SYCLDEVICE.
193
- # The path to the generated object file are appended in OUT_LIST.
194
- #
195
- # The mangling for sycl device is not yet fully
196
- # compatible with standard mangling.
197
- # For various reason, we need a mangling specific
198
- # for the Default address space (mapping to generic in SYCL).
199
- # The Default address space is not accessible in CL mode,
200
- # so we build this file in sycl mode for mangling purposes.
201
- #
202
- # FIXME: all the files should be compiled with the sycldevice triple
203
- # but this is not possible at the moment as this will trigger
204
- # the SYCL mode which we don't want.
205
- #
206
- function (add_libclc_sycl_binding OUT_LIST )
207
- cmake_parse_arguments (ARG
208
- ""
209
- "TRIPLE"
210
- "FILES;COMPILE_OPT"
211
- ${ARGN} )
212
-
213
- foreach ( file ${ARG_FILES} )
214
- file ( TO_CMAKE_PATH ${LIBCLC_ROOT_DIR} /${file} SYCLDEVICE_BINDING )
215
- if ( EXISTS ${SYCLDEVICE_BINDING} )
216
- set ( SYCLDEVICE_BINDING_OUT ${CMAKE_CURRENT_BINARY_DIR} /sycldevice-binding-${ARG_TRIPLE}/sycldevice-binding.bc )
217
- string ( REGEX REPLACE "SHELL:" "" SYLCDEVICE_OPT ${ARG_COMPILE_OPT} )
218
- add_custom_command ( OUTPUT ${SYCLDEVICE_BINDING_OUT}
219
- COMMAND ${CMAKE_COMMAND} -E make_directory
220
- ${CMAKE_CURRENT_BINARY_DIR} /sycldevice-binding-${ARG_TRIPLE}
221
- COMMAND ${LLVM_CLANG}
222
- -fsycl-targets=${ARG_TRIPLE}-sycldevice
223
- -fsycl
224
- -fsycl-device-only
225
- -Dcl_khr_fp64
226
- -I${LIBCLC_ROOT_DIR}/generic/include
227
- ${SYCLDEVICE_OPT}
228
- ${SYCLDEVICE_BINDING}
229
- -o ${SYCLDEVICE_BINDING_OUT}
230
- MAIN_DEPENDENCY ${SYCLDEVICE_BINDING}
231
- DEPENDS ${SYCLDEVICE_BINDING} ${LLVM_CLANG}
232
- VERBATIM )
233
- set ( ${OUT_LIST} "${${OUT_LIST} };${SYCLDEVICE_BINDING_OUT} " PARENT_SCOPE )
234
- endif ()
235
- endforeach ()
236
- endfunction (add_libclc_sycl_binding OUT_LIST )
0 commit comments