11 avx512vlbitalgintrin.h
13 avx512vpopcntdqintrin.h
28 avx512vpopcntdqvlintrin.h
34 __clang_cuda_builtin_vars.h
36 __clang_cuda_complex_builtins.h
37 __clang_cuda_device_functions.h
38 __clang_cuda_intrinsics.h
39 __clang_cuda_libdevice_declares.h
40 __clang_cuda_math_forward_declares.h
41 __clang_cuda_runtime_wrapper.h
92 __stddef_max_align_t.h
119 set(cuda_wrapper_files
120 cuda_wrappers/algorithm
121 cuda_wrappers/complex
125 set(output_dir ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}/include)
127 # Generate arm_neon.h
128 clang_tablegen(arm_neon.h -gen-arm-neon
129 -I ${CLANG_SOURCE_DIR}/include/clang/Basic/
130 SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_neon.td)
131 # Generate arm_fp16.h
132 clang_tablegen(arm_fp16.h -gen-arm-fp16
133 -I ${CLANG_SOURCE_DIR}/include/clang/Basic/
134 SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_fp16.td)
137 foreach( f ${files} ${cuda_wrapper_files} )
138 set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
139 set( dst ${output_dir}/${f} )
140 add_custom_command(OUTPUT ${dst}
142 COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
143 COMMENT "Copying clang's ${f}...")
144 list(APPEND out_files ${dst})
147 add_custom_command(OUTPUT ${output_dir}/arm_neon.h
148 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
149 COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h ${output_dir}/arm_neon.h
150 COMMENT "Copying clang's arm_neon.h...")
151 list(APPEND out_files ${output_dir}/arm_neon.h)
152 add_custom_command(OUTPUT ${output_dir}/arm_fp16.h
153 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_fp16.h
154 COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_fp16.h ${output_dir}/arm_fp16.h
155 COMMENT "Copying clang's arm_fp16.h...")
156 list(APPEND out_files ${output_dir}/arm_fp16.h)
158 add_custom_target(clang-headers ALL DEPENDS ${out_files})
159 set_target_properties(clang-headers PROPERTIES
161 RUNTIME_OUTPUT_DIRECTORY "${output_dir}")
164 FILES ${files} ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
165 COMPONENT clang-headers
166 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
167 DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
170 FILES ${files} ${CMAKE_CURRENT_BINARY_DIR}/arm_fp16.h
171 COMPONENT clang-headers
172 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
173 DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
176 FILES ${cuda_wrapper_files}
177 COMPONENT clang-headers
178 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
179 DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include/cuda_wrappers)
181 if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's.
182 add_llvm_install_targets(install-clang-headers
183 DEPENDS clang-headers
184 COMPONENT clang-headers)