Skip to content

Commit f567c03

Browse files
frasercrmcktstellar
authored andcommitted
[libclc] Disable external-calls testing for clspv targets (llvm#127529)
These targets don't include all OpenCL builtins, so there will always be external calls in the final bytecode module. Fixes llvm#127316. (cherry picked from commit 9fec0a0)
1 parent 34f5f90 commit f567c03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ function(add_libclc_builtin_set)
345345
add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${obj_suffix} )
346346
set_target_properties( "prepare-${obj_suffix}" PROPERTIES FOLDER "libclc/Device IR/Prepare" )
347347

348-
# nvptx-- targets don't include workitem builtins
349-
if( NOT ARG_TRIPLE MATCHES ".*ptx.*--$" )
348+
# nvptx-- targets don't include workitem builtins, and clspv targets don't
349+
# include all OpenCL builtins
350+
if( NOT ARG_ARCH MATCHES "^(nvptx|clspv)(64)?$" )
350351
add_test( NAME external-calls-${obj_suffix}
351352
COMMAND ./check_external_calls.sh ${CMAKE_CURRENT_BINARY_DIR}/${obj_suffix} ${LLVM_TOOLS_BINARY_DIR}
352353
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )

0 commit comments

Comments
 (0)