@@ -345,8 +345,9 @@ function(add_libclc_builtin_set) |
|
|
345 |
345 |
add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${obj_suffix} ) |
346 |
346 |
set_target_properties( "prepare-${obj_suffix}" PROPERTIES FOLDER "libclc/Device IR/Prepare" ) |
347 |
347 |
|
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)?$" ) |
350 |
351 |
add_test( NAME external-calls-${obj_suffix} |
351 |
352 |
COMMAND ./check_external_calls.sh CMAKECURRENTBINARYDIR/{CMAKE_CURRENT_BINARY_DIR}/CMAKECURRENTBINARYDIR/{obj_suffix} ${LLVM_TOOLS_BINARY_DIR} |
352 |
353 |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) |