Lines Matching +full:root +full:- +full:relative

21   amdgcn-amdhsa/lib/SOURCES;
23 amdgcn-mesa3d/lib/SOURCES;
29 ptx-nvidiacl/lib/SOURCES;
44 CACHE STRING "Semicolon-separated list of libclc targets to build, or 'all'." )
49 # Out-of-tree configuration
63 foreach( tool IN ITEMS clang llvm-as llvm-link opt )
70 # In-tree configuration
76 # more useful error message when built in-tree. We assume that LLVM tools are
79 message(FATAL_ERROR "Clang is not enabled, but is required to build libclc in-tree")
84 get_host_tool_path( llvm-as LLVM_AS llvm-as_exe llvm-as_target )
85 get_host_tool_path( llvm-link LLVM_LINK llvm-link_exe llvm-link_target )
94 # Note - use a differently named variable than LLVM_TOOL_${tool} as above, as
98 foreach( tool IN ITEMS clang llvm-as llvm-link opt )
106 foreach( tool IN ITEMS clang opt llvm-as llvm-link )
108 message( FATAL_ERROR "libclc toolchain incomplete - missing tool ${tool}!" )
112 # llvm-spirv is an optional dependency, used to build spirv-* targets.
113 # It may be provided in-tree or externally.
114 if( TARGET llvm-spirv )
115 get_host_tool_path( llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target )
117 find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
118 set( llvm-spirv_exe "${LLVM_SPIRV}" )
119 set( llvm-spirv_target )
124 amdgcn--
125 amdgcn--amdhsa
126 clspv--
127 clspv64--
128 r600--
129 nvptx--
130 nvptx64--
131 nvptx--nvidiacl
132 nvptx64--nvidiacl
137 list( APPEND LIBCLC_TARGETS_ALL amdgcn-mesa-mesa3d )
140 # spirv-mesa3d and spirv64-mesa3d targets can only be built with the (optional)
141 # llvm-spirv external tool.
142 if( llvm-spirv_exe )
143 list( APPEND LIBCLC_TARGETS_ALL spirv-mesa3d- spirv64-mesa3d- )
147 # llvm-spirv tool.
148 if( "spirv-mesa3d-" IN_LIST LIBCLC_TARGETS_TO_BUILD OR "spirv64-mesa3d-" IN_LIST LIBCLC_TARGETS_TO_BUILD )
149 if( NOT llvm-spirv_exe )
150 message( FATAL_ERROR "SPIR-V targets requested, but spirv-tools is not installed" )
168 set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}" )
185 add_llvm_executable( prepare_builtins utils/prepare-builtins.cpp )
189 add_llvm_utility( prepare_builtins utils/prepare-builtins.cpp )
194 target_compile_options( prepare_builtins PRIVATE -fno-rtti -fno-exceptions )
197 set( r600--_devices cedar cypress barts cayman )
198 set( amdgcn--_devices tahiti )
199 set( amdgcn-mesa-mesa3d_devices ${amdgcn--_devices} )
200 set( amdgcn--amdhsa_devices none )
201 set( clspv--_devices none )
202 set( clspv64--_devices none )
203 set( nvptx--_devices none )
204 set( nvptx64--_devices none )
205 set( nvptx--nvidiacl_devices none )
206 set( nvptx64--nvidiacl_devices none )
207 set( spirv-mesa3d-_devices none )
208 set( spirv64-mesa3d-_devices none )
226 # pkg-config file
254 OUTPUT clspv-convert.cl
255 COMMAND ${Python3_EXECUTABLE} ${script_loc} --clspv > clspv-convert.cl
257 add_custom_target( "clspv-generate_convert.cl" DEPENDS clspv-convert.cl )
258 set_target_properties( "clspv-generate_convert.cl" PROPERTIES FOLDER "libclc/Sourcegenning" )
264 string( REPLACE "-" ";" TRIPLE ${t} )
292 DIRS ${dirs} ${DARCH} ${DARCH}-${OS} ${DARCH}-${VENDOR}-${OS}
300 list( APPEND opencl_gen_files clspv-convert.cl )
309 DIRS ${dirs} ${DARCH} ${DARCH}-${OS} ${DARCH}-${VENDOR}-${OS}
324 set( build_flags -O0 -finline-hint-functions -DCLC_SPIRV )
326 set( spvflags --spirv-max-version=1.1 )
332 set( build_flags "-Wno-unknown-assumption" -DCLC_CLSPV )
333 set( opt_flags -O3 )
340 set( opt_flags -O3 )
350 -D__CLC_INTERNAL
351 -D${CLC_TARGET_DEFINE}
353 -I${CMAKE_CURRENT_SOURCE_DIR}/clc/include
355 -Wno-bitwise-conditional-parentheses
359 list( APPEND build_flags -mcpu=${cpu} )
365 ARCH_SUFFIX clc-${arch_suffix}
373 -I${CMAKE_CURRENT_SOURCE_DIR}/generic/include
386 INTERNAL_LINK_DEPENDENCIES $<TARGET_PROPERTY:builtins.link.clc-${arch_suffix},TARGET_FILE>