mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Add SIMDe backend to CMake
This commit is contained in:
parent
574e525c46
commit
d24d67c28b
@ -128,6 +128,11 @@ elseif (ARCH_ARM32 OR ARCH_AARCH64)
|
||||
elseif (ARCH_PPC64EL)
|
||||
include (${CMAKE_MODULE_PATH}/cflags-ppc64le.cmake)
|
||||
set(ARCH_FLAG mcpu)
|
||||
elseif(SIMDE_BACKEND)
|
||||
include (${CMAKE_MODULE_PATH}/simde.cmake)
|
||||
set(ARCH_FLAG march)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported platform")
|
||||
endif ()
|
||||
|
||||
# Detect Native arch flags if requested
|
||||
@ -253,6 +258,10 @@ elseif (ARCH_PPC64EL)
|
||||
set (hs_exec_common_SRCS
|
||||
${hs_exec_common_SRCS}
|
||||
src/util/arch/ppc64el/cpuid_flags.c)
|
||||
elseif (SIMDE_BACKEND)
|
||||
set (hs_exec_common_SRCS
|
||||
${hs_exec_common_SRCS}
|
||||
src/util/arch/simde/cpuid_flags.c)
|
||||
endif ()
|
||||
|
||||
set (hs_exec_SRCS
|
||||
@ -411,6 +420,11 @@ set (hs_exec_SRCS
|
||||
${hs_exec_SRCS}
|
||||
src/nfa/vermicelli_simd.cpp
|
||||
src/util/supervector/arch/ppc64el/impl.cpp)
|
||||
elseif (SIMDE_BACKEND)
|
||||
set (hs_exec_SRCS
|
||||
${hs_exec_SRCS}
|
||||
src/nfa/vermicelli_simd.cpp
|
||||
src/util/supervector/arch/simde/impl.cpp)
|
||||
endif()
|
||||
|
||||
if (ARCH_IA32 OR ARCH_X86_64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user