if(ARCH STREQUAL "PowerPC") | |
add_subdirectory(Altivec) | |
endif() | |
if(ARCH STREQUAL "x86") | |
add_subdirectory(SSE) | |
endif() | |
CHECK_SYMBOL_EXISTS(__ARM_NEON "" NEON_AVAILABLE) | |
if(NEON_AVAILABLE) | |
add_subdirectory(NEON) | |
endif() | |
if(ARCH STREQUAL "AArch64") | |
add_subdirectory(AArch64) | |
endif() | |
if(CMAKE_C_COMPILER_ID STREQUAL "Clang") | |
if(ARCH STREQUAL "x86" AND X86CPU_ARCH STREQUAL "skylake-avx512") | |
add_subdirectory(AVX512) | |
endif() | |
endif() | |
llvm_singlesource(PREFIX "Vector-") |