2008-10-26 08:56:18 +08:00
|
|
|
set(files
|
2014-09-19 18:17:06 +08:00
|
|
|
adxintrin.h
|
2010-04-14 11:54:58 +08:00
|
|
|
altivec.h
|
2012-05-30 03:36:17 +08:00
|
|
|
ammintrin.h
|
2014-06-28 05:25:42 +08:00
|
|
|
arm_acle.h
|
2010-08-05 06:03:36 +08:00
|
|
|
avxintrin.h
|
2011-12-19 13:04:33 +08:00
|
|
|
avx2intrin.h
|
2014-07-22 20:08:25 +08:00
|
|
|
avx512fintrin.h
|
|
|
|
avx512erintrin.h
|
2011-12-25 20:47:46 +08:00
|
|
|
bmiintrin.h
|
2011-12-26 11:20:06 +08:00
|
|
|
bmi2intrin.h
|
2011-02-27 21:33:31 +08:00
|
|
|
emmintrin.h
|
2012-10-11 09:10:04 +08:00
|
|
|
f16cintrin.h
|
2011-02-27 21:33:31 +08:00
|
|
|
float.h
|
2011-12-30 18:38:16 +08:00
|
|
|
fma4intrin.h
|
2012-06-04 11:42:47 +08:00
|
|
|
fmaintrin.h
|
2014-03-04 14:28:23 +08:00
|
|
|
ia32intrin.h
|
2010-08-21 02:04:07 +08:00
|
|
|
immintrin.h
|
2011-02-27 21:33:31 +08:00
|
|
|
iso646.h
|
2013-09-07 04:11:28 +08:00
|
|
|
Intrin.h
|
2011-02-27 21:33:31 +08:00
|
|
|
limits.h
|
2011-12-25 20:47:46 +08:00
|
|
|
lzcntintrin.h
|
2011-04-15 23:11:21 +08:00
|
|
|
mm3dnow.h
|
2011-02-27 21:33:31 +08:00
|
|
|
mmintrin.h
|
|
|
|
mm_malloc.h
|
|
|
|
nmmintrin.h
|
|
|
|
pmmintrin.h
|
2011-12-30 05:42:29 +08:00
|
|
|
popcntintrin.h
|
2013-03-27 01:52:08 +08:00
|
|
|
prfchwintrin.h
|
2013-03-29 13:17:55 +08:00
|
|
|
rdseedintrin.h
|
2012-11-10 13:17:46 +08:00
|
|
|
rtmintrin.h
|
2013-09-19 21:22:04 +08:00
|
|
|
shaintrin.h
|
2010-08-21 01:24:02 +08:00
|
|
|
smmintrin.h
|
2011-09-30 02:04:28 +08:00
|
|
|
stdalign.h
|
2011-02-27 21:33:31 +08:00
|
|
|
stdarg.h
|
Add an implementation of C11's stdatomic.h
Adds a Clang-specific implementation of C11's stdatomic.h header. On systems,
such as FreeBSD, where a stdatomic.h header is already provided, we defer to
that header instead (using our __has_include_next technology). Otherwise, we
provide an implementation in terms of our __c11_atomic_* intrinsics (that were
created for this purpose).
C11 7.1.4p1 requires function declarations for atomic_thread_fence,
atomic_signal_fence, atomic_flag_test_and_set,
atomic_flag_test_and_set_explicit, and atomic_flag_clear, and requires that
they have external linkage. Accordingly, we provide these declarations, but if
a user elides the shadowing macros and uses them, then they must have a libc
(or similar) that actually provides definitions.
atomic_flag is implemented using _Bool as the underlying type. This is
consistent with the implementation provided by FreeBSD and also GCC 4.9 (at
least when __GCC_ATOMIC_TEST_AND_SET_TRUEVAL == 1).
Patch by Richard Smith (rebased and slightly edited by me -- Richard said I
should drive at this point).
llvm-svn: 218957
2014-10-03 12:29:40 +08:00
|
|
|
stdatomic.h
|
2011-02-27 21:33:31 +08:00
|
|
|
stdbool.h
|
|
|
|
stddef.h
|
2014-10-03 08:31:35 +08:00
|
|
|
__stddef_max_align_t.h
|
2011-02-27 21:33:31 +08:00
|
|
|
stdint.h
|
2013-01-18 06:16:11 +08:00
|
|
|
stdnoreturn.h
|
2013-10-01 01:25:14 +08:00
|
|
|
tbmintrin.h
|
2009-06-07 15:09:23 +08:00
|
|
|
tgmath.h
|
|
|
|
tmmintrin.h
|
2011-02-27 21:33:31 +08:00
|
|
|
varargs.h
|
|
|
|
wmmintrin.h
|
2012-11-06 07:30:26 +08:00
|
|
|
__wmmintrin_aes.h
|
|
|
|
__wmmintrin_pclmul.h
|
2011-02-27 21:33:31 +08:00
|
|
|
x86intrin.h
|
|
|
|
xmmintrin.h
|
2012-06-10 08:39:38 +08:00
|
|
|
xopintrin.h
|
2011-12-06 23:46:47 +08:00
|
|
|
cpuid.h
|
2011-12-08 13:01:39 +08:00
|
|
|
unwind.h
|
2014-04-17 08:52:48 +08:00
|
|
|
module.modulemap
|
2011-02-27 21:33:31 +08:00
|
|
|
)
|
2008-10-26 08:56:18 +08:00
|
|
|
|
2014-01-19 21:00:01 +08:00
|
|
|
set(output_dir ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}/include)
|
2009-06-17 04:13:51 +08:00
|
|
|
|
2010-05-28 12:22:06 +08:00
|
|
|
# Generate arm_neon.h
|
2013-12-21 09:56:00 +08:00
|
|
|
clang_tablegen(arm_neon.h -gen-arm-neon
|
2011-02-21 06:06:32 +08:00
|
|
|
SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_neon.td)
|
2010-05-28 12:22:06 +08:00
|
|
|
|
2010-10-12 07:17:59 +08:00
|
|
|
set(out_files)
|
2008-10-26 08:56:18 +08:00
|
|
|
foreach( f ${files} )
|
|
|
|
set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
|
|
|
|
set( dst ${output_dir}/${f} )
|
|
|
|
add_custom_command(OUTPUT ${dst}
|
|
|
|
DEPENDS ${src}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
|
|
|
|
COMMENT "Copying clang's ${f}...")
|
2010-10-12 07:17:59 +08:00
|
|
|
list(APPEND out_files ${dst})
|
2008-10-26 08:56:18 +08:00
|
|
|
endforeach( f )
|
|
|
|
|
2010-10-12 07:17:59 +08:00
|
|
|
add_custom_command(OUTPUT ${output_dir}/arm_neon.h
|
2013-12-21 09:56:00 +08:00
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h ${output_dir}/arm_neon.h
|
2010-10-12 07:17:59 +08:00
|
|
|
COMMENT "Copying clang's arm_neon.h...")
|
|
|
|
list(APPEND out_files ${output_dir}/arm_neon.h)
|
|
|
|
|
|
|
|
add_custom_target(clang-headers ALL DEPENDS ${out_files})
|
2011-02-21 06:06:44 +08:00
|
|
|
set_target_properties(clang-headers PROPERTIES FOLDER "Misc")
|
2008-10-26 08:56:18 +08:00
|
|
|
|
2013-12-21 09:56:00 +08:00
|
|
|
install(
|
|
|
|
FILES ${files} ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
|
2008-10-26 08:56:18 +08:00
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
2009-10-28 05:15:21 +08:00
|
|
|
DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
|