diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
commit | b981cca279190176740c3bf5c5b4fd03be51b599 (patch) | |
tree | f5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /contrib | |
parent | 6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff) | |
download | ydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz |
Enable linux-arm platform.
Diffstat (limited to 'contrib')
127 files changed, 10526 insertions, 1761 deletions
diff --git a/contrib/libs/base64/avx2/CMakeLists.darwin.txt b/contrib/libs/base64/avx2/CMakeLists.darwin.txt new file mode 100644 index 0000000000..085333714b --- /dev/null +++ b/contrib/libs/base64/avx2/CMakeLists.darwin.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-avx2) +target_link_libraries(libs-base64-avx2 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mavx2 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mavx2 + -std=c11 +) diff --git a/contrib/libs/base64/avx2/CMakeLists.linux-aarch64.txt b/contrib/libs/base64/avx2/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..3270033f63 --- /dev/null +++ b/contrib/libs/base64/avx2/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-avx2) +target_link_libraries(libs-base64-avx2 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c +) diff --git a/contrib/libs/base64/avx2/CMakeLists.linux.txt b/contrib/libs/base64/avx2/CMakeLists.linux.txt new file mode 100644 index 0000000000..085333714b --- /dev/null +++ b/contrib/libs/base64/avx2/CMakeLists.linux.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-avx2) +target_link_libraries(libs-base64-avx2 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mavx2 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mavx2 + -std=c11 +) diff --git a/contrib/libs/base64/avx2/CMakeLists.txt b/contrib/libs/base64/avx2/CMakeLists.txt index 085333714b..3e0811fb22 100644 --- a/contrib/libs/base64/avx2/CMakeLists.txt +++ b/contrib/libs/base64/avx2/CMakeLists.txt @@ -6,30 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-base64-avx2) -target_link_libraries(libs-base64-avx2 PUBLIC - contrib-libs-cxxsupp -) -target_sources(libs-base64-avx2 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/codec_avx2.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mavx2 - -std=c11 -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/avx2/lib.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mavx2 - -std=c11 -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/base64/neon64/CMakeLists.darwin.txt b/contrib/libs/base64/neon64/CMakeLists.darwin.txt new file mode 100644 index 0000000000..0f8d09e758 --- /dev/null +++ b/contrib/libs/base64/neon64/CMakeLists.darwin.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-neon64) +target_link_libraries(libs-base64-neon64 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-neon64 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/codec_neon64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/lib.c +) diff --git a/contrib/libs/base64/neon64/CMakeLists.linux-aarch64.txt b/contrib/libs/base64/neon64/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..fc66af243b --- /dev/null +++ b/contrib/libs/base64/neon64/CMakeLists.linux-aarch64.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-neon64) +target_link_libraries(libs-base64-neon64 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-neon64 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/codec_neon64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/codec_neon64.c + APPEND + PROPERTY + COMPILE_OPTIONS + -march=armv8-a + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -march=armv8-a + -std=c11 +) diff --git a/contrib/libs/base64/neon64/CMakeLists.linux.txt b/contrib/libs/base64/neon64/CMakeLists.linux.txt new file mode 100644 index 0000000000..0f8d09e758 --- /dev/null +++ b/contrib/libs/base64/neon64/CMakeLists.linux.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-neon64) +target_link_libraries(libs-base64-neon64 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-neon64 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/codec_neon64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/lib.c +) diff --git a/contrib/libs/base64/neon64/CMakeLists.txt b/contrib/libs/base64/neon64/CMakeLists.txt index 0f8d09e758..3e0811fb22 100644 --- a/contrib/libs/base64/neon64/CMakeLists.txt +++ b/contrib/libs/base64/neon64/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-base64-neon64) -target_link_libraries(libs-base64-neon64 PUBLIC - contrib-libs-cxxsupp -) -target_sources(libs-base64-neon64 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/codec_neon64.c - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/neon64/lib.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/base64/ssse3/CMakeLists.darwin.txt b/contrib/libs/base64/ssse3/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b8150d469c --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.darwin.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt b/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..dc101b6932 --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.linux.txt b/contrib/libs/base64/ssse3/CMakeLists.linux.txt new file mode 100644 index 0000000000..b8150d469c --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.linux.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.txt b/contrib/libs/base64/ssse3/CMakeLists.txt index b8150d469c..3e0811fb22 100644 --- a/contrib/libs/base64/ssse3/CMakeLists.txt +++ b/contrib/libs/base64/ssse3/CMakeLists.txt @@ -6,30 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-base64-ssse3) -target_link_libraries(libs-base64-ssse3 PUBLIC - contrib-libs-cxxsupp -) -target_sources(libs-base64-ssse3 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mssse3 - -std=c11 -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mssse3 - -std=c11 -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/cctz/CMakeLists.linux-aarch64.txt b/contrib/libs/cctz/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..01e6420897 --- /dev/null +++ b/contrib/libs/cctz/CMakeLists.linux-aarch64.txt @@ -0,0 +1,32 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(tzdata) + +add_library(contrib-libs-cctz) +target_compile_options(contrib-libs-cctz PRIVATE + -Wno-everything +) +target_include_directories(contrib-libs-cctz PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/include +) +target_link_libraries(contrib-libs-cctz PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-cctz PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/civil_time_detail.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_fixed.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_format.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_if.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_impl.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_info.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_libc.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_lookup.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/time_zone_posix.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/cctz/src/zone_info_source.cc +) diff --git a/contrib/libs/cctz/CMakeLists.txt b/contrib/libs/cctz/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/cctz/CMakeLists.txt +++ b/contrib/libs/cctz/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/crcutil/CMakeLists.darwin.txt b/contrib/libs/crcutil/CMakeLists.darwin.txt new file mode 100644 index 0000000000..4d458c863d --- /dev/null +++ b/contrib/libs/crcutil/CMakeLists.darwin.txt @@ -0,0 +1,34 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-crcutil) +target_compile_options(contrib-libs-crcutil PRIVATE + -DCRCUTIL_USE_MM_CRC32=1 + -Wno-everything +) +target_link_libraries(contrib-libs-crcutil PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-crcutil PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_128_64_gcc_amd64_sse2.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_amd64_asm.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/interface.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_intrinsic_i386_mmx.cc +) +target_sources_custom(contrib-libs-crcutil + .sse4 + SRCS + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/crc32c_sse4.cc + CUSTOM_FLAGS + -msse4.1 + -msse4.2 + -mpopcnt + -mcx16 +) diff --git a/contrib/libs/crcutil/CMakeLists.linux-aarch64.txt b/contrib/libs/crcutil/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..78fc1df27f --- /dev/null +++ b/contrib/libs/crcutil/CMakeLists.linux-aarch64.txt @@ -0,0 +1,20 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-crcutil) +target_compile_options(contrib-libs-crcutil PRIVATE + -Wno-everything +) +target_link_libraries(contrib-libs-crcutil PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-crcutil PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/interface.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_intrinsic_i386_mmx.cc +) diff --git a/contrib/libs/crcutil/CMakeLists.linux.txt b/contrib/libs/crcutil/CMakeLists.linux.txt new file mode 100644 index 0000000000..4d458c863d --- /dev/null +++ b/contrib/libs/crcutil/CMakeLists.linux.txt @@ -0,0 +1,34 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-crcutil) +target_compile_options(contrib-libs-crcutil PRIVATE + -DCRCUTIL_USE_MM_CRC32=1 + -Wno-everything +) +target_link_libraries(contrib-libs-crcutil PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-crcutil PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_128_64_gcc_amd64_sse2.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_amd64_asm.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/interface.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_intrinsic_i386_mmx.cc +) +target_sources_custom(contrib-libs-crcutil + .sse4 + SRCS + ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/crc32c_sse4.cc + CUSTOM_FLAGS + -msse4.1 + -msse4.2 + -mpopcnt + -mcx16 +) diff --git a/contrib/libs/crcutil/CMakeLists.txt b/contrib/libs/crcutil/CMakeLists.txt index 4d458c863d..3e0811fb22 100644 --- a/contrib/libs/crcutil/CMakeLists.txt +++ b/contrib/libs/crcutil/CMakeLists.txt @@ -6,29 +6,10 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-crcutil) -target_compile_options(contrib-libs-crcutil PRIVATE - -DCRCUTIL_USE_MM_CRC32=1 - -Wno-everything -) -target_link_libraries(contrib-libs-crcutil PUBLIC - contrib-libs-cxxsupp -) -target_sources(contrib-libs-crcutil PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_128_64_gcc_amd64_sse2.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_amd64_asm.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/interface.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_intrinsic_i386_mmx.cc -) -target_sources_custom(contrib-libs-crcutil - .sse4 - SRCS - ${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/crc32c_sse4.cc - CUSTOM_FLAGS - -msse4.1 - -msse4.2 - -mpopcnt - -mcx16 -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/curl/CMakeLists.linux-aarch64.txt b/contrib/libs/curl/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..02e21e69af --- /dev/null +++ b/contrib/libs/curl/CMakeLists.linux-aarch64.txt @@ -0,0 +1,189 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) +find_package(ZLIB REQUIRED) +find_package(c-ares REQUIRED) + +add_library(contrib-libs-curl) +target_compile_options(contrib-libs-curl PUBLIC + -DCURL_STATICLIB +) +target_compile_options(contrib-libs-curl PRIVATE + -DBUILDING_LIBCURL + -DHAVE_CONFIG_H + -DARCADIA_CURL_DNS_RESOLVER_ARES + -Wno-everything +) +target_include_directories(contrib-libs-curl PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/include +) +target_include_directories(contrib-libs-curl PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib +) +target_link_libraries(contrib-libs-curl PUBLIC + contrib-libs-libc_compat + OpenSSL::OpenSSL + ZLIB::ZLIB + contrib-libs-nghttp2 + c-ares::c-ares +) +target_sources(contrib-libs-curl PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/altsvc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/amigaos.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/asyn-ares.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/asyn-thread.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/base64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/bufref.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/c-hyper.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/conncache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/connect.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/content_encoding.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/cookie.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_addrinfo.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ctype.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_des.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_endian.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_fnmatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_get_line.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_gethostname.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_gssapi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_memrchr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_multibyte.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ntlm_core.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ntlm_wb.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_path.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_range.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_rtmp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_sasl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_threads.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/doh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dotdot.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dynbuf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easygetopt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easyoptions.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/escape.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/file.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/fileinfo.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/fopen.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/formdata.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ftp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ftplistparser.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/getenv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/getinfo.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/gopher.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/h2h3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hash.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/headers.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hmac.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostasyn.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip4.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip6.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostsyn.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hsts.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_aws_sigv4.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_chunks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_digest.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_negotiate.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_ntlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_proxy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/idn_win32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/if2ip.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/imap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/inet_ntop.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/inet_pton.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/krb5.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ldap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/llist.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/md4.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/md5.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/memdebug.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mprintf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mqtt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/multi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/netrc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/nonblock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/openldap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/parsedate.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/pingpong.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/pop3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/progress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/psl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rand.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rename.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rtsp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/select.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/sendf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/setopt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/sha256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/share.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/slist.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/smb.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/smtp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socketpair.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks_gssapi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/speedcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/splay.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strcase.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strdup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strerror.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strtok.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strtoofft.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/system_win32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/telnet.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/tftp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/timediff.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/timeval.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/transfer.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/url.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/urlapi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/cleartext.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/cram.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/digest.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/digest_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/gsasl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/krb5_gssapi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/krb5_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/ntlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/ntlm_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/oauth2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/spnego_gssapi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/spnego_sspi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/vauth.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/version_win32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/msh3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/ngtcp2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/quiche.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/vquic.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/libssh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/libssh2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/wolfssh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/bearssl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/hostcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/keylog.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/mbedtls_threadlock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/openssl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/rustls.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/sectransp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/vtls.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/wolfssl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/x509asn1.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/warnless.c + ${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/wildcard.c +) diff --git a/contrib/libs/curl/CMakeLists.txt b/contrib/libs/curl/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/curl/CMakeLists.txt +++ b/contrib/libs/curl/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..d2753ebe29 --- /dev/null +++ b/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt @@ -0,0 +1,62 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-cxxsupp-builtins) +target_compile_options(libs-cxxsupp-builtins PRIVATE + -Wno-everything +) +target_sources(libs-cxxsupp-builtins PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/addtf3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/ashlti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/clzti2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/comparetf2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/divdc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/divsc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/divtf3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/divti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/divxc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/extenddftf2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/extendsftf2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixdfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixsfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixtfdi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixtfsi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunsdfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunssfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunstfdi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunstfsi.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunstfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/fixunsxfti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatditf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatsitf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floattidf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floattisf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatunditf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatunsitf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatuntidf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/floatuntisf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/gcc_personality_v0.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/int_util.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/lshrti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/modti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/muldc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/muloti4.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/mulsc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/multf3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/mulxc3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/popcountdi2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/subtf3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/trunctfdf2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/trunctfsf2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/udivmodti4.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/udivti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/umodti3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/clear_cache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/multc3.c +) diff --git a/contrib/libs/cxxsupp/builtins/CMakeLists.txt b/contrib/libs/cxxsupp/builtins/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/cxxsupp/builtins/CMakeLists.txt +++ b/contrib/libs/cxxsupp/builtins/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/cxxsupp/builtins/clear_cache.c b/contrib/libs/cxxsupp/builtins/clear_cache.c new file mode 100644 index 0000000000..8eec068939 --- /dev/null +++ b/contrib/libs/cxxsupp/builtins/clear_cache.c @@ -0,0 +1,159 @@ +/* ===-- clear_cache.c - Implement __clear_cache ---------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + */ + +#include "int_lib.h" +#include <stddef.h> + +#if __APPLE__ + #include <libkern/OSCacheControl.h> +#endif +#if (defined(__FreeBSD__) || defined(__Bitrig__)) && defined(__arm__) + #include <sys/types.h> + #include <machine/sysarch.h> +#endif + +#if defined(__NetBSD__) && defined(__arm__) + #include <machine/sysarch.h> +#endif + +#if defined(__mips__) + #include <sys/cachectl.h> + #include <sys/syscall.h> + #include <unistd.h> + #if defined(__ANDROID__) && defined(__LP64__) + /* + * clear_mips_cache - Invalidates instruction cache for Mips. + */ + static void clear_mips_cache(const void* Addr, size_t Size) { + asm volatile ( + ".set push\n" + ".set noreorder\n" + ".set noat\n" + "beq %[Size], $zero, 20f\n" /* If size == 0, branch around. */ + "nop\n" + "daddu %[Size], %[Addr], %[Size]\n" /* Calculate end address + 1 */ + "rdhwr $v0, $1\n" /* Get step size for SYNCI. + $1 is $HW_SYNCI_Step */ + "beq $v0, $zero, 20f\n" /* If no caches require + synchronization, branch + around. */ + "nop\n" + "10:\n" + "synci 0(%[Addr])\n" /* Synchronize all caches around + address. */ + "daddu %[Addr], %[Addr], $v0\n" /* Add step size. */ + "sltu $at, %[Addr], %[Size]\n" /* Compare current with end + address. */ + "bne $at, $zero, 10b\n" /* Branch if more to do. */ + "nop\n" + "sync\n" /* Clear memory hazards. */ + "20:\n" + "bal 30f\n" + "nop\n" + "30:\n" + "daddiu $ra, $ra, 12\n" /* $ra has a value of $pc here. + Add offset of 12 to point to the + instruction after the last nop. + */ + "jr.hb $ra\n" /* Return, clearing instruction + hazards. */ + "nop\n" + ".set pop\n" + : [Addr] "+r"(Addr), [Size] "+r"(Size) + :: "at", "ra", "v0", "memory" + ); + } + #endif +#endif + +#if defined(__ANDROID__) && defined(__arm__) + #include <asm/unistd.h> +#endif + +/* + * The compiler generates calls to __clear_cache() when creating + * trampoline functions on the stack for use with nested functions. + * It is expected to invalidate the instruction cache for the + * specified range. + */ + +void __clear_cache(void *start, void *end) { +#if __i386__ || __x86_64__ +/* + * Intel processors have a unified instruction and data cache + * so there is nothing to do + */ +#elif defined(__arm__) && !defined(__APPLE__) + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__Bitrig__) + struct arm_sync_icache_args arg; + + arg.addr = (uintptr_t)start; + arg.len = (uintptr_t)end - (uintptr_t)start; + + sysarch(ARM_SYNC_ICACHE, &arg); + #elif defined(__ANDROID__) + int start_reg __asm("r0") = (int) (intptr_t) start; + const register int end_reg __asm("r1") = (int) (intptr_t) end; + const register int flags __asm("r2") = 0; + const register int syscall_nr __asm("r7") = __ARM_NR_cacheflush; + __asm __volatile("svc 0x0" : "=r"(start_reg) + : "r"(syscall_nr), "r"(start_reg), "r"(end_reg), "r"(flags) : "r0"); + if (start_reg != 0) { + compilerrt_abort(); + } + #else + compilerrt_abort(); + #endif +#elif defined(__mips__) + const uintptr_t start_int = (uintptr_t) start; + const uintptr_t end_int = (uintptr_t) end; + #if defined(__ANDROID__) && defined(__LP64__) + // Call synci implementation for short address range. + const uintptr_t address_range_limit = 256; + if ((end_int - start_int) <= address_range_limit) { + clear_mips_cache(start, (end_int - start_int)); + } else { + syscall(__NR_cacheflush, start, (end_int - start_int), BCACHE); + } + #else + syscall(__NR_cacheflush, start, (end_int - start_int), BCACHE); + #endif +#elif defined(__aarch64__) && !defined(__APPLE__) + uint64_t xstart = (uint64_t)(uintptr_t) start; + uint64_t xend = (uint64_t)(uintptr_t) end; + uint64_t addr; + + // Get Cache Type Info + uint64_t ctr_el0; + __asm __volatile("mrs %0, ctr_el0" : "=r"(ctr_el0)); + + /* + * dc & ic instructions must use 64bit registers so we don't use + * uintptr_t in case this runs in an IPL32 environment. + */ + const size_t dcache_line_size = 4 << ((ctr_el0 >> 16) & 15); + for (addr = xstart; addr < xend; addr += dcache_line_size) + __asm __volatile("dc cvau, %0" :: "r"(addr)); + __asm __volatile("dsb ish"); + + const size_t icache_line_size = 4 << ((ctr_el0 >> 0) & 15); + for (addr = xstart; addr < xend; addr += icache_line_size) + __asm __volatile("ic ivau, %0" :: "r"(addr)); + __asm __volatile("isb sy"); +#else + #if __APPLE__ + /* On Darwin, sys_icache_invalidate() provides this functionality */ + sys_icache_invalidate(start, end-start); + #else + compilerrt_abort(); + #endif +#endif +} + diff --git a/contrib/libs/cxxsupp/builtins/multc3.c b/contrib/libs/cxxsupp/builtins/multc3.c new file mode 100644 index 0000000000..0518bc2569 --- /dev/null +++ b/contrib/libs/cxxsupp/builtins/multc3.c @@ -0,0 +1,68 @@ +/* ===-- multc3.c - Implement __multc3 -------------------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===----------------------------------------------------------------------=== + * + * This file implements __multc3 for the compiler_rt library. + * + * ===----------------------------------------------------------------------=== + */ + +#include "int_lib.h" +#include "int_math.h" + +/* Returns: the product of a + ib and c + id */ + +COMPILER_RT_ABI long double _Complex +__multc3(long double a, long double b, long double c, long double d) +{ + long double ac = a * c; + long double bd = b * d; + long double ad = a * d; + long double bc = b * c; + long double _Complex z; + __real__ z = ac - bd; + __imag__ z = ad + bc; + if (crt_isnan(__real__ z) && crt_isnan(__imag__ z)) { + int recalc = 0; + if (crt_isinf(a) || crt_isinf(b)) { + a = crt_copysignl(crt_isinf(a) ? 1 : 0, a); + b = crt_copysignl(crt_isinf(b) ? 1 : 0, b); + if (crt_isnan(c)) + c = crt_copysignl(0, c); + if (crt_isnan(d)) + d = crt_copysignl(0, d); + recalc = 1; + } + if (crt_isinf(c) || crt_isinf(d)) { + c = crt_copysignl(crt_isinf(c) ? 1 : 0, c); + d = crt_copysignl(crt_isinf(d) ? 1 : 0, d); + if (crt_isnan(a)) + a = crt_copysignl(0, a); + if (crt_isnan(b)) + b = crt_copysignl(0, b); + recalc = 1; + } + if (!recalc && (crt_isinf(ac) || crt_isinf(bd) || + crt_isinf(ad) || crt_isinf(bc))) { + if (crt_isnan(a)) + a = crt_copysignl(0, a); + if (crt_isnan(b)) + b = crt_copysignl(0, b); + if (crt_isnan(c)) + c = crt_copysignl(0, c); + if (crt_isnan(d)) + d = crt_copysignl(0, d); + recalc = 1; + } + if (recalc) { + __real__ z = CRT_INFINITY * (a * c - b * d); + __imag__ z = CRT_INFINITY * (a * d + b * c); + } + } + return z; +} diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b5c3cdc400 --- /dev/null +++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt @@ -0,0 +1,36 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-cxxsupp-libcxxabi-parts) +target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC + -nostdinc++ +) +target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE + -D_LIBCXXABI_BUILDING_LIBRARY + -Wno-everything +) +target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx +) +target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + APPEND + PROPERTY + COMPILE_OPTIONS + -fPIC + -fno-lto +) diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..b23a1c1005 --- /dev/null +++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt @@ -0,0 +1,35 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-cxxsupp-libcxxabi-parts) +target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC + -nostdinc++ +) +target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE + -D_LIBCXXABI_BUILDING_LIBRARY + -Wno-everything +) +target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx +) +target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + APPEND + PROPERTY + COMPILE_OPTIONS + -fno-lto +) diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt new file mode 100644 index 0000000000..b5c3cdc400 --- /dev/null +++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt @@ -0,0 +1,36 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-cxxsupp-libcxxabi-parts) +target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC + -nostdinc++ +) +target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE + -D_LIBCXXABI_BUILDING_LIBRARY + -Wno-everything +) +target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx +) +target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp + APPEND + PROPERTY + COMPILE_OPTIONS + -fPIC + -fno-lto +) diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt index b5c3cdc400..3e0811fb22 100644 --- a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt +++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt @@ -6,31 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-cxxsupp-libcxxabi-parts) -target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC - -nostdinc++ -) -target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE - -D_LIBCXXABI_BUILDING_LIBRARY - -Wno-everything -) -target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx -) -target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp - APPEND - PROPERTY - COMPILE_OPTIONS - -fPIC - -fno-lto -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/highwayhash/CMakeLists.darwin.txt b/contrib/libs/highwayhash/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b8b5c58b9f --- /dev/null +++ b/contrib/libs/highwayhash/CMakeLists.darwin.txt @@ -0,0 +1,33 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(arch) + +add_library(contrib-libs-highwayhash) +target_compile_options(contrib-libs-highwayhash PRIVATE + -Wno-everything +) +target_include_directories(contrib-libs-highwayhash PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(contrib-libs-highwayhash PUBLIC + contrib-libs-cxxsupp + yutil + highwayhash-arch-avx2 + highwayhash-arch-sse41 +) +target_sources(contrib-libs-highwayhash PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/arch_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/instruction_sets.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/nanobenchmark.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/os_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/scalar_sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_portable.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/c_bindings.cc +) diff --git a/contrib/libs/highwayhash/CMakeLists.linux-aarch64.txt b/contrib/libs/highwayhash/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..e06cd5cc9d --- /dev/null +++ b/contrib/libs/highwayhash/CMakeLists.linux-aarch64.txt @@ -0,0 +1,31 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-highwayhash) +target_compile_options(contrib-libs-highwayhash PRIVATE + -Wno-everything +) +target_include_directories(contrib-libs-highwayhash PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(contrib-libs-highwayhash PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(contrib-libs-highwayhash PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/arch_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/instruction_sets.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/nanobenchmark.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/os_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/scalar_sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_portable.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/c_bindings.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_tree_hash.cc +) diff --git a/contrib/libs/highwayhash/CMakeLists.linux.txt b/contrib/libs/highwayhash/CMakeLists.linux.txt new file mode 100644 index 0000000000..b8b5c58b9f --- /dev/null +++ b/contrib/libs/highwayhash/CMakeLists.linux.txt @@ -0,0 +1,33 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(arch) + +add_library(contrib-libs-highwayhash) +target_compile_options(contrib-libs-highwayhash PRIVATE + -Wno-everything +) +target_include_directories(contrib-libs-highwayhash PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(contrib-libs-highwayhash PUBLIC + contrib-libs-cxxsupp + yutil + highwayhash-arch-avx2 + highwayhash-arch-sse41 +) +target_sources(contrib-libs-highwayhash PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/arch_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/instruction_sets.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/nanobenchmark.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/os_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/scalar_sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_portable.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/c_bindings.cc +) diff --git a/contrib/libs/highwayhash/CMakeLists.txt b/contrib/libs/highwayhash/CMakeLists.txt index b8b5c58b9f..3e0811fb22 100644 --- a/contrib/libs/highwayhash/CMakeLists.txt +++ b/contrib/libs/highwayhash/CMakeLists.txt @@ -6,28 +6,10 @@ # original buildsystem will not be accepted. -add_subdirectory(arch) - -add_library(contrib-libs-highwayhash) -target_compile_options(contrib-libs-highwayhash PRIVATE - -Wno-everything -) -target_include_directories(contrib-libs-highwayhash PUBLIC - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash -) -target_link_libraries(contrib-libs-highwayhash PUBLIC - contrib-libs-cxxsupp - yutil - highwayhash-arch-avx2 - highwayhash-arch-sse41 -) -target_sources(contrib-libs-highwayhash PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/arch_specific.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/instruction_sets.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/nanobenchmark.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/os_specific.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_hash.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/scalar_sip_tree_hash.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_portable.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/c_bindings.cc -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/highwayhash/arch/CMakeLists.darwin.txt b/contrib/libs/highwayhash/arch/CMakeLists.darwin.txt new file mode 100644 index 0000000000..fc6e7a4a0e --- /dev/null +++ b/contrib/libs/highwayhash/arch/CMakeLists.darwin.txt @@ -0,0 +1,10 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(avx2) +add_subdirectory(sse41) diff --git a/contrib/libs/highwayhash/arch/CMakeLists.linux.txt b/contrib/libs/highwayhash/arch/CMakeLists.linux.txt new file mode 100644 index 0000000000..fc6e7a4a0e --- /dev/null +++ b/contrib/libs/highwayhash/arch/CMakeLists.linux.txt @@ -0,0 +1,10 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(avx2) +add_subdirectory(sse41) diff --git a/contrib/libs/highwayhash/arch/CMakeLists.txt b/contrib/libs/highwayhash/arch/CMakeLists.txt index fc6e7a4a0e..79468a5d8d 100644 --- a/contrib/libs/highwayhash/arch/CMakeLists.txt +++ b/contrib/libs/highwayhash/arch/CMakeLists.txt @@ -6,5 +6,8 @@ # original buildsystem will not be accepted. -add_subdirectory(avx2) -add_subdirectory(sse41) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/highwayhash/arch/avx2/CMakeLists.darwin.txt b/contrib/libs/highwayhash/arch/avx2/CMakeLists.darwin.txt new file mode 100644 index 0000000000..2ecfdace3b --- /dev/null +++ b/contrib/libs/highwayhash/arch/avx2/CMakeLists.darwin.txt @@ -0,0 +1,25 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(highwayhash-arch-avx2) +target_compile_options(highwayhash-arch-avx2 PRIVATE + -mavx2 + -Wno-everything +) +target_include_directories(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-avx2 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_avx2.cc +) diff --git a/contrib/libs/highwayhash/arch/avx2/CMakeLists.linux.txt b/contrib/libs/highwayhash/arch/avx2/CMakeLists.linux.txt new file mode 100644 index 0000000000..2ecfdace3b --- /dev/null +++ b/contrib/libs/highwayhash/arch/avx2/CMakeLists.linux.txt @@ -0,0 +1,25 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(highwayhash-arch-avx2) +target_compile_options(highwayhash-arch-avx2 PRIVATE + -mavx2 + -Wno-everything +) +target_include_directories(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-avx2 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_avx2.cc +) diff --git a/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt b/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt index 2ecfdace3b..79468a5d8d 100644 --- a/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt +++ b/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt @@ -6,20 +6,8 @@ # original buildsystem will not be accepted. - -add_library(highwayhash-arch-avx2) -target_compile_options(highwayhash-arch-avx2 PRIVATE - -mavx2 - -Wno-everything -) -target_include_directories(highwayhash-arch-avx2 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash -) -target_link_libraries(highwayhash-arch-avx2 PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(highwayhash-arch-avx2 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_tree_hash.cc - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_avx2.cc -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/highwayhash/arch/sse41/CMakeLists.darwin.txt b/contrib/libs/highwayhash/arch/sse41/CMakeLists.darwin.txt new file mode 100644 index 0000000000..bd22fba25f --- /dev/null +++ b/contrib/libs/highwayhash/arch/sse41/CMakeLists.darwin.txt @@ -0,0 +1,24 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(highwayhash-arch-sse41) +target_compile_options(highwayhash-arch-sse41 PRIVATE + -msse4.1 + -Wno-everything +) +target_include_directories(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-sse41 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_sse41.cc +) diff --git a/contrib/libs/highwayhash/arch/sse41/CMakeLists.linux.txt b/contrib/libs/highwayhash/arch/sse41/CMakeLists.linux.txt new file mode 100644 index 0000000000..bd22fba25f --- /dev/null +++ b/contrib/libs/highwayhash/arch/sse41/CMakeLists.linux.txt @@ -0,0 +1,24 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(highwayhash-arch-sse41) +target_compile_options(highwayhash-arch-sse41 PRIVATE + -msse4.1 + -Wno-everything +) +target_include_directories(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-sse41 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_sse41.cc +) diff --git a/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt b/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt index bd22fba25f..79468a5d8d 100644 --- a/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt +++ b/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt @@ -6,19 +6,8 @@ # original buildsystem will not be accepted. - -add_library(highwayhash-arch-sse41) -target_compile_options(highwayhash-arch-sse41 PRIVATE - -msse4.1 - -Wno-everything -) -target_include_directories(highwayhash-arch-sse41 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash -) -target_link_libraries(highwayhash-arch-sse41 PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(highwayhash-arch-sse41 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_sse41.cc -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/hyperscan/runtime_avx2/CMakeLists.darwin.txt b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.darwin.txt new file mode 100644 index 0000000000..03290e1358 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.darwin.txt @@ -0,0 +1,487 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx2) +target_compile_options(libs-hyperscan-runtime_avx2 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -mpopcnt + -DHAVE_POPCOUNT_INSTR + -mavx + -DHAVE_AVX + -mavx2 + -mfma + -mbmi + -mbmi2 + -DHAVE_AVX2 + -DCrc32c_ComputeBuf=avx2_Crc32c_ComputeBuf + -DblockInitSufPQ=avx2_blockInitSufPQ + -Dcompress_stream=avx2_compress_stream + -Dcpuid_flags=avx2_cpuid_flags + -Dcpuid_tune=avx2_cpuid_tune + -DdbIsValid=avx2_dbIsValid + -DdoAccel128=avx2_doAccel128 + -DdoAccel256=avx2_doAccel256 + -DdoAccel32=avx2_doAccel32 + -DdoAccel384=avx2_doAccel384 + -DdoAccel512=avx2_doAccel512 + -DdoAccel64=avx2_doAccel64 + -Dexpand_stream=avx2_expand_stream + -DfdrExec=avx2_fdrExec + -DfdrExecStreaming=avx2_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx2_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx2_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx2_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx2_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx2_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx2_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx2_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx2_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx2_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx2_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx2_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx2_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx2_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx2_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx2_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx2_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx2_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx2_flushStoredSomMatches_i + -DhandleSomExternal=avx2_handleSomExternal + -DhandleSomInternal=avx2_handleSomInternal + -Dhs_alloc_scratch=avx2_hs_alloc_scratch + -Dhs_clone_scratch=avx2_hs_clone_scratch + -Dhs_close_stream=avx2_hs_close_stream + -Dhs_compress_stream=avx2_hs_compress_stream + -Dhs_copy_stream=avx2_hs_copy_stream + -Dhs_database_alloc=avx2_hs_database_alloc + -Dhs_database_free=avx2_hs_database_free + -Dhs_database_info=avx2_hs_database_info + -Dhs_database_size=avx2_hs_database_size + -Dhs_deserialize_database=avx2_hs_deserialize_database + -Dhs_deserialize_database_at=avx2_hs_deserialize_database_at + -Dhs_expand_stream=avx2_hs_expand_stream + -Dhs_free_database=avx2_hs_free_database + -Dhs_free_scratch=avx2_hs_free_scratch + -Dhs_misc_alloc=avx2_hs_misc_alloc + -Dhs_misc_free=avx2_hs_misc_free + -Dhs_open_stream=avx2_hs_open_stream + -Dhs_reset_and_copy_stream=avx2_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx2_hs_reset_and_expand_stream + -Dhs_reset_stream=avx2_hs_reset_stream + -Dhs_scan=avx2_hs_scan + -Dhs_scan_stream=avx2_hs_scan_stream + -Dhs_scan_vector=avx2_hs_scan_vector + -Dhs_scratch_alloc=avx2_hs_scratch_alloc + -Dhs_scratch_free=avx2_hs_scratch_free + -Dhs_scratch_size=avx2_hs_scratch_size + -Dhs_serialize_database=avx2_hs_serialize_database + -Dhs_serialized_database_info=avx2_hs_serialized_database_info + -Dhs_serialized_database_size=avx2_hs_serialized_database_size + -Dhs_set_allocator=avx2_hs_set_allocator + -Dhs_set_database_allocator=avx2_hs_set_database_allocator + -Dhs_set_misc_allocator=avx2_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx2_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx2_hs_set_stream_allocator + -Dhs_stream_alloc=avx2_hs_stream_alloc + -Dhs_stream_free=avx2_hs_stream_free + -Dhs_stream_size=avx2_hs_stream_size + -Dhs_valid_platform=avx2_hs_valid_platform + -Dhs_version=avx2_hs_version + -DhwlmExec=avx2_hwlmExec + -DhwlmExecStreaming=avx2_hwlmExecStreaming + -DloadSomFromStream=avx2_loadSomFromStream + -Dloadcompressed128=avx2_loadcompressed128 + -Dloadcompressed256=avx2_loadcompressed256 + -Dloadcompressed32=avx2_loadcompressed32 + -Dloadcompressed384=avx2_loadcompressed384 + -Dloadcompressed512=avx2_loadcompressed512 + -Dloadcompressed64=avx2_loadcompressed64 + -Dmcsheng_pext_mask=avx2_mcsheng_pext_mask + -Dmm_mask_mask=avx2_mm_mask_mask + -Dmm_shuffle_end=avx2_mm_shuffle_end + -Dmmbit_keyshift_lut=avx2_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx2_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx2_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx2_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx2_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx2_nfaBlockExecReverse + -DnfaCheckFinalState=avx2_nfaCheckFinalState + -DnfaExecCastle_Q=avx2_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx2_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx2_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx2_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx2_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx2_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx2_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx2_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx2_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx2_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx2_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx2_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx2_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx2_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx2_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx2_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx2_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx2_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx2_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx2_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx2_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx2_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx2_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx2_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx2_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx2_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx2_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx2_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx2_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx2_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx2_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx2_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx2_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx2_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx2_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx2_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx2_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx2_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx2_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx2_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx2_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx2_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx2_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx2_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx2_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx2_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx2_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx2_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx2_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx2_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx2_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx2_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx2_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx2_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx2_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx2_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx2_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx2_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx2_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx2_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx2_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx2_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx2_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx2_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx2_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx2_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx2_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx2_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx2_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx2_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx2_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx2_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx2_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx2_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx2_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx2_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx2_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx2_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx2_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx2_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx2_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx2_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx2_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx2_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx2_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx2_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx2_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx2_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx2_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx2_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx2_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx2_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx2_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx2_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx2_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx2_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx2_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx2_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx2_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx2_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx2_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx2_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx2_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx2_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx2_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx2_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx2_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx2_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx2_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx2_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx2_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx2_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx2_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx2_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx2_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx2_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx2_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx2_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx2_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx2_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx2_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx2_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx2_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx2_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx2_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx2_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx2_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx2_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx2_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx2_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx2_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx2_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx2_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx2_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx2_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx2_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx2_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx2_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx2_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx2_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx2_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx2_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx2_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx2_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx2_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx2_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx2_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx2_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx2_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx2_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx2_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx2_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx2_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx2_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx2_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx2_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx2_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx2_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx2_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx2_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx2_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx2_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx2_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx2_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx2_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx2_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx2_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx2_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx2_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx2_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx2_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx2_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx2_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx2_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx2_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx2_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx2_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx2_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx2_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx2_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx2_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx2_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx2_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx2_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx2_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx2_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx2_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx2_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx2_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx2_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx2_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx2_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx2_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx2_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx2_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx2_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx2_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx2_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx2_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx2_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx2_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx2_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx2_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx2_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx2_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx2_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx2_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx2_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx2_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx2_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx2_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx2_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx2_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx2_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx2_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx2_nfaExecSheng_B + -DnfaExecSheng_Q=avx2_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx2_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx2_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx2_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx2_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx2_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx2_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx2_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx2_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx2_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx2_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx2_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx2_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx2_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx2_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx2_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx2_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx2_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx2_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx2_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx2_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx2_nfaExecTamarama_zombie_status + -DnfaExpandState=avx2_nfaExpandState + -DnfaGetZombieStatus=avx2_nfaGetZombieStatus + -DnfaInAcceptState=avx2_nfaInAcceptState + -DnfaInAnyAcceptState=avx2_nfaInAnyAcceptState + -DnfaInitCompressedState=avx2_nfaInitCompressedState + -DnfaQueueCompressState=avx2_nfaQueueCompressState + -DnfaQueueExec=avx2_nfaQueueExec + -DnfaQueueExec2_raw=avx2_nfaQueueExec2_raw + -DnfaQueueExecRose=avx2_nfaQueueExecRose + -DnfaQueueExecToMatch=avx2_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx2_nfaQueueExec_raw + -DnfaQueueInitState=avx2_nfaQueueInitState + -DnfaReportCurrentMatches=avx2_nfaReportCurrentMatches + -DnoodExec=avx2_noodExec + -DnoodExecStreaming=avx2_noodExecStreaming + -Dp_mask_arr=avx2_p_mask_arr + -Dp_mask_arr256=avx2_p_mask_arr256 + -DrepeatHasMatchBitmap=avx2_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx2_repeatHasMatchRange + -DrepeatHasMatchRing=avx2_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx2_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx2_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx2_repeatLastTopBitmap + -DrepeatLastTopRange=avx2_repeatLastTopRange + -DrepeatLastTopRing=avx2_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx2_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx2_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx2_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx2_repeatNextMatchRange + -DrepeatNextMatchRing=avx2_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx2_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx2_repeatNextMatchTrailer + -DrepeatPack=avx2_repeatPack + -DrepeatStoreBitmap=avx2_repeatStoreBitmap + -DrepeatStoreRange=avx2_repeatStoreRange + -DrepeatStoreRing=avx2_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx2_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx2_repeatStoreTrailer + -DrepeatUnpack=avx2_repeatUnpack + -DroseAnchoredCallback=avx2_roseAnchoredCallback + -DroseBlockExec=avx2_roseBlockExec + -DroseCallback=avx2_roseCallback + -DroseCatchUpAll=avx2_roseCatchUpAll + -DroseCatchUpMPV_i=avx2_roseCatchUpMPV_i + -DroseCatchUpSuf=avx2_roseCatchUpSuf + -DroseDelayRebuildCallback=avx2_roseDelayRebuildCallback + -DroseFloatingCallback=avx2_roseFloatingCallback + -DroseHandleChainMatch=avx2_roseHandleChainMatch + -DroseInitState=avx2_roseInitState + -DroseNfaAdaptor=avx2_roseNfaAdaptor + -DroseNfaEarliestSom=avx2_roseNfaEarliestSom + -DroseReportAdaptor=avx2_roseReportAdaptor + -DroseRunBoundaryProgram=avx2_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx2_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx2_roseRunLastFlushCombProgram + -DroseRunProgram=avx2_roseRunProgram + -DroseRunProgram_l=avx2_roseRunProgram_l + -DroseStreamEodExec=avx2_roseStreamEodExec + -DroseStreamExec=avx2_roseStreamExec + -DrshuftiExec=avx2_rshuftiExec + -DrtruffleExec=avx2_rtruffleExec + -Drun_accel=avx2_run_accel + -DsetSomFromSomAware=avx2_setSomFromSomAware + -DshuftiDoubleExec=avx2_shuftiDoubleExec + -DshuftiExec=avx2_shuftiExec + -Dsimd_onebit_masks=avx2_simd_onebit_masks + -Dsize_compress_stream=avx2_size_compress_stream + -DstoreSomToStream=avx2_storeSomToStream + -Dstorecompressed128=avx2_storecompressed128 + -Dstorecompressed256=avx2_storecompressed256 + -Dstorecompressed32=avx2_storecompressed32 + -Dstorecompressed384=avx2_storecompressed384 + -Dstorecompressed512=avx2_storecompressed512 + -Dstorecompressed64=avx2_storecompressed64 + -DstreamInitSufPQ=avx2_streamInitSufPQ + -DtruffleExec=avx2_truffleExec + -Dvbs_mask_data=avx2_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux-aarch64.txt b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..e872634b85 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux-aarch64.txt @@ -0,0 +1,479 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx2) +target_compile_options(libs-hyperscan-runtime_avx2 PRIVATE + -DHAVE_SSE41 + -DHAVE_SSE42 + -DHAVE_POPCOUNT_INSTR + -DHAVE_AVX + -DHAVE_AVX2 + -DCrc32c_ComputeBuf=avx2_Crc32c_ComputeBuf + -DblockInitSufPQ=avx2_blockInitSufPQ + -Dcompress_stream=avx2_compress_stream + -Dcpuid_flags=avx2_cpuid_flags + -Dcpuid_tune=avx2_cpuid_tune + -DdbIsValid=avx2_dbIsValid + -DdoAccel128=avx2_doAccel128 + -DdoAccel256=avx2_doAccel256 + -DdoAccel32=avx2_doAccel32 + -DdoAccel384=avx2_doAccel384 + -DdoAccel512=avx2_doAccel512 + -DdoAccel64=avx2_doAccel64 + -Dexpand_stream=avx2_expand_stream + -DfdrExec=avx2_fdrExec + -DfdrExecStreaming=avx2_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx2_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx2_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx2_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx2_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx2_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx2_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx2_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx2_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx2_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx2_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx2_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx2_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx2_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx2_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx2_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx2_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx2_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx2_flushStoredSomMatches_i + -DhandleSomExternal=avx2_handleSomExternal + -DhandleSomInternal=avx2_handleSomInternal + -Dhs_alloc_scratch=avx2_hs_alloc_scratch + -Dhs_clone_scratch=avx2_hs_clone_scratch + -Dhs_close_stream=avx2_hs_close_stream + -Dhs_compress_stream=avx2_hs_compress_stream + -Dhs_copy_stream=avx2_hs_copy_stream + -Dhs_database_alloc=avx2_hs_database_alloc + -Dhs_database_free=avx2_hs_database_free + -Dhs_database_info=avx2_hs_database_info + -Dhs_database_size=avx2_hs_database_size + -Dhs_deserialize_database=avx2_hs_deserialize_database + -Dhs_deserialize_database_at=avx2_hs_deserialize_database_at + -Dhs_expand_stream=avx2_hs_expand_stream + -Dhs_free_database=avx2_hs_free_database + -Dhs_free_scratch=avx2_hs_free_scratch + -Dhs_misc_alloc=avx2_hs_misc_alloc + -Dhs_misc_free=avx2_hs_misc_free + -Dhs_open_stream=avx2_hs_open_stream + -Dhs_reset_and_copy_stream=avx2_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx2_hs_reset_and_expand_stream + -Dhs_reset_stream=avx2_hs_reset_stream + -Dhs_scan=avx2_hs_scan + -Dhs_scan_stream=avx2_hs_scan_stream + -Dhs_scan_vector=avx2_hs_scan_vector + -Dhs_scratch_alloc=avx2_hs_scratch_alloc + -Dhs_scratch_free=avx2_hs_scratch_free + -Dhs_scratch_size=avx2_hs_scratch_size + -Dhs_serialize_database=avx2_hs_serialize_database + -Dhs_serialized_database_info=avx2_hs_serialized_database_info + -Dhs_serialized_database_size=avx2_hs_serialized_database_size + -Dhs_set_allocator=avx2_hs_set_allocator + -Dhs_set_database_allocator=avx2_hs_set_database_allocator + -Dhs_set_misc_allocator=avx2_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx2_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx2_hs_set_stream_allocator + -Dhs_stream_alloc=avx2_hs_stream_alloc + -Dhs_stream_free=avx2_hs_stream_free + -Dhs_stream_size=avx2_hs_stream_size + -Dhs_valid_platform=avx2_hs_valid_platform + -Dhs_version=avx2_hs_version + -DhwlmExec=avx2_hwlmExec + -DhwlmExecStreaming=avx2_hwlmExecStreaming + -DloadSomFromStream=avx2_loadSomFromStream + -Dloadcompressed128=avx2_loadcompressed128 + -Dloadcompressed256=avx2_loadcompressed256 + -Dloadcompressed32=avx2_loadcompressed32 + -Dloadcompressed384=avx2_loadcompressed384 + -Dloadcompressed512=avx2_loadcompressed512 + -Dloadcompressed64=avx2_loadcompressed64 + -Dmcsheng_pext_mask=avx2_mcsheng_pext_mask + -Dmm_mask_mask=avx2_mm_mask_mask + -Dmm_shuffle_end=avx2_mm_shuffle_end + -Dmmbit_keyshift_lut=avx2_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx2_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx2_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx2_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx2_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx2_nfaBlockExecReverse + -DnfaCheckFinalState=avx2_nfaCheckFinalState + -DnfaExecCastle_Q=avx2_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx2_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx2_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx2_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx2_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx2_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx2_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx2_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx2_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx2_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx2_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx2_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx2_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx2_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx2_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx2_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx2_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx2_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx2_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx2_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx2_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx2_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx2_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx2_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx2_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx2_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx2_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx2_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx2_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx2_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx2_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx2_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx2_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx2_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx2_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx2_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx2_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx2_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx2_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx2_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx2_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx2_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx2_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx2_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx2_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx2_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx2_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx2_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx2_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx2_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx2_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx2_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx2_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx2_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx2_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx2_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx2_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx2_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx2_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx2_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx2_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx2_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx2_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx2_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx2_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx2_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx2_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx2_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx2_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx2_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx2_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx2_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx2_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx2_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx2_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx2_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx2_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx2_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx2_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx2_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx2_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx2_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx2_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx2_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx2_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx2_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx2_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx2_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx2_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx2_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx2_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx2_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx2_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx2_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx2_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx2_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx2_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx2_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx2_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx2_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx2_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx2_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx2_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx2_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx2_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx2_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx2_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx2_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx2_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx2_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx2_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx2_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx2_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx2_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx2_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx2_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx2_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx2_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx2_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx2_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx2_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx2_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx2_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx2_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx2_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx2_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx2_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx2_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx2_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx2_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx2_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx2_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx2_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx2_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx2_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx2_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx2_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx2_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx2_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx2_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx2_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx2_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx2_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx2_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx2_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx2_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx2_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx2_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx2_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx2_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx2_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx2_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx2_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx2_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx2_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx2_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx2_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx2_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx2_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx2_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx2_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx2_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx2_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx2_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx2_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx2_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx2_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx2_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx2_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx2_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx2_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx2_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx2_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx2_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx2_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx2_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx2_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx2_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx2_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx2_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx2_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx2_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx2_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx2_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx2_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx2_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx2_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx2_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx2_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx2_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx2_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx2_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx2_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx2_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx2_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx2_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx2_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx2_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx2_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx2_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx2_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx2_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx2_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx2_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx2_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx2_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx2_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx2_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx2_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx2_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx2_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx2_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx2_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx2_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx2_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx2_nfaExecSheng_B + -DnfaExecSheng_Q=avx2_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx2_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx2_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx2_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx2_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx2_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx2_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx2_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx2_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx2_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx2_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx2_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx2_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx2_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx2_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx2_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx2_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx2_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx2_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx2_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx2_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx2_nfaExecTamarama_zombie_status + -DnfaExpandState=avx2_nfaExpandState + -DnfaGetZombieStatus=avx2_nfaGetZombieStatus + -DnfaInAcceptState=avx2_nfaInAcceptState + -DnfaInAnyAcceptState=avx2_nfaInAnyAcceptState + -DnfaInitCompressedState=avx2_nfaInitCompressedState + -DnfaQueueCompressState=avx2_nfaQueueCompressState + -DnfaQueueExec=avx2_nfaQueueExec + -DnfaQueueExec2_raw=avx2_nfaQueueExec2_raw + -DnfaQueueExecRose=avx2_nfaQueueExecRose + -DnfaQueueExecToMatch=avx2_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx2_nfaQueueExec_raw + -DnfaQueueInitState=avx2_nfaQueueInitState + -DnfaReportCurrentMatches=avx2_nfaReportCurrentMatches + -DnoodExec=avx2_noodExec + -DnoodExecStreaming=avx2_noodExecStreaming + -Dp_mask_arr=avx2_p_mask_arr + -Dp_mask_arr256=avx2_p_mask_arr256 + -DrepeatHasMatchBitmap=avx2_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx2_repeatHasMatchRange + -DrepeatHasMatchRing=avx2_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx2_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx2_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx2_repeatLastTopBitmap + -DrepeatLastTopRange=avx2_repeatLastTopRange + -DrepeatLastTopRing=avx2_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx2_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx2_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx2_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx2_repeatNextMatchRange + -DrepeatNextMatchRing=avx2_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx2_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx2_repeatNextMatchTrailer + -DrepeatPack=avx2_repeatPack + -DrepeatStoreBitmap=avx2_repeatStoreBitmap + -DrepeatStoreRange=avx2_repeatStoreRange + -DrepeatStoreRing=avx2_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx2_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx2_repeatStoreTrailer + -DrepeatUnpack=avx2_repeatUnpack + -DroseAnchoredCallback=avx2_roseAnchoredCallback + -DroseBlockExec=avx2_roseBlockExec + -DroseCallback=avx2_roseCallback + -DroseCatchUpAll=avx2_roseCatchUpAll + -DroseCatchUpMPV_i=avx2_roseCatchUpMPV_i + -DroseCatchUpSuf=avx2_roseCatchUpSuf + -DroseDelayRebuildCallback=avx2_roseDelayRebuildCallback + -DroseFloatingCallback=avx2_roseFloatingCallback + -DroseHandleChainMatch=avx2_roseHandleChainMatch + -DroseInitState=avx2_roseInitState + -DroseNfaAdaptor=avx2_roseNfaAdaptor + -DroseNfaEarliestSom=avx2_roseNfaEarliestSom + -DroseReportAdaptor=avx2_roseReportAdaptor + -DroseRunBoundaryProgram=avx2_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx2_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx2_roseRunLastFlushCombProgram + -DroseRunProgram=avx2_roseRunProgram + -DroseRunProgram_l=avx2_roseRunProgram_l + -DroseStreamEodExec=avx2_roseStreamEodExec + -DroseStreamExec=avx2_roseStreamExec + -DrshuftiExec=avx2_rshuftiExec + -DrtruffleExec=avx2_rtruffleExec + -Drun_accel=avx2_run_accel + -DsetSomFromSomAware=avx2_setSomFromSomAware + -DshuftiDoubleExec=avx2_shuftiDoubleExec + -DshuftiExec=avx2_shuftiExec + -Dsimd_onebit_masks=avx2_simd_onebit_masks + -Dsize_compress_stream=avx2_size_compress_stream + -DstoreSomToStream=avx2_storeSomToStream + -Dstorecompressed128=avx2_storecompressed128 + -Dstorecompressed256=avx2_storecompressed256 + -Dstorecompressed32=avx2_storecompressed32 + -Dstorecompressed384=avx2_storecompressed384 + -Dstorecompressed512=avx2_storecompressed512 + -Dstorecompressed64=avx2_storecompressed64 + -DstreamInitSufPQ=avx2_streamInitSufPQ + -DtruffleExec=avx2_truffleExec + -Dvbs_mask_data=avx2_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux.txt b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux.txt new file mode 100644 index 0000000000..03290e1358 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.linux.txt @@ -0,0 +1,487 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx2) +target_compile_options(libs-hyperscan-runtime_avx2 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -mpopcnt + -DHAVE_POPCOUNT_INSTR + -mavx + -DHAVE_AVX + -mavx2 + -mfma + -mbmi + -mbmi2 + -DHAVE_AVX2 + -DCrc32c_ComputeBuf=avx2_Crc32c_ComputeBuf + -DblockInitSufPQ=avx2_blockInitSufPQ + -Dcompress_stream=avx2_compress_stream + -Dcpuid_flags=avx2_cpuid_flags + -Dcpuid_tune=avx2_cpuid_tune + -DdbIsValid=avx2_dbIsValid + -DdoAccel128=avx2_doAccel128 + -DdoAccel256=avx2_doAccel256 + -DdoAccel32=avx2_doAccel32 + -DdoAccel384=avx2_doAccel384 + -DdoAccel512=avx2_doAccel512 + -DdoAccel64=avx2_doAccel64 + -Dexpand_stream=avx2_expand_stream + -DfdrExec=avx2_fdrExec + -DfdrExecStreaming=avx2_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx2_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx2_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx2_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx2_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx2_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx2_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx2_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx2_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx2_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx2_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx2_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx2_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx2_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx2_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx2_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx2_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx2_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx2_flushStoredSomMatches_i + -DhandleSomExternal=avx2_handleSomExternal + -DhandleSomInternal=avx2_handleSomInternal + -Dhs_alloc_scratch=avx2_hs_alloc_scratch + -Dhs_clone_scratch=avx2_hs_clone_scratch + -Dhs_close_stream=avx2_hs_close_stream + -Dhs_compress_stream=avx2_hs_compress_stream + -Dhs_copy_stream=avx2_hs_copy_stream + -Dhs_database_alloc=avx2_hs_database_alloc + -Dhs_database_free=avx2_hs_database_free + -Dhs_database_info=avx2_hs_database_info + -Dhs_database_size=avx2_hs_database_size + -Dhs_deserialize_database=avx2_hs_deserialize_database + -Dhs_deserialize_database_at=avx2_hs_deserialize_database_at + -Dhs_expand_stream=avx2_hs_expand_stream + -Dhs_free_database=avx2_hs_free_database + -Dhs_free_scratch=avx2_hs_free_scratch + -Dhs_misc_alloc=avx2_hs_misc_alloc + -Dhs_misc_free=avx2_hs_misc_free + -Dhs_open_stream=avx2_hs_open_stream + -Dhs_reset_and_copy_stream=avx2_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx2_hs_reset_and_expand_stream + -Dhs_reset_stream=avx2_hs_reset_stream + -Dhs_scan=avx2_hs_scan + -Dhs_scan_stream=avx2_hs_scan_stream + -Dhs_scan_vector=avx2_hs_scan_vector + -Dhs_scratch_alloc=avx2_hs_scratch_alloc + -Dhs_scratch_free=avx2_hs_scratch_free + -Dhs_scratch_size=avx2_hs_scratch_size + -Dhs_serialize_database=avx2_hs_serialize_database + -Dhs_serialized_database_info=avx2_hs_serialized_database_info + -Dhs_serialized_database_size=avx2_hs_serialized_database_size + -Dhs_set_allocator=avx2_hs_set_allocator + -Dhs_set_database_allocator=avx2_hs_set_database_allocator + -Dhs_set_misc_allocator=avx2_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx2_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx2_hs_set_stream_allocator + -Dhs_stream_alloc=avx2_hs_stream_alloc + -Dhs_stream_free=avx2_hs_stream_free + -Dhs_stream_size=avx2_hs_stream_size + -Dhs_valid_platform=avx2_hs_valid_platform + -Dhs_version=avx2_hs_version + -DhwlmExec=avx2_hwlmExec + -DhwlmExecStreaming=avx2_hwlmExecStreaming + -DloadSomFromStream=avx2_loadSomFromStream + -Dloadcompressed128=avx2_loadcompressed128 + -Dloadcompressed256=avx2_loadcompressed256 + -Dloadcompressed32=avx2_loadcompressed32 + -Dloadcompressed384=avx2_loadcompressed384 + -Dloadcompressed512=avx2_loadcompressed512 + -Dloadcompressed64=avx2_loadcompressed64 + -Dmcsheng_pext_mask=avx2_mcsheng_pext_mask + -Dmm_mask_mask=avx2_mm_mask_mask + -Dmm_shuffle_end=avx2_mm_shuffle_end + -Dmmbit_keyshift_lut=avx2_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx2_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx2_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx2_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx2_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx2_nfaBlockExecReverse + -DnfaCheckFinalState=avx2_nfaCheckFinalState + -DnfaExecCastle_Q=avx2_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx2_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx2_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx2_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx2_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx2_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx2_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx2_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx2_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx2_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx2_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx2_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx2_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx2_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx2_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx2_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx2_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx2_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx2_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx2_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx2_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx2_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx2_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx2_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx2_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx2_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx2_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx2_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx2_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx2_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx2_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx2_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx2_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx2_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx2_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx2_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx2_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx2_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx2_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx2_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx2_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx2_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx2_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx2_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx2_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx2_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx2_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx2_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx2_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx2_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx2_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx2_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx2_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx2_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx2_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx2_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx2_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx2_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx2_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx2_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx2_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx2_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx2_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx2_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx2_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx2_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx2_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx2_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx2_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx2_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx2_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx2_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx2_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx2_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx2_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx2_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx2_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx2_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx2_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx2_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx2_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx2_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx2_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx2_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx2_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx2_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx2_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx2_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx2_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx2_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx2_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx2_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx2_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx2_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx2_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx2_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx2_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx2_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx2_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx2_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx2_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx2_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx2_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx2_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx2_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx2_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx2_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx2_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx2_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx2_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx2_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx2_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx2_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx2_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx2_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx2_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx2_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx2_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx2_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx2_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx2_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx2_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx2_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx2_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx2_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx2_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx2_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx2_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx2_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx2_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx2_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx2_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx2_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx2_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx2_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx2_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx2_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx2_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx2_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx2_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx2_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx2_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx2_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx2_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx2_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx2_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx2_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx2_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx2_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx2_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx2_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx2_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx2_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx2_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx2_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx2_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx2_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx2_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx2_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx2_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx2_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx2_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx2_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx2_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx2_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx2_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx2_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx2_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx2_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx2_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx2_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx2_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx2_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx2_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx2_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx2_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx2_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx2_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx2_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx2_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx2_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx2_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx2_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx2_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx2_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx2_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx2_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx2_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx2_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx2_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx2_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx2_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx2_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx2_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx2_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx2_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx2_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx2_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx2_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx2_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx2_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx2_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx2_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx2_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx2_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx2_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx2_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx2_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx2_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx2_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx2_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx2_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx2_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx2_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx2_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx2_nfaExecSheng_B + -DnfaExecSheng_Q=avx2_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx2_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx2_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx2_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx2_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx2_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx2_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx2_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx2_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx2_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx2_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx2_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx2_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx2_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx2_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx2_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx2_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx2_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx2_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx2_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx2_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx2_nfaExecTamarama_zombie_status + -DnfaExpandState=avx2_nfaExpandState + -DnfaGetZombieStatus=avx2_nfaGetZombieStatus + -DnfaInAcceptState=avx2_nfaInAcceptState + -DnfaInAnyAcceptState=avx2_nfaInAnyAcceptState + -DnfaInitCompressedState=avx2_nfaInitCompressedState + -DnfaQueueCompressState=avx2_nfaQueueCompressState + -DnfaQueueExec=avx2_nfaQueueExec + -DnfaQueueExec2_raw=avx2_nfaQueueExec2_raw + -DnfaQueueExecRose=avx2_nfaQueueExecRose + -DnfaQueueExecToMatch=avx2_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx2_nfaQueueExec_raw + -DnfaQueueInitState=avx2_nfaQueueInitState + -DnfaReportCurrentMatches=avx2_nfaReportCurrentMatches + -DnoodExec=avx2_noodExec + -DnoodExecStreaming=avx2_noodExecStreaming + -Dp_mask_arr=avx2_p_mask_arr + -Dp_mask_arr256=avx2_p_mask_arr256 + -DrepeatHasMatchBitmap=avx2_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx2_repeatHasMatchRange + -DrepeatHasMatchRing=avx2_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx2_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx2_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx2_repeatLastTopBitmap + -DrepeatLastTopRange=avx2_repeatLastTopRange + -DrepeatLastTopRing=avx2_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx2_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx2_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx2_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx2_repeatNextMatchRange + -DrepeatNextMatchRing=avx2_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx2_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx2_repeatNextMatchTrailer + -DrepeatPack=avx2_repeatPack + -DrepeatStoreBitmap=avx2_repeatStoreBitmap + -DrepeatStoreRange=avx2_repeatStoreRange + -DrepeatStoreRing=avx2_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx2_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx2_repeatStoreTrailer + -DrepeatUnpack=avx2_repeatUnpack + -DroseAnchoredCallback=avx2_roseAnchoredCallback + -DroseBlockExec=avx2_roseBlockExec + -DroseCallback=avx2_roseCallback + -DroseCatchUpAll=avx2_roseCatchUpAll + -DroseCatchUpMPV_i=avx2_roseCatchUpMPV_i + -DroseCatchUpSuf=avx2_roseCatchUpSuf + -DroseDelayRebuildCallback=avx2_roseDelayRebuildCallback + -DroseFloatingCallback=avx2_roseFloatingCallback + -DroseHandleChainMatch=avx2_roseHandleChainMatch + -DroseInitState=avx2_roseInitState + -DroseNfaAdaptor=avx2_roseNfaAdaptor + -DroseNfaEarliestSom=avx2_roseNfaEarliestSom + -DroseReportAdaptor=avx2_roseReportAdaptor + -DroseRunBoundaryProgram=avx2_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx2_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx2_roseRunLastFlushCombProgram + -DroseRunProgram=avx2_roseRunProgram + -DroseRunProgram_l=avx2_roseRunProgram_l + -DroseStreamEodExec=avx2_roseStreamEodExec + -DroseStreamExec=avx2_roseStreamExec + -DrshuftiExec=avx2_rshuftiExec + -DrtruffleExec=avx2_rtruffleExec + -Drun_accel=avx2_run_accel + -DsetSomFromSomAware=avx2_setSomFromSomAware + -DshuftiDoubleExec=avx2_shuftiDoubleExec + -DshuftiExec=avx2_shuftiExec + -Dsimd_onebit_masks=avx2_simd_onebit_masks + -Dsize_compress_stream=avx2_size_compress_stream + -DstoreSomToStream=avx2_storeSomToStream + -Dstorecompressed128=avx2_storecompressed128 + -Dstorecompressed256=avx2_storecompressed256 + -Dstorecompressed32=avx2_storecompressed32 + -Dstorecompressed384=avx2_storecompressed384 + -Dstorecompressed512=avx2_storecompressed512 + -Dstorecompressed64=avx2_storecompressed64 + -DstreamInitSufPQ=avx2_streamInitSufPQ + -DtruffleExec=avx2_truffleExec + -Dvbs_mask_data=avx2_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx2/CMakeLists.txt b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.txt index 03290e1358..3e0811fb22 100644 --- a/contrib/libs/hyperscan/runtime_avx2/CMakeLists.txt +++ b/contrib/libs/hyperscan/runtime_avx2/CMakeLists.txt @@ -6,482 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-hyperscan-runtime_avx2) -target_compile_options(libs-hyperscan-runtime_avx2 PRIVATE - -msse4.1 - -DHAVE_SSE41 - -msse4.2 - -DHAVE_SSE42 - -mpopcnt - -DHAVE_POPCOUNT_INSTR - -mavx - -DHAVE_AVX - -mavx2 - -mfma - -mbmi - -mbmi2 - -DHAVE_AVX2 - -DCrc32c_ComputeBuf=avx2_Crc32c_ComputeBuf - -DblockInitSufPQ=avx2_blockInitSufPQ - -Dcompress_stream=avx2_compress_stream - -Dcpuid_flags=avx2_cpuid_flags - -Dcpuid_tune=avx2_cpuid_tune - -DdbIsValid=avx2_dbIsValid - -DdoAccel128=avx2_doAccel128 - -DdoAccel256=avx2_doAccel256 - -DdoAccel32=avx2_doAccel32 - -DdoAccel384=avx2_doAccel384 - -DdoAccel512=avx2_doAccel512 - -DdoAccel64=avx2_doAccel64 - -Dexpand_stream=avx2_expand_stream - -DfdrExec=avx2_fdrExec - -DfdrExecStreaming=avx2_fdrExecStreaming - -Dfdr_exec_fat_teddy_msks1=avx2_fdr_exec_fat_teddy_msks1 - -Dfdr_exec_fat_teddy_msks1_pck=avx2_fdr_exec_fat_teddy_msks1_pck - -Dfdr_exec_fat_teddy_msks2=avx2_fdr_exec_fat_teddy_msks2 - -Dfdr_exec_fat_teddy_msks2_pck=avx2_fdr_exec_fat_teddy_msks2_pck - -Dfdr_exec_fat_teddy_msks3=avx2_fdr_exec_fat_teddy_msks3 - -Dfdr_exec_fat_teddy_msks3_pck=avx2_fdr_exec_fat_teddy_msks3_pck - -Dfdr_exec_fat_teddy_msks4=avx2_fdr_exec_fat_teddy_msks4 - -Dfdr_exec_fat_teddy_msks4_pck=avx2_fdr_exec_fat_teddy_msks4_pck - -Dfdr_exec_teddy_msks1=avx2_fdr_exec_teddy_msks1 - -Dfdr_exec_teddy_msks1_pck=avx2_fdr_exec_teddy_msks1_pck - -Dfdr_exec_teddy_msks2=avx2_fdr_exec_teddy_msks2 - -Dfdr_exec_teddy_msks2_pck=avx2_fdr_exec_teddy_msks2_pck - -Dfdr_exec_teddy_msks3=avx2_fdr_exec_teddy_msks3 - -Dfdr_exec_teddy_msks3_pck=avx2_fdr_exec_teddy_msks3_pck - -Dfdr_exec_teddy_msks4=avx2_fdr_exec_teddy_msks4 - -Dfdr_exec_teddy_msks4_pck=avx2_fdr_exec_teddy_msks4_pck - -DflushQueuedLiterals_i=avx2_flushQueuedLiterals_i - -DflushStoredSomMatches_i=avx2_flushStoredSomMatches_i - -DhandleSomExternal=avx2_handleSomExternal - -DhandleSomInternal=avx2_handleSomInternal - -Dhs_alloc_scratch=avx2_hs_alloc_scratch - -Dhs_clone_scratch=avx2_hs_clone_scratch - -Dhs_close_stream=avx2_hs_close_stream - -Dhs_compress_stream=avx2_hs_compress_stream - -Dhs_copy_stream=avx2_hs_copy_stream - -Dhs_database_alloc=avx2_hs_database_alloc - -Dhs_database_free=avx2_hs_database_free - -Dhs_database_info=avx2_hs_database_info - -Dhs_database_size=avx2_hs_database_size - -Dhs_deserialize_database=avx2_hs_deserialize_database - -Dhs_deserialize_database_at=avx2_hs_deserialize_database_at - -Dhs_expand_stream=avx2_hs_expand_stream - -Dhs_free_database=avx2_hs_free_database - -Dhs_free_scratch=avx2_hs_free_scratch - -Dhs_misc_alloc=avx2_hs_misc_alloc - -Dhs_misc_free=avx2_hs_misc_free - -Dhs_open_stream=avx2_hs_open_stream - -Dhs_reset_and_copy_stream=avx2_hs_reset_and_copy_stream - -Dhs_reset_and_expand_stream=avx2_hs_reset_and_expand_stream - -Dhs_reset_stream=avx2_hs_reset_stream - -Dhs_scan=avx2_hs_scan - -Dhs_scan_stream=avx2_hs_scan_stream - -Dhs_scan_vector=avx2_hs_scan_vector - -Dhs_scratch_alloc=avx2_hs_scratch_alloc - -Dhs_scratch_free=avx2_hs_scratch_free - -Dhs_scratch_size=avx2_hs_scratch_size - -Dhs_serialize_database=avx2_hs_serialize_database - -Dhs_serialized_database_info=avx2_hs_serialized_database_info - -Dhs_serialized_database_size=avx2_hs_serialized_database_size - -Dhs_set_allocator=avx2_hs_set_allocator - -Dhs_set_database_allocator=avx2_hs_set_database_allocator - -Dhs_set_misc_allocator=avx2_hs_set_misc_allocator - -Dhs_set_scratch_allocator=avx2_hs_set_scratch_allocator - -Dhs_set_stream_allocator=avx2_hs_set_stream_allocator - -Dhs_stream_alloc=avx2_hs_stream_alloc - -Dhs_stream_free=avx2_hs_stream_free - -Dhs_stream_size=avx2_hs_stream_size - -Dhs_valid_platform=avx2_hs_valid_platform - -Dhs_version=avx2_hs_version - -DhwlmExec=avx2_hwlmExec - -DhwlmExecStreaming=avx2_hwlmExecStreaming - -DloadSomFromStream=avx2_loadSomFromStream - -Dloadcompressed128=avx2_loadcompressed128 - -Dloadcompressed256=avx2_loadcompressed256 - -Dloadcompressed32=avx2_loadcompressed32 - -Dloadcompressed384=avx2_loadcompressed384 - -Dloadcompressed512=avx2_loadcompressed512 - -Dloadcompressed64=avx2_loadcompressed64 - -Dmcsheng_pext_mask=avx2_mcsheng_pext_mask - -Dmm_mask_mask=avx2_mm_mask_mask - -Dmm_shuffle_end=avx2_mm_shuffle_end - -Dmmbit_keyshift_lut=avx2_mmbit_keyshift_lut - -Dmmbit_maxlevel_direct_lut=avx2_mmbit_maxlevel_direct_lut - -Dmmbit_maxlevel_from_keyshift_lut=avx2_mmbit_maxlevel_from_keyshift_lut - -Dmmbit_root_offset_from_level=avx2_mmbit_root_offset_from_level - -Dmmbit_zero_to_lut=avx2_mmbit_zero_to_lut - -DnfaBlockExecReverse=avx2_nfaBlockExecReverse - -DnfaCheckFinalState=avx2_nfaCheckFinalState - -DnfaExecCastle_Q=avx2_nfaExecCastle_Q - -DnfaExecCastle_Q2=avx2_nfaExecCastle_Q2 - -DnfaExecCastle_QR=avx2_nfaExecCastle_QR - -DnfaExecCastle_expandState=avx2_nfaExecCastle_expandState - -DnfaExecCastle_inAccept=avx2_nfaExecCastle_inAccept - -DnfaExecCastle_inAnyAccept=avx2_nfaExecCastle_inAnyAccept - -DnfaExecCastle_initCompressedState=avx2_nfaExecCastle_initCompressedState - -DnfaExecCastle_queueCompressState=avx2_nfaExecCastle_queueCompressState - -DnfaExecCastle_queueInitState=avx2_nfaExecCastle_queueInitState - -DnfaExecCastle_reportCurrent=avx2_nfaExecCastle_reportCurrent - -DnfaExecGough16_Q=avx2_nfaExecGough16_Q - -DnfaExecGough16_Q2=avx2_nfaExecGough16_Q2 - -DnfaExecGough16_QR=avx2_nfaExecGough16_QR - -DnfaExecGough16_expandState=avx2_nfaExecGough16_expandState - -DnfaExecGough16_inAccept=avx2_nfaExecGough16_inAccept - -DnfaExecGough16_inAnyAccept=avx2_nfaExecGough16_inAnyAccept - -DnfaExecGough16_initCompressedState=avx2_nfaExecGough16_initCompressedState - -DnfaExecGough16_queueCompressState=avx2_nfaExecGough16_queueCompressState - -DnfaExecGough16_queueInitState=avx2_nfaExecGough16_queueInitState - -DnfaExecGough16_reportCurrent=avx2_nfaExecGough16_reportCurrent - -DnfaExecGough16_testEOD=avx2_nfaExecGough16_testEOD - -DnfaExecGough8_Q=avx2_nfaExecGough8_Q - -DnfaExecGough8_Q2=avx2_nfaExecGough8_Q2 - -DnfaExecGough8_QR=avx2_nfaExecGough8_QR - -DnfaExecGough8_expandState=avx2_nfaExecGough8_expandState - -DnfaExecGough8_inAccept=avx2_nfaExecGough8_inAccept - -DnfaExecGough8_inAnyAccept=avx2_nfaExecGough8_inAnyAccept - -DnfaExecGough8_initCompressedState=avx2_nfaExecGough8_initCompressedState - -DnfaExecGough8_queueCompressState=avx2_nfaExecGough8_queueCompressState - -DnfaExecGough8_queueInitState=avx2_nfaExecGough8_queueInitState - -DnfaExecGough8_reportCurrent=avx2_nfaExecGough8_reportCurrent - -DnfaExecGough8_testEOD=avx2_nfaExecGough8_testEOD - -DnfaExecLbrDot_Q=avx2_nfaExecLbrDot_Q - -DnfaExecLbrDot_Q2=avx2_nfaExecLbrDot_Q2 - -DnfaExecLbrDot_QR=avx2_nfaExecLbrDot_QR - -DnfaExecLbrDot_expandState=avx2_nfaExecLbrDot_expandState - -DnfaExecLbrDot_inAccept=avx2_nfaExecLbrDot_inAccept - -DnfaExecLbrDot_inAnyAccept=avx2_nfaExecLbrDot_inAnyAccept - -DnfaExecLbrDot_initCompressedState=avx2_nfaExecLbrDot_initCompressedState - -DnfaExecLbrDot_queueCompressState=avx2_nfaExecLbrDot_queueCompressState - -DnfaExecLbrDot_queueInitState=avx2_nfaExecLbrDot_queueInitState - -DnfaExecLbrDot_reportCurrent=avx2_nfaExecLbrDot_reportCurrent - -DnfaExecLbrNVerm_Q=avx2_nfaExecLbrNVerm_Q - -DnfaExecLbrNVerm_Q2=avx2_nfaExecLbrNVerm_Q2 - -DnfaExecLbrNVerm_QR=avx2_nfaExecLbrNVerm_QR - -DnfaExecLbrNVerm_expandState=avx2_nfaExecLbrNVerm_expandState - -DnfaExecLbrNVerm_inAccept=avx2_nfaExecLbrNVerm_inAccept - -DnfaExecLbrNVerm_inAnyAccept=avx2_nfaExecLbrNVerm_inAnyAccept - -DnfaExecLbrNVerm_initCompressedState=avx2_nfaExecLbrNVerm_initCompressedState - -DnfaExecLbrNVerm_queueCompressState=avx2_nfaExecLbrNVerm_queueCompressState - -DnfaExecLbrNVerm_queueInitState=avx2_nfaExecLbrNVerm_queueInitState - -DnfaExecLbrNVerm_reportCurrent=avx2_nfaExecLbrNVerm_reportCurrent - -DnfaExecLbrShuf_Q=avx2_nfaExecLbrShuf_Q - -DnfaExecLbrShuf_Q2=avx2_nfaExecLbrShuf_Q2 - -DnfaExecLbrShuf_QR=avx2_nfaExecLbrShuf_QR - -DnfaExecLbrShuf_expandState=avx2_nfaExecLbrShuf_expandState - -DnfaExecLbrShuf_inAccept=avx2_nfaExecLbrShuf_inAccept - -DnfaExecLbrShuf_inAnyAccept=avx2_nfaExecLbrShuf_inAnyAccept - -DnfaExecLbrShuf_initCompressedState=avx2_nfaExecLbrShuf_initCompressedState - -DnfaExecLbrShuf_queueCompressState=avx2_nfaExecLbrShuf_queueCompressState - -DnfaExecLbrShuf_queueInitState=avx2_nfaExecLbrShuf_queueInitState - -DnfaExecLbrShuf_reportCurrent=avx2_nfaExecLbrShuf_reportCurrent - -DnfaExecLbrTruf_Q=avx2_nfaExecLbrTruf_Q - -DnfaExecLbrTruf_Q2=avx2_nfaExecLbrTruf_Q2 - -DnfaExecLbrTruf_QR=avx2_nfaExecLbrTruf_QR - -DnfaExecLbrTruf_expandState=avx2_nfaExecLbrTruf_expandState - -DnfaExecLbrTruf_inAccept=avx2_nfaExecLbrTruf_inAccept - -DnfaExecLbrTruf_inAnyAccept=avx2_nfaExecLbrTruf_inAnyAccept - -DnfaExecLbrTruf_initCompressedState=avx2_nfaExecLbrTruf_initCompressedState - -DnfaExecLbrTruf_queueCompressState=avx2_nfaExecLbrTruf_queueCompressState - -DnfaExecLbrTruf_queueInitState=avx2_nfaExecLbrTruf_queueInitState - -DnfaExecLbrTruf_reportCurrent=avx2_nfaExecLbrTruf_reportCurrent - -DnfaExecLbrVerm_Q=avx2_nfaExecLbrVerm_Q - -DnfaExecLbrVerm_Q2=avx2_nfaExecLbrVerm_Q2 - -DnfaExecLbrVerm_QR=avx2_nfaExecLbrVerm_QR - -DnfaExecLbrVerm_expandState=avx2_nfaExecLbrVerm_expandState - -DnfaExecLbrVerm_inAccept=avx2_nfaExecLbrVerm_inAccept - -DnfaExecLbrVerm_inAnyAccept=avx2_nfaExecLbrVerm_inAnyAccept - -DnfaExecLbrVerm_initCompressedState=avx2_nfaExecLbrVerm_initCompressedState - -DnfaExecLbrVerm_queueCompressState=avx2_nfaExecLbrVerm_queueCompressState - -DnfaExecLbrVerm_queueInitState=avx2_nfaExecLbrVerm_queueInitState - -DnfaExecLbrVerm_reportCurrent=avx2_nfaExecLbrVerm_reportCurrent - -DnfaExecLimEx128_B_Reverse=avx2_nfaExecLimEx128_B_Reverse - -DnfaExecLimEx128_Q=avx2_nfaExecLimEx128_Q - -DnfaExecLimEx128_Q2=avx2_nfaExecLimEx128_Q2 - -DnfaExecLimEx128_QR=avx2_nfaExecLimEx128_QR - -DnfaExecLimEx128_expandState=avx2_nfaExecLimEx128_expandState - -DnfaExecLimEx128_inAccept=avx2_nfaExecLimEx128_inAccept - -DnfaExecLimEx128_inAnyAccept=avx2_nfaExecLimEx128_inAnyAccept - -DnfaExecLimEx128_initCompressedState=avx2_nfaExecLimEx128_initCompressedState - -DnfaExecLimEx128_queueCompressState=avx2_nfaExecLimEx128_queueCompressState - -DnfaExecLimEx128_queueInitState=avx2_nfaExecLimEx128_queueInitState - -DnfaExecLimEx128_reportCurrent=avx2_nfaExecLimEx128_reportCurrent - -DnfaExecLimEx128_testEOD=avx2_nfaExecLimEx128_testEOD - -DnfaExecLimEx128_zombie_status=avx2_nfaExecLimEx128_zombie_status - -DnfaExecLimEx256_B_Reverse=avx2_nfaExecLimEx256_B_Reverse - -DnfaExecLimEx256_Q=avx2_nfaExecLimEx256_Q - -DnfaExecLimEx256_Q2=avx2_nfaExecLimEx256_Q2 - -DnfaExecLimEx256_QR=avx2_nfaExecLimEx256_QR - -DnfaExecLimEx256_expandState=avx2_nfaExecLimEx256_expandState - -DnfaExecLimEx256_inAccept=avx2_nfaExecLimEx256_inAccept - -DnfaExecLimEx256_inAnyAccept=avx2_nfaExecLimEx256_inAnyAccept - -DnfaExecLimEx256_initCompressedState=avx2_nfaExecLimEx256_initCompressedState - -DnfaExecLimEx256_queueCompressState=avx2_nfaExecLimEx256_queueCompressState - -DnfaExecLimEx256_queueInitState=avx2_nfaExecLimEx256_queueInitState - -DnfaExecLimEx256_reportCurrent=avx2_nfaExecLimEx256_reportCurrent - -DnfaExecLimEx256_testEOD=avx2_nfaExecLimEx256_testEOD - -DnfaExecLimEx256_zombie_status=avx2_nfaExecLimEx256_zombie_status - -DnfaExecLimEx32_B_Reverse=avx2_nfaExecLimEx32_B_Reverse - -DnfaExecLimEx32_Q=avx2_nfaExecLimEx32_Q - -DnfaExecLimEx32_Q2=avx2_nfaExecLimEx32_Q2 - -DnfaExecLimEx32_QR=avx2_nfaExecLimEx32_QR - -DnfaExecLimEx32_expandState=avx2_nfaExecLimEx32_expandState - -DnfaExecLimEx32_inAccept=avx2_nfaExecLimEx32_inAccept - -DnfaExecLimEx32_inAnyAccept=avx2_nfaExecLimEx32_inAnyAccept - -DnfaExecLimEx32_initCompressedState=avx2_nfaExecLimEx32_initCompressedState - -DnfaExecLimEx32_queueCompressState=avx2_nfaExecLimEx32_queueCompressState - -DnfaExecLimEx32_queueInitState=avx2_nfaExecLimEx32_queueInitState - -DnfaExecLimEx32_reportCurrent=avx2_nfaExecLimEx32_reportCurrent - -DnfaExecLimEx32_testEOD=avx2_nfaExecLimEx32_testEOD - -DnfaExecLimEx32_zombie_status=avx2_nfaExecLimEx32_zombie_status - -DnfaExecLimEx384_B_Reverse=avx2_nfaExecLimEx384_B_Reverse - -DnfaExecLimEx384_Q=avx2_nfaExecLimEx384_Q - -DnfaExecLimEx384_Q2=avx2_nfaExecLimEx384_Q2 - -DnfaExecLimEx384_QR=avx2_nfaExecLimEx384_QR - -DnfaExecLimEx384_expandState=avx2_nfaExecLimEx384_expandState - -DnfaExecLimEx384_inAccept=avx2_nfaExecLimEx384_inAccept - -DnfaExecLimEx384_inAnyAccept=avx2_nfaExecLimEx384_inAnyAccept - -DnfaExecLimEx384_initCompressedState=avx2_nfaExecLimEx384_initCompressedState - -DnfaExecLimEx384_queueCompressState=avx2_nfaExecLimEx384_queueCompressState - -DnfaExecLimEx384_queueInitState=avx2_nfaExecLimEx384_queueInitState - -DnfaExecLimEx384_reportCurrent=avx2_nfaExecLimEx384_reportCurrent - -DnfaExecLimEx384_testEOD=avx2_nfaExecLimEx384_testEOD - -DnfaExecLimEx384_zombie_status=avx2_nfaExecLimEx384_zombie_status - -DnfaExecLimEx512_B_Reverse=avx2_nfaExecLimEx512_B_Reverse - -DnfaExecLimEx512_Q=avx2_nfaExecLimEx512_Q - -DnfaExecLimEx512_Q2=avx2_nfaExecLimEx512_Q2 - -DnfaExecLimEx512_QR=avx2_nfaExecLimEx512_QR - -DnfaExecLimEx512_expandState=avx2_nfaExecLimEx512_expandState - -DnfaExecLimEx512_inAccept=avx2_nfaExecLimEx512_inAccept - -DnfaExecLimEx512_inAnyAccept=avx2_nfaExecLimEx512_inAnyAccept - -DnfaExecLimEx512_initCompressedState=avx2_nfaExecLimEx512_initCompressedState - -DnfaExecLimEx512_queueCompressState=avx2_nfaExecLimEx512_queueCompressState - -DnfaExecLimEx512_queueInitState=avx2_nfaExecLimEx512_queueInitState - -DnfaExecLimEx512_reportCurrent=avx2_nfaExecLimEx512_reportCurrent - -DnfaExecLimEx512_testEOD=avx2_nfaExecLimEx512_testEOD - -DnfaExecLimEx512_zombie_status=avx2_nfaExecLimEx512_zombie_status - -DnfaExecLimEx64_B_Reverse=avx2_nfaExecLimEx64_B_Reverse - -DnfaExecLimEx64_Q=avx2_nfaExecLimEx64_Q - -DnfaExecLimEx64_Q2=avx2_nfaExecLimEx64_Q2 - -DnfaExecLimEx64_QR=avx2_nfaExecLimEx64_QR - -DnfaExecLimEx64_expandState=avx2_nfaExecLimEx64_expandState - -DnfaExecLimEx64_inAccept=avx2_nfaExecLimEx64_inAccept - -DnfaExecLimEx64_inAnyAccept=avx2_nfaExecLimEx64_inAnyAccept - -DnfaExecLimEx64_initCompressedState=avx2_nfaExecLimEx64_initCompressedState - -DnfaExecLimEx64_queueCompressState=avx2_nfaExecLimEx64_queueCompressState - -DnfaExecLimEx64_queueInitState=avx2_nfaExecLimEx64_queueInitState - -DnfaExecLimEx64_reportCurrent=avx2_nfaExecLimEx64_reportCurrent - -DnfaExecLimEx64_testEOD=avx2_nfaExecLimEx64_testEOD - -DnfaExecLimEx64_zombie_status=avx2_nfaExecLimEx64_zombie_status - -DnfaExecMcClellan16_B=avx2_nfaExecMcClellan16_B - -DnfaExecMcClellan16_Q=avx2_nfaExecMcClellan16_Q - -DnfaExecMcClellan16_Q2=avx2_nfaExecMcClellan16_Q2 - -DnfaExecMcClellan16_QR=avx2_nfaExecMcClellan16_QR - -DnfaExecMcClellan16_SimpStream=avx2_nfaExecMcClellan16_SimpStream - -DnfaExecMcClellan16_expandState=avx2_nfaExecMcClellan16_expandState - -DnfaExecMcClellan16_inAccept=avx2_nfaExecMcClellan16_inAccept - -DnfaExecMcClellan16_inAnyAccept=avx2_nfaExecMcClellan16_inAnyAccept - -DnfaExecMcClellan16_initCompressedState=avx2_nfaExecMcClellan16_initCompressedState - -DnfaExecMcClellan16_queueCompressState=avx2_nfaExecMcClellan16_queueCompressState - -DnfaExecMcClellan16_queueInitState=avx2_nfaExecMcClellan16_queueInitState - -DnfaExecMcClellan16_reportCurrent=avx2_nfaExecMcClellan16_reportCurrent - -DnfaExecMcClellan16_testEOD=avx2_nfaExecMcClellan16_testEOD - -DnfaExecMcClellan8_B=avx2_nfaExecMcClellan8_B - -DnfaExecMcClellan8_Q=avx2_nfaExecMcClellan8_Q - -DnfaExecMcClellan8_Q2=avx2_nfaExecMcClellan8_Q2 - -DnfaExecMcClellan8_QR=avx2_nfaExecMcClellan8_QR - -DnfaExecMcClellan8_SimpStream=avx2_nfaExecMcClellan8_SimpStream - -DnfaExecMcClellan8_expandState=avx2_nfaExecMcClellan8_expandState - -DnfaExecMcClellan8_inAccept=avx2_nfaExecMcClellan8_inAccept - -DnfaExecMcClellan8_inAnyAccept=avx2_nfaExecMcClellan8_inAnyAccept - -DnfaExecMcClellan8_initCompressedState=avx2_nfaExecMcClellan8_initCompressedState - -DnfaExecMcClellan8_queueCompressState=avx2_nfaExecMcClellan8_queueCompressState - -DnfaExecMcClellan8_queueInitState=avx2_nfaExecMcClellan8_queueInitState - -DnfaExecMcClellan8_reportCurrent=avx2_nfaExecMcClellan8_reportCurrent - -DnfaExecMcClellan8_testEOD=avx2_nfaExecMcClellan8_testEOD - -DnfaExecMcSheng16_Q=avx2_nfaExecMcSheng16_Q - -DnfaExecMcSheng16_Q2=avx2_nfaExecMcSheng16_Q2 - -DnfaExecMcSheng16_QR=avx2_nfaExecMcSheng16_QR - -DnfaExecMcSheng16_expandState=avx2_nfaExecMcSheng16_expandState - -DnfaExecMcSheng16_inAccept=avx2_nfaExecMcSheng16_inAccept - -DnfaExecMcSheng16_inAnyAccept=avx2_nfaExecMcSheng16_inAnyAccept - -DnfaExecMcSheng16_initCompressedState=avx2_nfaExecMcSheng16_initCompressedState - -DnfaExecMcSheng16_queueCompressState=avx2_nfaExecMcSheng16_queueCompressState - -DnfaExecMcSheng16_queueInitState=avx2_nfaExecMcSheng16_queueInitState - -DnfaExecMcSheng16_reportCurrent=avx2_nfaExecMcSheng16_reportCurrent - -DnfaExecMcSheng16_testEOD=avx2_nfaExecMcSheng16_testEOD - -DnfaExecMcSheng8_Q=avx2_nfaExecMcSheng8_Q - -DnfaExecMcSheng8_Q2=avx2_nfaExecMcSheng8_Q2 - -DnfaExecMcSheng8_QR=avx2_nfaExecMcSheng8_QR - -DnfaExecMcSheng8_expandState=avx2_nfaExecMcSheng8_expandState - -DnfaExecMcSheng8_inAccept=avx2_nfaExecMcSheng8_inAccept - -DnfaExecMcSheng8_inAnyAccept=avx2_nfaExecMcSheng8_inAnyAccept - -DnfaExecMcSheng8_initCompressedState=avx2_nfaExecMcSheng8_initCompressedState - -DnfaExecMcSheng8_queueCompressState=avx2_nfaExecMcSheng8_queueCompressState - -DnfaExecMcSheng8_queueInitState=avx2_nfaExecMcSheng8_queueInitState - -DnfaExecMcSheng8_reportCurrent=avx2_nfaExecMcSheng8_reportCurrent - -DnfaExecMcSheng8_testEOD=avx2_nfaExecMcSheng8_testEOD - -DnfaExecMpv_Q=avx2_nfaExecMpv_Q - -DnfaExecMpv_QueueExecRaw=avx2_nfaExecMpv_QueueExecRaw - -DnfaExecMpv_expandState=avx2_nfaExecMpv_expandState - -DnfaExecMpv_initCompressedState=avx2_nfaExecMpv_initCompressedState - -DnfaExecMpv_queueCompressState=avx2_nfaExecMpv_queueCompressState - -DnfaExecMpv_queueInitState=avx2_nfaExecMpv_queueInitState - -DnfaExecMpv_reportCurrent=avx2_nfaExecMpv_reportCurrent - -DnfaExecSheng_B=avx2_nfaExecSheng_B - -DnfaExecSheng_Q=avx2_nfaExecSheng_Q - -DnfaExecSheng_Q2=avx2_nfaExecSheng_Q2 - -DnfaExecSheng_QR=avx2_nfaExecSheng_QR - -DnfaExecSheng_expandState=avx2_nfaExecSheng_expandState - -DnfaExecSheng_inAccept=avx2_nfaExecSheng_inAccept - -DnfaExecSheng_inAnyAccept=avx2_nfaExecSheng_inAnyAccept - -DnfaExecSheng_initCompressedState=avx2_nfaExecSheng_initCompressedState - -DnfaExecSheng_queueCompressState=avx2_nfaExecSheng_queueCompressState - -DnfaExecSheng_queueInitState=avx2_nfaExecSheng_queueInitState - -DnfaExecSheng_reportCurrent=avx2_nfaExecSheng_reportCurrent - -DnfaExecSheng_testEOD=avx2_nfaExecSheng_testEOD - -DnfaExecTamarama_Q=avx2_nfaExecTamarama_Q - -DnfaExecTamarama_Q2=avx2_nfaExecTamarama_Q2 - -DnfaExecTamarama_QR=avx2_nfaExecTamarama_QR - -DnfaExecTamarama_expandState=avx2_nfaExecTamarama_expandState - -DnfaExecTamarama_inAccept=avx2_nfaExecTamarama_inAccept - -DnfaExecTamarama_inAnyAccept=avx2_nfaExecTamarama_inAnyAccept - -DnfaExecTamarama_queueCompressState=avx2_nfaExecTamarama_queueCompressState - -DnfaExecTamarama_queueInitState=avx2_nfaExecTamarama_queueInitState - -DnfaExecTamarama_reportCurrent=avx2_nfaExecTamarama_reportCurrent - -DnfaExecTamarama_testEOD=avx2_nfaExecTamarama_testEOD - -DnfaExecTamarama_zombie_status=avx2_nfaExecTamarama_zombie_status - -DnfaExpandState=avx2_nfaExpandState - -DnfaGetZombieStatus=avx2_nfaGetZombieStatus - -DnfaInAcceptState=avx2_nfaInAcceptState - -DnfaInAnyAcceptState=avx2_nfaInAnyAcceptState - -DnfaInitCompressedState=avx2_nfaInitCompressedState - -DnfaQueueCompressState=avx2_nfaQueueCompressState - -DnfaQueueExec=avx2_nfaQueueExec - -DnfaQueueExec2_raw=avx2_nfaQueueExec2_raw - -DnfaQueueExecRose=avx2_nfaQueueExecRose - -DnfaQueueExecToMatch=avx2_nfaQueueExecToMatch - -DnfaQueueExec_raw=avx2_nfaQueueExec_raw - -DnfaQueueInitState=avx2_nfaQueueInitState - -DnfaReportCurrentMatches=avx2_nfaReportCurrentMatches - -DnoodExec=avx2_noodExec - -DnoodExecStreaming=avx2_noodExecStreaming - -Dp_mask_arr=avx2_p_mask_arr - -Dp_mask_arr256=avx2_p_mask_arr256 - -DrepeatHasMatchBitmap=avx2_repeatHasMatchBitmap - -DrepeatHasMatchRange=avx2_repeatHasMatchRange - -DrepeatHasMatchRing=avx2_repeatHasMatchRing - -DrepeatHasMatchSparseOptimalP=avx2_repeatHasMatchSparseOptimalP - -DrepeatHasMatchTrailer=avx2_repeatHasMatchTrailer - -DrepeatLastTopBitmap=avx2_repeatLastTopBitmap - -DrepeatLastTopRange=avx2_repeatLastTopRange - -DrepeatLastTopRing=avx2_repeatLastTopRing - -DrepeatLastTopSparseOptimalP=avx2_repeatLastTopSparseOptimalP - -DrepeatLastTopTrailer=avx2_repeatLastTopTrailer - -DrepeatNextMatchBitmap=avx2_repeatNextMatchBitmap - -DrepeatNextMatchRange=avx2_repeatNextMatchRange - -DrepeatNextMatchRing=avx2_repeatNextMatchRing - -DrepeatNextMatchSparseOptimalP=avx2_repeatNextMatchSparseOptimalP - -DrepeatNextMatchTrailer=avx2_repeatNextMatchTrailer - -DrepeatPack=avx2_repeatPack - -DrepeatStoreBitmap=avx2_repeatStoreBitmap - -DrepeatStoreRange=avx2_repeatStoreRange - -DrepeatStoreRing=avx2_repeatStoreRing - -DrepeatStoreSparseOptimalP=avx2_repeatStoreSparseOptimalP - -DrepeatStoreTrailer=avx2_repeatStoreTrailer - -DrepeatUnpack=avx2_repeatUnpack - -DroseAnchoredCallback=avx2_roseAnchoredCallback - -DroseBlockExec=avx2_roseBlockExec - -DroseCallback=avx2_roseCallback - -DroseCatchUpAll=avx2_roseCatchUpAll - -DroseCatchUpMPV_i=avx2_roseCatchUpMPV_i - -DroseCatchUpSuf=avx2_roseCatchUpSuf - -DroseDelayRebuildCallback=avx2_roseDelayRebuildCallback - -DroseFloatingCallback=avx2_roseFloatingCallback - -DroseHandleChainMatch=avx2_roseHandleChainMatch - -DroseInitState=avx2_roseInitState - -DroseNfaAdaptor=avx2_roseNfaAdaptor - -DroseNfaEarliestSom=avx2_roseNfaEarliestSom - -DroseReportAdaptor=avx2_roseReportAdaptor - -DroseRunBoundaryProgram=avx2_roseRunBoundaryProgram - -DroseRunFlushCombProgram=avx2_roseRunFlushCombProgram - -DroseRunLastFlushCombProgram=avx2_roseRunLastFlushCombProgram - -DroseRunProgram=avx2_roseRunProgram - -DroseRunProgram_l=avx2_roseRunProgram_l - -DroseStreamEodExec=avx2_roseStreamEodExec - -DroseStreamExec=avx2_roseStreamExec - -DrshuftiExec=avx2_rshuftiExec - -DrtruffleExec=avx2_rtruffleExec - -Drun_accel=avx2_run_accel - -DsetSomFromSomAware=avx2_setSomFromSomAware - -DshuftiDoubleExec=avx2_shuftiDoubleExec - -DshuftiExec=avx2_shuftiExec - -Dsimd_onebit_masks=avx2_simd_onebit_masks - -Dsize_compress_stream=avx2_size_compress_stream - -DstoreSomToStream=avx2_storeSomToStream - -Dstorecompressed128=avx2_storecompressed128 - -Dstorecompressed256=avx2_storecompressed256 - -Dstorecompressed32=avx2_storecompressed32 - -Dstorecompressed384=avx2_storecompressed384 - -Dstorecompressed512=avx2_storecompressed512 - -Dstorecompressed64=avx2_storecompressed64 - -DstreamInitSufPQ=avx2_streamInitSufPQ - -DtruffleExec=avx2_truffleExec - -Dvbs_mask_data=avx2_vbs_mask_data - -Wno-everything -) -target_include_directories(libs-hyperscan-runtime_avx2 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src -) -target_sources(libs-hyperscan-runtime_avx2 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/hyperscan/runtime_avx512/CMakeLists.darwin.txt b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.darwin.txt new file mode 100644 index 0000000000..322a106b42 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.darwin.txt @@ -0,0 +1,493 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx512) +target_compile_options(libs-hyperscan-runtime_avx512 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -DHAVE_POPCOUNT_INSTR + -mpopcnt + -mavx + -DHAVE_AVX + -mavx2 + -mfma + -mbmi + -mbmi2 + -DHAVE_AVX2 + -mavx512f + -mavx512cd + -mavx512bw + -mavx512dq + -mavx512vl + -DHAVE_AVX512 + -DCrc32c_ComputeBuf=avx512_Crc32c_ComputeBuf + -DblockInitSufPQ=avx512_blockInitSufPQ + -Dcompress_stream=avx512_compress_stream + -Dcpuid_flags=avx512_cpuid_flags + -Dcpuid_tune=avx512_cpuid_tune + -DdbIsValid=avx512_dbIsValid + -DdoAccel128=avx512_doAccel128 + -DdoAccel256=avx512_doAccel256 + -DdoAccel32=avx512_doAccel32 + -DdoAccel384=avx512_doAccel384 + -DdoAccel512=avx512_doAccel512 + -DdoAccel64=avx512_doAccel64 + -Dexpand_stream=avx512_expand_stream + -DfdrExec=avx512_fdrExec + -DfdrExecStreaming=avx512_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx512_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx512_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx512_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx512_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx512_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx512_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx512_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx512_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx512_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx512_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx512_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx512_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx512_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx512_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx512_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx512_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx512_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx512_flushStoredSomMatches_i + -DhandleSomExternal=avx512_handleSomExternal + -DhandleSomInternal=avx512_handleSomInternal + -Dhs_alloc_scratch=avx512_hs_alloc_scratch + -Dhs_clone_scratch=avx512_hs_clone_scratch + -Dhs_close_stream=avx512_hs_close_stream + -Dhs_compress_stream=avx512_hs_compress_stream + -Dhs_copy_stream=avx512_hs_copy_stream + -Dhs_database_alloc=avx512_hs_database_alloc + -Dhs_database_free=avx512_hs_database_free + -Dhs_database_info=avx512_hs_database_info + -Dhs_database_size=avx512_hs_database_size + -Dhs_deserialize_database=avx512_hs_deserialize_database + -Dhs_deserialize_database_at=avx512_hs_deserialize_database_at + -Dhs_expand_stream=avx512_hs_expand_stream + -Dhs_free_database=avx512_hs_free_database + -Dhs_free_scratch=avx512_hs_free_scratch + -Dhs_misc_alloc=avx512_hs_misc_alloc + -Dhs_misc_free=avx512_hs_misc_free + -Dhs_open_stream=avx512_hs_open_stream + -Dhs_reset_and_copy_stream=avx512_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx512_hs_reset_and_expand_stream + -Dhs_reset_stream=avx512_hs_reset_stream + -Dhs_scan=avx512_hs_scan + -Dhs_scan_stream=avx512_hs_scan_stream + -Dhs_scan_vector=avx512_hs_scan_vector + -Dhs_scratch_alloc=avx512_hs_scratch_alloc + -Dhs_scratch_free=avx512_hs_scratch_free + -Dhs_scratch_size=avx512_hs_scratch_size + -Dhs_serialize_database=avx512_hs_serialize_database + -Dhs_serialized_database_info=avx512_hs_serialized_database_info + -Dhs_serialized_database_size=avx512_hs_serialized_database_size + -Dhs_set_allocator=avx512_hs_set_allocator + -Dhs_set_database_allocator=avx512_hs_set_database_allocator + -Dhs_set_misc_allocator=avx512_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx512_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx512_hs_set_stream_allocator + -Dhs_stream_alloc=avx512_hs_stream_alloc + -Dhs_stream_free=avx512_hs_stream_free + -Dhs_stream_size=avx512_hs_stream_size + -Dhs_valid_platform=avx512_hs_valid_platform + -Dhs_version=avx512_hs_version + -DhwlmExec=avx512_hwlmExec + -DhwlmExecStreaming=avx512_hwlmExecStreaming + -DloadSomFromStream=avx512_loadSomFromStream + -Dloadcompressed128=avx512_loadcompressed128 + -Dloadcompressed256=avx512_loadcompressed256 + -Dloadcompressed32=avx512_loadcompressed32 + -Dloadcompressed384=avx512_loadcompressed384 + -Dloadcompressed512=avx512_loadcompressed512 + -Dloadcompressed64=avx512_loadcompressed64 + -Dmcsheng_pext_mask=avx512_mcsheng_pext_mask + -Dmm_mask_mask=avx512_mm_mask_mask + -Dmm_shuffle_end=avx512_mm_shuffle_end + -Dmmbit_keyshift_lut=avx512_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx512_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx512_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx512_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx512_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx512_nfaBlockExecReverse + -DnfaCheckFinalState=avx512_nfaCheckFinalState + -DnfaExecCastle_Q=avx512_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx512_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx512_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx512_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx512_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx512_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx512_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx512_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx512_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx512_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx512_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx512_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx512_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx512_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx512_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx512_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx512_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx512_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx512_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx512_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx512_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx512_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx512_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx512_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx512_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx512_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx512_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx512_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx512_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx512_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx512_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx512_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx512_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx512_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx512_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx512_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx512_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx512_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx512_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx512_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx512_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx512_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx512_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx512_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx512_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx512_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx512_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx512_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx512_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx512_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx512_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx512_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx512_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx512_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx512_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx512_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx512_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx512_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx512_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx512_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx512_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx512_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx512_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx512_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx512_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx512_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx512_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx512_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx512_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx512_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx512_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx512_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx512_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx512_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx512_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx512_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx512_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx512_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx512_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx512_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx512_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx512_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx512_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx512_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx512_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx512_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx512_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx512_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx512_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx512_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx512_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx512_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx512_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx512_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx512_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx512_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx512_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx512_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx512_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx512_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx512_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx512_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx512_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx512_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx512_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx512_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx512_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx512_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx512_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx512_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx512_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx512_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx512_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx512_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx512_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx512_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx512_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx512_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx512_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx512_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx512_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx512_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx512_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx512_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx512_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx512_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx512_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx512_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx512_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx512_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx512_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx512_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx512_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx512_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx512_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx512_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx512_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx512_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx512_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx512_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx512_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx512_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx512_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx512_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx512_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx512_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx512_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx512_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx512_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx512_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx512_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx512_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx512_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx512_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx512_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx512_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx512_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx512_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx512_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx512_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx512_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx512_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx512_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx512_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx512_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx512_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx512_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx512_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx512_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx512_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx512_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx512_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx512_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx512_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx512_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx512_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx512_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx512_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx512_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx512_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx512_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx512_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx512_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx512_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx512_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx512_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx512_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx512_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx512_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx512_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx512_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx512_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx512_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx512_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx512_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx512_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx512_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx512_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx512_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx512_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx512_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx512_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx512_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx512_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx512_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx512_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx512_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx512_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx512_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx512_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx512_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx512_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx512_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx512_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx512_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx512_nfaExecSheng_B + -DnfaExecSheng_Q=avx512_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx512_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx512_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx512_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx512_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx512_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx512_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx512_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx512_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx512_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx512_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx512_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx512_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx512_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx512_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx512_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx512_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx512_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx512_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx512_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx512_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx512_nfaExecTamarama_zombie_status + -DnfaExpandState=avx512_nfaExpandState + -DnfaGetZombieStatus=avx512_nfaGetZombieStatus + -DnfaInAcceptState=avx512_nfaInAcceptState + -DnfaInAnyAcceptState=avx512_nfaInAnyAcceptState + -DnfaInitCompressedState=avx512_nfaInitCompressedState + -DnfaQueueCompressState=avx512_nfaQueueCompressState + -DnfaQueueExec=avx512_nfaQueueExec + -DnfaQueueExec2_raw=avx512_nfaQueueExec2_raw + -DnfaQueueExecRose=avx512_nfaQueueExecRose + -DnfaQueueExecToMatch=avx512_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx512_nfaQueueExec_raw + -DnfaQueueInitState=avx512_nfaQueueInitState + -DnfaReportCurrentMatches=avx512_nfaReportCurrentMatches + -DnoodExec=avx512_noodExec + -DnoodExecStreaming=avx512_noodExecStreaming + -Dp_mask_arr=avx512_p_mask_arr + -Dp_mask_arr256=avx512_p_mask_arr256 + -DrepeatHasMatchBitmap=avx512_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx512_repeatHasMatchRange + -DrepeatHasMatchRing=avx512_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx512_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx512_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx512_repeatLastTopBitmap + -DrepeatLastTopRange=avx512_repeatLastTopRange + -DrepeatLastTopRing=avx512_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx512_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx512_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx512_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx512_repeatNextMatchRange + -DrepeatNextMatchRing=avx512_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx512_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx512_repeatNextMatchTrailer + -DrepeatPack=avx512_repeatPack + -DrepeatStoreBitmap=avx512_repeatStoreBitmap + -DrepeatStoreRange=avx512_repeatStoreRange + -DrepeatStoreRing=avx512_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx512_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx512_repeatStoreTrailer + -DrepeatUnpack=avx512_repeatUnpack + -DroseAnchoredCallback=avx512_roseAnchoredCallback + -DroseBlockExec=avx512_roseBlockExec + -DroseCallback=avx512_roseCallback + -DroseCatchUpAll=avx512_roseCatchUpAll + -DroseCatchUpMPV_i=avx512_roseCatchUpMPV_i + -DroseCatchUpSuf=avx512_roseCatchUpSuf + -DroseDelayRebuildCallback=avx512_roseDelayRebuildCallback + -DroseFloatingCallback=avx512_roseFloatingCallback + -DroseHandleChainMatch=avx512_roseHandleChainMatch + -DroseInitState=avx512_roseInitState + -DroseNfaAdaptor=avx512_roseNfaAdaptor + -DroseNfaEarliestSom=avx512_roseNfaEarliestSom + -DroseReportAdaptor=avx512_roseReportAdaptor + -DroseRunBoundaryProgram=avx512_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx512_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx512_roseRunLastFlushCombProgram + -DroseRunProgram=avx512_roseRunProgram + -DroseRunProgram_l=avx512_roseRunProgram_l + -DroseStreamEodExec=avx512_roseStreamEodExec + -DroseStreamExec=avx512_roseStreamExec + -DrshuftiExec=avx512_rshuftiExec + -DrtruffleExec=avx512_rtruffleExec + -Drun_accel=avx512_run_accel + -DsetSomFromSomAware=avx512_setSomFromSomAware + -DshuftiDoubleExec=avx512_shuftiDoubleExec + -DshuftiExec=avx512_shuftiExec + -Dsimd_onebit_masks=avx512_simd_onebit_masks + -Dsize_compress_stream=avx512_size_compress_stream + -DstoreSomToStream=avx512_storeSomToStream + -Dstorecompressed128=avx512_storecompressed128 + -Dstorecompressed256=avx512_storecompressed256 + -Dstorecompressed32=avx512_storecompressed32 + -Dstorecompressed384=avx512_storecompressed384 + -Dstorecompressed512=avx512_storecompressed512 + -Dstorecompressed64=avx512_storecompressed64 + -DstreamInitSufPQ=avx512_streamInitSufPQ + -DtruffleExec=avx512_truffleExec + -Dvbs_mask_data=avx512_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux-aarch64.txt b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..bcfac9809c --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux-aarch64.txt @@ -0,0 +1,480 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx512) +target_compile_options(libs-hyperscan-runtime_avx512 PRIVATE + -DHAVE_SSE41 + -DHAVE_SSE42 + -DHAVE_POPCOUNT_INSTR + -DHAVE_AVX + -DHAVE_AVX2 + -DHAVE_AVX512 + -DCrc32c_ComputeBuf=avx512_Crc32c_ComputeBuf + -DblockInitSufPQ=avx512_blockInitSufPQ + -Dcompress_stream=avx512_compress_stream + -Dcpuid_flags=avx512_cpuid_flags + -Dcpuid_tune=avx512_cpuid_tune + -DdbIsValid=avx512_dbIsValid + -DdoAccel128=avx512_doAccel128 + -DdoAccel256=avx512_doAccel256 + -DdoAccel32=avx512_doAccel32 + -DdoAccel384=avx512_doAccel384 + -DdoAccel512=avx512_doAccel512 + -DdoAccel64=avx512_doAccel64 + -Dexpand_stream=avx512_expand_stream + -DfdrExec=avx512_fdrExec + -DfdrExecStreaming=avx512_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx512_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx512_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx512_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx512_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx512_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx512_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx512_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx512_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx512_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx512_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx512_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx512_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx512_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx512_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx512_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx512_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx512_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx512_flushStoredSomMatches_i + -DhandleSomExternal=avx512_handleSomExternal + -DhandleSomInternal=avx512_handleSomInternal + -Dhs_alloc_scratch=avx512_hs_alloc_scratch + -Dhs_clone_scratch=avx512_hs_clone_scratch + -Dhs_close_stream=avx512_hs_close_stream + -Dhs_compress_stream=avx512_hs_compress_stream + -Dhs_copy_stream=avx512_hs_copy_stream + -Dhs_database_alloc=avx512_hs_database_alloc + -Dhs_database_free=avx512_hs_database_free + -Dhs_database_info=avx512_hs_database_info + -Dhs_database_size=avx512_hs_database_size + -Dhs_deserialize_database=avx512_hs_deserialize_database + -Dhs_deserialize_database_at=avx512_hs_deserialize_database_at + -Dhs_expand_stream=avx512_hs_expand_stream + -Dhs_free_database=avx512_hs_free_database + -Dhs_free_scratch=avx512_hs_free_scratch + -Dhs_misc_alloc=avx512_hs_misc_alloc + -Dhs_misc_free=avx512_hs_misc_free + -Dhs_open_stream=avx512_hs_open_stream + -Dhs_reset_and_copy_stream=avx512_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx512_hs_reset_and_expand_stream + -Dhs_reset_stream=avx512_hs_reset_stream + -Dhs_scan=avx512_hs_scan + -Dhs_scan_stream=avx512_hs_scan_stream + -Dhs_scan_vector=avx512_hs_scan_vector + -Dhs_scratch_alloc=avx512_hs_scratch_alloc + -Dhs_scratch_free=avx512_hs_scratch_free + -Dhs_scratch_size=avx512_hs_scratch_size + -Dhs_serialize_database=avx512_hs_serialize_database + -Dhs_serialized_database_info=avx512_hs_serialized_database_info + -Dhs_serialized_database_size=avx512_hs_serialized_database_size + -Dhs_set_allocator=avx512_hs_set_allocator + -Dhs_set_database_allocator=avx512_hs_set_database_allocator + -Dhs_set_misc_allocator=avx512_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx512_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx512_hs_set_stream_allocator + -Dhs_stream_alloc=avx512_hs_stream_alloc + -Dhs_stream_free=avx512_hs_stream_free + -Dhs_stream_size=avx512_hs_stream_size + -Dhs_valid_platform=avx512_hs_valid_platform + -Dhs_version=avx512_hs_version + -DhwlmExec=avx512_hwlmExec + -DhwlmExecStreaming=avx512_hwlmExecStreaming + -DloadSomFromStream=avx512_loadSomFromStream + -Dloadcompressed128=avx512_loadcompressed128 + -Dloadcompressed256=avx512_loadcompressed256 + -Dloadcompressed32=avx512_loadcompressed32 + -Dloadcompressed384=avx512_loadcompressed384 + -Dloadcompressed512=avx512_loadcompressed512 + -Dloadcompressed64=avx512_loadcompressed64 + -Dmcsheng_pext_mask=avx512_mcsheng_pext_mask + -Dmm_mask_mask=avx512_mm_mask_mask + -Dmm_shuffle_end=avx512_mm_shuffle_end + -Dmmbit_keyshift_lut=avx512_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx512_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx512_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx512_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx512_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx512_nfaBlockExecReverse + -DnfaCheckFinalState=avx512_nfaCheckFinalState + -DnfaExecCastle_Q=avx512_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx512_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx512_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx512_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx512_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx512_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx512_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx512_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx512_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx512_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx512_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx512_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx512_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx512_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx512_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx512_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx512_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx512_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx512_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx512_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx512_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx512_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx512_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx512_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx512_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx512_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx512_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx512_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx512_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx512_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx512_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx512_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx512_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx512_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx512_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx512_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx512_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx512_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx512_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx512_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx512_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx512_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx512_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx512_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx512_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx512_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx512_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx512_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx512_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx512_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx512_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx512_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx512_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx512_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx512_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx512_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx512_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx512_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx512_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx512_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx512_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx512_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx512_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx512_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx512_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx512_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx512_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx512_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx512_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx512_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx512_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx512_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx512_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx512_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx512_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx512_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx512_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx512_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx512_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx512_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx512_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx512_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx512_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx512_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx512_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx512_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx512_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx512_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx512_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx512_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx512_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx512_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx512_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx512_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx512_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx512_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx512_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx512_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx512_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx512_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx512_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx512_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx512_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx512_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx512_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx512_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx512_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx512_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx512_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx512_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx512_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx512_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx512_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx512_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx512_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx512_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx512_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx512_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx512_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx512_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx512_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx512_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx512_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx512_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx512_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx512_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx512_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx512_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx512_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx512_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx512_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx512_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx512_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx512_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx512_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx512_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx512_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx512_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx512_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx512_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx512_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx512_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx512_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx512_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx512_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx512_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx512_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx512_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx512_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx512_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx512_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx512_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx512_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx512_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx512_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx512_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx512_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx512_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx512_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx512_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx512_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx512_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx512_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx512_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx512_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx512_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx512_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx512_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx512_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx512_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx512_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx512_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx512_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx512_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx512_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx512_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx512_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx512_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx512_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx512_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx512_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx512_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx512_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx512_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx512_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx512_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx512_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx512_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx512_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx512_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx512_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx512_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx512_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx512_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx512_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx512_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx512_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx512_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx512_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx512_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx512_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx512_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx512_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx512_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx512_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx512_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx512_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx512_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx512_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx512_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx512_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx512_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx512_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx512_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx512_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx512_nfaExecSheng_B + -DnfaExecSheng_Q=avx512_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx512_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx512_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx512_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx512_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx512_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx512_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx512_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx512_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx512_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx512_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx512_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx512_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx512_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx512_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx512_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx512_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx512_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx512_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx512_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx512_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx512_nfaExecTamarama_zombie_status + -DnfaExpandState=avx512_nfaExpandState + -DnfaGetZombieStatus=avx512_nfaGetZombieStatus + -DnfaInAcceptState=avx512_nfaInAcceptState + -DnfaInAnyAcceptState=avx512_nfaInAnyAcceptState + -DnfaInitCompressedState=avx512_nfaInitCompressedState + -DnfaQueueCompressState=avx512_nfaQueueCompressState + -DnfaQueueExec=avx512_nfaQueueExec + -DnfaQueueExec2_raw=avx512_nfaQueueExec2_raw + -DnfaQueueExecRose=avx512_nfaQueueExecRose + -DnfaQueueExecToMatch=avx512_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx512_nfaQueueExec_raw + -DnfaQueueInitState=avx512_nfaQueueInitState + -DnfaReportCurrentMatches=avx512_nfaReportCurrentMatches + -DnoodExec=avx512_noodExec + -DnoodExecStreaming=avx512_noodExecStreaming + -Dp_mask_arr=avx512_p_mask_arr + -Dp_mask_arr256=avx512_p_mask_arr256 + -DrepeatHasMatchBitmap=avx512_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx512_repeatHasMatchRange + -DrepeatHasMatchRing=avx512_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx512_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx512_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx512_repeatLastTopBitmap + -DrepeatLastTopRange=avx512_repeatLastTopRange + -DrepeatLastTopRing=avx512_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx512_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx512_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx512_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx512_repeatNextMatchRange + -DrepeatNextMatchRing=avx512_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx512_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx512_repeatNextMatchTrailer + -DrepeatPack=avx512_repeatPack + -DrepeatStoreBitmap=avx512_repeatStoreBitmap + -DrepeatStoreRange=avx512_repeatStoreRange + -DrepeatStoreRing=avx512_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx512_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx512_repeatStoreTrailer + -DrepeatUnpack=avx512_repeatUnpack + -DroseAnchoredCallback=avx512_roseAnchoredCallback + -DroseBlockExec=avx512_roseBlockExec + -DroseCallback=avx512_roseCallback + -DroseCatchUpAll=avx512_roseCatchUpAll + -DroseCatchUpMPV_i=avx512_roseCatchUpMPV_i + -DroseCatchUpSuf=avx512_roseCatchUpSuf + -DroseDelayRebuildCallback=avx512_roseDelayRebuildCallback + -DroseFloatingCallback=avx512_roseFloatingCallback + -DroseHandleChainMatch=avx512_roseHandleChainMatch + -DroseInitState=avx512_roseInitState + -DroseNfaAdaptor=avx512_roseNfaAdaptor + -DroseNfaEarliestSom=avx512_roseNfaEarliestSom + -DroseReportAdaptor=avx512_roseReportAdaptor + -DroseRunBoundaryProgram=avx512_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx512_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx512_roseRunLastFlushCombProgram + -DroseRunProgram=avx512_roseRunProgram + -DroseRunProgram_l=avx512_roseRunProgram_l + -DroseStreamEodExec=avx512_roseStreamEodExec + -DroseStreamExec=avx512_roseStreamExec + -DrshuftiExec=avx512_rshuftiExec + -DrtruffleExec=avx512_rtruffleExec + -Drun_accel=avx512_run_accel + -DsetSomFromSomAware=avx512_setSomFromSomAware + -DshuftiDoubleExec=avx512_shuftiDoubleExec + -DshuftiExec=avx512_shuftiExec + -Dsimd_onebit_masks=avx512_simd_onebit_masks + -Dsize_compress_stream=avx512_size_compress_stream + -DstoreSomToStream=avx512_storeSomToStream + -Dstorecompressed128=avx512_storecompressed128 + -Dstorecompressed256=avx512_storecompressed256 + -Dstorecompressed32=avx512_storecompressed32 + -Dstorecompressed384=avx512_storecompressed384 + -Dstorecompressed512=avx512_storecompressed512 + -Dstorecompressed64=avx512_storecompressed64 + -DstreamInitSufPQ=avx512_streamInitSufPQ + -DtruffleExec=avx512_truffleExec + -Dvbs_mask_data=avx512_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux.txt b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux.txt new file mode 100644 index 0000000000..322a106b42 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.linux.txt @@ -0,0 +1,493 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_avx512) +target_compile_options(libs-hyperscan-runtime_avx512 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -DHAVE_POPCOUNT_INSTR + -mpopcnt + -mavx + -DHAVE_AVX + -mavx2 + -mfma + -mbmi + -mbmi2 + -DHAVE_AVX2 + -mavx512f + -mavx512cd + -mavx512bw + -mavx512dq + -mavx512vl + -DHAVE_AVX512 + -DCrc32c_ComputeBuf=avx512_Crc32c_ComputeBuf + -DblockInitSufPQ=avx512_blockInitSufPQ + -Dcompress_stream=avx512_compress_stream + -Dcpuid_flags=avx512_cpuid_flags + -Dcpuid_tune=avx512_cpuid_tune + -DdbIsValid=avx512_dbIsValid + -DdoAccel128=avx512_doAccel128 + -DdoAccel256=avx512_doAccel256 + -DdoAccel32=avx512_doAccel32 + -DdoAccel384=avx512_doAccel384 + -DdoAccel512=avx512_doAccel512 + -DdoAccel64=avx512_doAccel64 + -Dexpand_stream=avx512_expand_stream + -DfdrExec=avx512_fdrExec + -DfdrExecStreaming=avx512_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=avx512_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=avx512_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=avx512_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=avx512_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=avx512_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=avx512_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=avx512_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=avx512_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=avx512_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=avx512_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=avx512_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=avx512_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=avx512_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=avx512_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=avx512_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=avx512_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=avx512_flushQueuedLiterals_i + -DflushStoredSomMatches_i=avx512_flushStoredSomMatches_i + -DhandleSomExternal=avx512_handleSomExternal + -DhandleSomInternal=avx512_handleSomInternal + -Dhs_alloc_scratch=avx512_hs_alloc_scratch + -Dhs_clone_scratch=avx512_hs_clone_scratch + -Dhs_close_stream=avx512_hs_close_stream + -Dhs_compress_stream=avx512_hs_compress_stream + -Dhs_copy_stream=avx512_hs_copy_stream + -Dhs_database_alloc=avx512_hs_database_alloc + -Dhs_database_free=avx512_hs_database_free + -Dhs_database_info=avx512_hs_database_info + -Dhs_database_size=avx512_hs_database_size + -Dhs_deserialize_database=avx512_hs_deserialize_database + -Dhs_deserialize_database_at=avx512_hs_deserialize_database_at + -Dhs_expand_stream=avx512_hs_expand_stream + -Dhs_free_database=avx512_hs_free_database + -Dhs_free_scratch=avx512_hs_free_scratch + -Dhs_misc_alloc=avx512_hs_misc_alloc + -Dhs_misc_free=avx512_hs_misc_free + -Dhs_open_stream=avx512_hs_open_stream + -Dhs_reset_and_copy_stream=avx512_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=avx512_hs_reset_and_expand_stream + -Dhs_reset_stream=avx512_hs_reset_stream + -Dhs_scan=avx512_hs_scan + -Dhs_scan_stream=avx512_hs_scan_stream + -Dhs_scan_vector=avx512_hs_scan_vector + -Dhs_scratch_alloc=avx512_hs_scratch_alloc + -Dhs_scratch_free=avx512_hs_scratch_free + -Dhs_scratch_size=avx512_hs_scratch_size + -Dhs_serialize_database=avx512_hs_serialize_database + -Dhs_serialized_database_info=avx512_hs_serialized_database_info + -Dhs_serialized_database_size=avx512_hs_serialized_database_size + -Dhs_set_allocator=avx512_hs_set_allocator + -Dhs_set_database_allocator=avx512_hs_set_database_allocator + -Dhs_set_misc_allocator=avx512_hs_set_misc_allocator + -Dhs_set_scratch_allocator=avx512_hs_set_scratch_allocator + -Dhs_set_stream_allocator=avx512_hs_set_stream_allocator + -Dhs_stream_alloc=avx512_hs_stream_alloc + -Dhs_stream_free=avx512_hs_stream_free + -Dhs_stream_size=avx512_hs_stream_size + -Dhs_valid_platform=avx512_hs_valid_platform + -Dhs_version=avx512_hs_version + -DhwlmExec=avx512_hwlmExec + -DhwlmExecStreaming=avx512_hwlmExecStreaming + -DloadSomFromStream=avx512_loadSomFromStream + -Dloadcompressed128=avx512_loadcompressed128 + -Dloadcompressed256=avx512_loadcompressed256 + -Dloadcompressed32=avx512_loadcompressed32 + -Dloadcompressed384=avx512_loadcompressed384 + -Dloadcompressed512=avx512_loadcompressed512 + -Dloadcompressed64=avx512_loadcompressed64 + -Dmcsheng_pext_mask=avx512_mcsheng_pext_mask + -Dmm_mask_mask=avx512_mm_mask_mask + -Dmm_shuffle_end=avx512_mm_shuffle_end + -Dmmbit_keyshift_lut=avx512_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=avx512_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=avx512_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=avx512_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=avx512_mmbit_zero_to_lut + -DnfaBlockExecReverse=avx512_nfaBlockExecReverse + -DnfaCheckFinalState=avx512_nfaCheckFinalState + -DnfaExecCastle_Q=avx512_nfaExecCastle_Q + -DnfaExecCastle_Q2=avx512_nfaExecCastle_Q2 + -DnfaExecCastle_QR=avx512_nfaExecCastle_QR + -DnfaExecCastle_expandState=avx512_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=avx512_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=avx512_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=avx512_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=avx512_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=avx512_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=avx512_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=avx512_nfaExecGough16_Q + -DnfaExecGough16_Q2=avx512_nfaExecGough16_Q2 + -DnfaExecGough16_QR=avx512_nfaExecGough16_QR + -DnfaExecGough16_expandState=avx512_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=avx512_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=avx512_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=avx512_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=avx512_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=avx512_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=avx512_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=avx512_nfaExecGough16_testEOD + -DnfaExecGough8_Q=avx512_nfaExecGough8_Q + -DnfaExecGough8_Q2=avx512_nfaExecGough8_Q2 + -DnfaExecGough8_QR=avx512_nfaExecGough8_QR + -DnfaExecGough8_expandState=avx512_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=avx512_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=avx512_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=avx512_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=avx512_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=avx512_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=avx512_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=avx512_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=avx512_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=avx512_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=avx512_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=avx512_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=avx512_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=avx512_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=avx512_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=avx512_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=avx512_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=avx512_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=avx512_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=avx512_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=avx512_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=avx512_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=avx512_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=avx512_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=avx512_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=avx512_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=avx512_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=avx512_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=avx512_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=avx512_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=avx512_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=avx512_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=avx512_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=avx512_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=avx512_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=avx512_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=avx512_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=avx512_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=avx512_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=avx512_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=avx512_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=avx512_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=avx512_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=avx512_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=avx512_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=avx512_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=avx512_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=avx512_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=avx512_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=avx512_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=avx512_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=avx512_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=avx512_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=avx512_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=avx512_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=avx512_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=avx512_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=avx512_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=avx512_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=avx512_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=avx512_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=avx512_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=avx512_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=avx512_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=avx512_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=avx512_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=avx512_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=avx512_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=avx512_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=avx512_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=avx512_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=avx512_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=avx512_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=avx512_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=avx512_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=avx512_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=avx512_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=avx512_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=avx512_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=avx512_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=avx512_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=avx512_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=avx512_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=avx512_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=avx512_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=avx512_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=avx512_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=avx512_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=avx512_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=avx512_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=avx512_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=avx512_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=avx512_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=avx512_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=avx512_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=avx512_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=avx512_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=avx512_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=avx512_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=avx512_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=avx512_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=avx512_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=avx512_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=avx512_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=avx512_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=avx512_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=avx512_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=avx512_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=avx512_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=avx512_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=avx512_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=avx512_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=avx512_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=avx512_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=avx512_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=avx512_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=avx512_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=avx512_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=avx512_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=avx512_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=avx512_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=avx512_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=avx512_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=avx512_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=avx512_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=avx512_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=avx512_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=avx512_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=avx512_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=avx512_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=avx512_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=avx512_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=avx512_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=avx512_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=avx512_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=avx512_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=avx512_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=avx512_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=avx512_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=avx512_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=avx512_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=avx512_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=avx512_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=avx512_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=avx512_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=avx512_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=avx512_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=avx512_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=avx512_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=avx512_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=avx512_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=avx512_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=avx512_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=avx512_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=avx512_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=avx512_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=avx512_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=avx512_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=avx512_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=avx512_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=avx512_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=avx512_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=avx512_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=avx512_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=avx512_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=avx512_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=avx512_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=avx512_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=avx512_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=avx512_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=avx512_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=avx512_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=avx512_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=avx512_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=avx512_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=avx512_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=avx512_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=avx512_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=avx512_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=avx512_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=avx512_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=avx512_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=avx512_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=avx512_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=avx512_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=avx512_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=avx512_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=avx512_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=avx512_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=avx512_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=avx512_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=avx512_nfaExecSheng_B + -DnfaExecSheng_Q=avx512_nfaExecSheng_Q + -DnfaExecSheng_Q2=avx512_nfaExecSheng_Q2 + -DnfaExecSheng_QR=avx512_nfaExecSheng_QR + -DnfaExecSheng_expandState=avx512_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=avx512_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=avx512_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=avx512_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=avx512_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=avx512_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=avx512_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=avx512_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=avx512_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=avx512_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=avx512_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=avx512_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=avx512_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=avx512_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=avx512_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=avx512_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=avx512_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=avx512_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=avx512_nfaExecTamarama_zombie_status + -DnfaExpandState=avx512_nfaExpandState + -DnfaGetZombieStatus=avx512_nfaGetZombieStatus + -DnfaInAcceptState=avx512_nfaInAcceptState + -DnfaInAnyAcceptState=avx512_nfaInAnyAcceptState + -DnfaInitCompressedState=avx512_nfaInitCompressedState + -DnfaQueueCompressState=avx512_nfaQueueCompressState + -DnfaQueueExec=avx512_nfaQueueExec + -DnfaQueueExec2_raw=avx512_nfaQueueExec2_raw + -DnfaQueueExecRose=avx512_nfaQueueExecRose + -DnfaQueueExecToMatch=avx512_nfaQueueExecToMatch + -DnfaQueueExec_raw=avx512_nfaQueueExec_raw + -DnfaQueueInitState=avx512_nfaQueueInitState + -DnfaReportCurrentMatches=avx512_nfaReportCurrentMatches + -DnoodExec=avx512_noodExec + -DnoodExecStreaming=avx512_noodExecStreaming + -Dp_mask_arr=avx512_p_mask_arr + -Dp_mask_arr256=avx512_p_mask_arr256 + -DrepeatHasMatchBitmap=avx512_repeatHasMatchBitmap + -DrepeatHasMatchRange=avx512_repeatHasMatchRange + -DrepeatHasMatchRing=avx512_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=avx512_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=avx512_repeatHasMatchTrailer + -DrepeatLastTopBitmap=avx512_repeatLastTopBitmap + -DrepeatLastTopRange=avx512_repeatLastTopRange + -DrepeatLastTopRing=avx512_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=avx512_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=avx512_repeatLastTopTrailer + -DrepeatNextMatchBitmap=avx512_repeatNextMatchBitmap + -DrepeatNextMatchRange=avx512_repeatNextMatchRange + -DrepeatNextMatchRing=avx512_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=avx512_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=avx512_repeatNextMatchTrailer + -DrepeatPack=avx512_repeatPack + -DrepeatStoreBitmap=avx512_repeatStoreBitmap + -DrepeatStoreRange=avx512_repeatStoreRange + -DrepeatStoreRing=avx512_repeatStoreRing + -DrepeatStoreSparseOptimalP=avx512_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=avx512_repeatStoreTrailer + -DrepeatUnpack=avx512_repeatUnpack + -DroseAnchoredCallback=avx512_roseAnchoredCallback + -DroseBlockExec=avx512_roseBlockExec + -DroseCallback=avx512_roseCallback + -DroseCatchUpAll=avx512_roseCatchUpAll + -DroseCatchUpMPV_i=avx512_roseCatchUpMPV_i + -DroseCatchUpSuf=avx512_roseCatchUpSuf + -DroseDelayRebuildCallback=avx512_roseDelayRebuildCallback + -DroseFloatingCallback=avx512_roseFloatingCallback + -DroseHandleChainMatch=avx512_roseHandleChainMatch + -DroseInitState=avx512_roseInitState + -DroseNfaAdaptor=avx512_roseNfaAdaptor + -DroseNfaEarliestSom=avx512_roseNfaEarliestSom + -DroseReportAdaptor=avx512_roseReportAdaptor + -DroseRunBoundaryProgram=avx512_roseRunBoundaryProgram + -DroseRunFlushCombProgram=avx512_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=avx512_roseRunLastFlushCombProgram + -DroseRunProgram=avx512_roseRunProgram + -DroseRunProgram_l=avx512_roseRunProgram_l + -DroseStreamEodExec=avx512_roseStreamEodExec + -DroseStreamExec=avx512_roseStreamExec + -DrshuftiExec=avx512_rshuftiExec + -DrtruffleExec=avx512_rtruffleExec + -Drun_accel=avx512_run_accel + -DsetSomFromSomAware=avx512_setSomFromSomAware + -DshuftiDoubleExec=avx512_shuftiDoubleExec + -DshuftiExec=avx512_shuftiExec + -Dsimd_onebit_masks=avx512_simd_onebit_masks + -Dsize_compress_stream=avx512_size_compress_stream + -DstoreSomToStream=avx512_storeSomToStream + -Dstorecompressed128=avx512_storecompressed128 + -Dstorecompressed256=avx512_storecompressed256 + -Dstorecompressed32=avx512_storecompressed32 + -Dstorecompressed384=avx512_storecompressed384 + -Dstorecompressed512=avx512_storecompressed512 + -Dstorecompressed64=avx512_storecompressed64 + -DstreamInitSufPQ=avx512_streamInitSufPQ + -DtruffleExec=avx512_truffleExec + -Dvbs_mask_data=avx512_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_avx512 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_avx512/CMakeLists.txt b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.txt index 322a106b42..3e0811fb22 100644 --- a/contrib/libs/hyperscan/runtime_avx512/CMakeLists.txt +++ b/contrib/libs/hyperscan/runtime_avx512/CMakeLists.txt @@ -6,488 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-hyperscan-runtime_avx512) -target_compile_options(libs-hyperscan-runtime_avx512 PRIVATE - -msse4.1 - -DHAVE_SSE41 - -msse4.2 - -DHAVE_SSE42 - -DHAVE_POPCOUNT_INSTR - -mpopcnt - -mavx - -DHAVE_AVX - -mavx2 - -mfma - -mbmi - -mbmi2 - -DHAVE_AVX2 - -mavx512f - -mavx512cd - -mavx512bw - -mavx512dq - -mavx512vl - -DHAVE_AVX512 - -DCrc32c_ComputeBuf=avx512_Crc32c_ComputeBuf - -DblockInitSufPQ=avx512_blockInitSufPQ - -Dcompress_stream=avx512_compress_stream - -Dcpuid_flags=avx512_cpuid_flags - -Dcpuid_tune=avx512_cpuid_tune - -DdbIsValid=avx512_dbIsValid - -DdoAccel128=avx512_doAccel128 - -DdoAccel256=avx512_doAccel256 - -DdoAccel32=avx512_doAccel32 - -DdoAccel384=avx512_doAccel384 - -DdoAccel512=avx512_doAccel512 - -DdoAccel64=avx512_doAccel64 - -Dexpand_stream=avx512_expand_stream - -DfdrExec=avx512_fdrExec - -DfdrExecStreaming=avx512_fdrExecStreaming - -Dfdr_exec_fat_teddy_msks1=avx512_fdr_exec_fat_teddy_msks1 - -Dfdr_exec_fat_teddy_msks1_pck=avx512_fdr_exec_fat_teddy_msks1_pck - -Dfdr_exec_fat_teddy_msks2=avx512_fdr_exec_fat_teddy_msks2 - -Dfdr_exec_fat_teddy_msks2_pck=avx512_fdr_exec_fat_teddy_msks2_pck - -Dfdr_exec_fat_teddy_msks3=avx512_fdr_exec_fat_teddy_msks3 - -Dfdr_exec_fat_teddy_msks3_pck=avx512_fdr_exec_fat_teddy_msks3_pck - -Dfdr_exec_fat_teddy_msks4=avx512_fdr_exec_fat_teddy_msks4 - -Dfdr_exec_fat_teddy_msks4_pck=avx512_fdr_exec_fat_teddy_msks4_pck - -Dfdr_exec_teddy_msks1=avx512_fdr_exec_teddy_msks1 - -Dfdr_exec_teddy_msks1_pck=avx512_fdr_exec_teddy_msks1_pck - -Dfdr_exec_teddy_msks2=avx512_fdr_exec_teddy_msks2 - -Dfdr_exec_teddy_msks2_pck=avx512_fdr_exec_teddy_msks2_pck - -Dfdr_exec_teddy_msks3=avx512_fdr_exec_teddy_msks3 - -Dfdr_exec_teddy_msks3_pck=avx512_fdr_exec_teddy_msks3_pck - -Dfdr_exec_teddy_msks4=avx512_fdr_exec_teddy_msks4 - -Dfdr_exec_teddy_msks4_pck=avx512_fdr_exec_teddy_msks4_pck - -DflushQueuedLiterals_i=avx512_flushQueuedLiterals_i - -DflushStoredSomMatches_i=avx512_flushStoredSomMatches_i - -DhandleSomExternal=avx512_handleSomExternal - -DhandleSomInternal=avx512_handleSomInternal - -Dhs_alloc_scratch=avx512_hs_alloc_scratch - -Dhs_clone_scratch=avx512_hs_clone_scratch - -Dhs_close_stream=avx512_hs_close_stream - -Dhs_compress_stream=avx512_hs_compress_stream - -Dhs_copy_stream=avx512_hs_copy_stream - -Dhs_database_alloc=avx512_hs_database_alloc - -Dhs_database_free=avx512_hs_database_free - -Dhs_database_info=avx512_hs_database_info - -Dhs_database_size=avx512_hs_database_size - -Dhs_deserialize_database=avx512_hs_deserialize_database - -Dhs_deserialize_database_at=avx512_hs_deserialize_database_at - -Dhs_expand_stream=avx512_hs_expand_stream - -Dhs_free_database=avx512_hs_free_database - -Dhs_free_scratch=avx512_hs_free_scratch - -Dhs_misc_alloc=avx512_hs_misc_alloc - -Dhs_misc_free=avx512_hs_misc_free - -Dhs_open_stream=avx512_hs_open_stream - -Dhs_reset_and_copy_stream=avx512_hs_reset_and_copy_stream - -Dhs_reset_and_expand_stream=avx512_hs_reset_and_expand_stream - -Dhs_reset_stream=avx512_hs_reset_stream - -Dhs_scan=avx512_hs_scan - -Dhs_scan_stream=avx512_hs_scan_stream - -Dhs_scan_vector=avx512_hs_scan_vector - -Dhs_scratch_alloc=avx512_hs_scratch_alloc - -Dhs_scratch_free=avx512_hs_scratch_free - -Dhs_scratch_size=avx512_hs_scratch_size - -Dhs_serialize_database=avx512_hs_serialize_database - -Dhs_serialized_database_info=avx512_hs_serialized_database_info - -Dhs_serialized_database_size=avx512_hs_serialized_database_size - -Dhs_set_allocator=avx512_hs_set_allocator - -Dhs_set_database_allocator=avx512_hs_set_database_allocator - -Dhs_set_misc_allocator=avx512_hs_set_misc_allocator - -Dhs_set_scratch_allocator=avx512_hs_set_scratch_allocator - -Dhs_set_stream_allocator=avx512_hs_set_stream_allocator - -Dhs_stream_alloc=avx512_hs_stream_alloc - -Dhs_stream_free=avx512_hs_stream_free - -Dhs_stream_size=avx512_hs_stream_size - -Dhs_valid_platform=avx512_hs_valid_platform - -Dhs_version=avx512_hs_version - -DhwlmExec=avx512_hwlmExec - -DhwlmExecStreaming=avx512_hwlmExecStreaming - -DloadSomFromStream=avx512_loadSomFromStream - -Dloadcompressed128=avx512_loadcompressed128 - -Dloadcompressed256=avx512_loadcompressed256 - -Dloadcompressed32=avx512_loadcompressed32 - -Dloadcompressed384=avx512_loadcompressed384 - -Dloadcompressed512=avx512_loadcompressed512 - -Dloadcompressed64=avx512_loadcompressed64 - -Dmcsheng_pext_mask=avx512_mcsheng_pext_mask - -Dmm_mask_mask=avx512_mm_mask_mask - -Dmm_shuffle_end=avx512_mm_shuffle_end - -Dmmbit_keyshift_lut=avx512_mmbit_keyshift_lut - -Dmmbit_maxlevel_direct_lut=avx512_mmbit_maxlevel_direct_lut - -Dmmbit_maxlevel_from_keyshift_lut=avx512_mmbit_maxlevel_from_keyshift_lut - -Dmmbit_root_offset_from_level=avx512_mmbit_root_offset_from_level - -Dmmbit_zero_to_lut=avx512_mmbit_zero_to_lut - -DnfaBlockExecReverse=avx512_nfaBlockExecReverse - -DnfaCheckFinalState=avx512_nfaCheckFinalState - -DnfaExecCastle_Q=avx512_nfaExecCastle_Q - -DnfaExecCastle_Q2=avx512_nfaExecCastle_Q2 - -DnfaExecCastle_QR=avx512_nfaExecCastle_QR - -DnfaExecCastle_expandState=avx512_nfaExecCastle_expandState - -DnfaExecCastle_inAccept=avx512_nfaExecCastle_inAccept - -DnfaExecCastle_inAnyAccept=avx512_nfaExecCastle_inAnyAccept - -DnfaExecCastle_initCompressedState=avx512_nfaExecCastle_initCompressedState - -DnfaExecCastle_queueCompressState=avx512_nfaExecCastle_queueCompressState - -DnfaExecCastle_queueInitState=avx512_nfaExecCastle_queueInitState - -DnfaExecCastle_reportCurrent=avx512_nfaExecCastle_reportCurrent - -DnfaExecGough16_Q=avx512_nfaExecGough16_Q - -DnfaExecGough16_Q2=avx512_nfaExecGough16_Q2 - -DnfaExecGough16_QR=avx512_nfaExecGough16_QR - -DnfaExecGough16_expandState=avx512_nfaExecGough16_expandState - -DnfaExecGough16_inAccept=avx512_nfaExecGough16_inAccept - -DnfaExecGough16_inAnyAccept=avx512_nfaExecGough16_inAnyAccept - -DnfaExecGough16_initCompressedState=avx512_nfaExecGough16_initCompressedState - -DnfaExecGough16_queueCompressState=avx512_nfaExecGough16_queueCompressState - -DnfaExecGough16_queueInitState=avx512_nfaExecGough16_queueInitState - -DnfaExecGough16_reportCurrent=avx512_nfaExecGough16_reportCurrent - -DnfaExecGough16_testEOD=avx512_nfaExecGough16_testEOD - -DnfaExecGough8_Q=avx512_nfaExecGough8_Q - -DnfaExecGough8_Q2=avx512_nfaExecGough8_Q2 - -DnfaExecGough8_QR=avx512_nfaExecGough8_QR - -DnfaExecGough8_expandState=avx512_nfaExecGough8_expandState - -DnfaExecGough8_inAccept=avx512_nfaExecGough8_inAccept - -DnfaExecGough8_inAnyAccept=avx512_nfaExecGough8_inAnyAccept - -DnfaExecGough8_initCompressedState=avx512_nfaExecGough8_initCompressedState - -DnfaExecGough8_queueCompressState=avx512_nfaExecGough8_queueCompressState - -DnfaExecGough8_queueInitState=avx512_nfaExecGough8_queueInitState - -DnfaExecGough8_reportCurrent=avx512_nfaExecGough8_reportCurrent - -DnfaExecGough8_testEOD=avx512_nfaExecGough8_testEOD - -DnfaExecLbrDot_Q=avx512_nfaExecLbrDot_Q - -DnfaExecLbrDot_Q2=avx512_nfaExecLbrDot_Q2 - -DnfaExecLbrDot_QR=avx512_nfaExecLbrDot_QR - -DnfaExecLbrDot_expandState=avx512_nfaExecLbrDot_expandState - -DnfaExecLbrDot_inAccept=avx512_nfaExecLbrDot_inAccept - -DnfaExecLbrDot_inAnyAccept=avx512_nfaExecLbrDot_inAnyAccept - -DnfaExecLbrDot_initCompressedState=avx512_nfaExecLbrDot_initCompressedState - -DnfaExecLbrDot_queueCompressState=avx512_nfaExecLbrDot_queueCompressState - -DnfaExecLbrDot_queueInitState=avx512_nfaExecLbrDot_queueInitState - -DnfaExecLbrDot_reportCurrent=avx512_nfaExecLbrDot_reportCurrent - -DnfaExecLbrNVerm_Q=avx512_nfaExecLbrNVerm_Q - -DnfaExecLbrNVerm_Q2=avx512_nfaExecLbrNVerm_Q2 - -DnfaExecLbrNVerm_QR=avx512_nfaExecLbrNVerm_QR - -DnfaExecLbrNVerm_expandState=avx512_nfaExecLbrNVerm_expandState - -DnfaExecLbrNVerm_inAccept=avx512_nfaExecLbrNVerm_inAccept - -DnfaExecLbrNVerm_inAnyAccept=avx512_nfaExecLbrNVerm_inAnyAccept - -DnfaExecLbrNVerm_initCompressedState=avx512_nfaExecLbrNVerm_initCompressedState - -DnfaExecLbrNVerm_queueCompressState=avx512_nfaExecLbrNVerm_queueCompressState - -DnfaExecLbrNVerm_queueInitState=avx512_nfaExecLbrNVerm_queueInitState - -DnfaExecLbrNVerm_reportCurrent=avx512_nfaExecLbrNVerm_reportCurrent - -DnfaExecLbrShuf_Q=avx512_nfaExecLbrShuf_Q - -DnfaExecLbrShuf_Q2=avx512_nfaExecLbrShuf_Q2 - -DnfaExecLbrShuf_QR=avx512_nfaExecLbrShuf_QR - -DnfaExecLbrShuf_expandState=avx512_nfaExecLbrShuf_expandState - -DnfaExecLbrShuf_inAccept=avx512_nfaExecLbrShuf_inAccept - -DnfaExecLbrShuf_inAnyAccept=avx512_nfaExecLbrShuf_inAnyAccept - -DnfaExecLbrShuf_initCompressedState=avx512_nfaExecLbrShuf_initCompressedState - -DnfaExecLbrShuf_queueCompressState=avx512_nfaExecLbrShuf_queueCompressState - -DnfaExecLbrShuf_queueInitState=avx512_nfaExecLbrShuf_queueInitState - -DnfaExecLbrShuf_reportCurrent=avx512_nfaExecLbrShuf_reportCurrent - -DnfaExecLbrTruf_Q=avx512_nfaExecLbrTruf_Q - -DnfaExecLbrTruf_Q2=avx512_nfaExecLbrTruf_Q2 - -DnfaExecLbrTruf_QR=avx512_nfaExecLbrTruf_QR - -DnfaExecLbrTruf_expandState=avx512_nfaExecLbrTruf_expandState - -DnfaExecLbrTruf_inAccept=avx512_nfaExecLbrTruf_inAccept - -DnfaExecLbrTruf_inAnyAccept=avx512_nfaExecLbrTruf_inAnyAccept - -DnfaExecLbrTruf_initCompressedState=avx512_nfaExecLbrTruf_initCompressedState - -DnfaExecLbrTruf_queueCompressState=avx512_nfaExecLbrTruf_queueCompressState - -DnfaExecLbrTruf_queueInitState=avx512_nfaExecLbrTruf_queueInitState - -DnfaExecLbrTruf_reportCurrent=avx512_nfaExecLbrTruf_reportCurrent - -DnfaExecLbrVerm_Q=avx512_nfaExecLbrVerm_Q - -DnfaExecLbrVerm_Q2=avx512_nfaExecLbrVerm_Q2 - -DnfaExecLbrVerm_QR=avx512_nfaExecLbrVerm_QR - -DnfaExecLbrVerm_expandState=avx512_nfaExecLbrVerm_expandState - -DnfaExecLbrVerm_inAccept=avx512_nfaExecLbrVerm_inAccept - -DnfaExecLbrVerm_inAnyAccept=avx512_nfaExecLbrVerm_inAnyAccept - -DnfaExecLbrVerm_initCompressedState=avx512_nfaExecLbrVerm_initCompressedState - -DnfaExecLbrVerm_queueCompressState=avx512_nfaExecLbrVerm_queueCompressState - -DnfaExecLbrVerm_queueInitState=avx512_nfaExecLbrVerm_queueInitState - -DnfaExecLbrVerm_reportCurrent=avx512_nfaExecLbrVerm_reportCurrent - -DnfaExecLimEx128_B_Reverse=avx512_nfaExecLimEx128_B_Reverse - -DnfaExecLimEx128_Q=avx512_nfaExecLimEx128_Q - -DnfaExecLimEx128_Q2=avx512_nfaExecLimEx128_Q2 - -DnfaExecLimEx128_QR=avx512_nfaExecLimEx128_QR - -DnfaExecLimEx128_expandState=avx512_nfaExecLimEx128_expandState - -DnfaExecLimEx128_inAccept=avx512_nfaExecLimEx128_inAccept - -DnfaExecLimEx128_inAnyAccept=avx512_nfaExecLimEx128_inAnyAccept - -DnfaExecLimEx128_initCompressedState=avx512_nfaExecLimEx128_initCompressedState - -DnfaExecLimEx128_queueCompressState=avx512_nfaExecLimEx128_queueCompressState - -DnfaExecLimEx128_queueInitState=avx512_nfaExecLimEx128_queueInitState - -DnfaExecLimEx128_reportCurrent=avx512_nfaExecLimEx128_reportCurrent - -DnfaExecLimEx128_testEOD=avx512_nfaExecLimEx128_testEOD - -DnfaExecLimEx128_zombie_status=avx512_nfaExecLimEx128_zombie_status - -DnfaExecLimEx256_B_Reverse=avx512_nfaExecLimEx256_B_Reverse - -DnfaExecLimEx256_Q=avx512_nfaExecLimEx256_Q - -DnfaExecLimEx256_Q2=avx512_nfaExecLimEx256_Q2 - -DnfaExecLimEx256_QR=avx512_nfaExecLimEx256_QR - -DnfaExecLimEx256_expandState=avx512_nfaExecLimEx256_expandState - -DnfaExecLimEx256_inAccept=avx512_nfaExecLimEx256_inAccept - -DnfaExecLimEx256_inAnyAccept=avx512_nfaExecLimEx256_inAnyAccept - -DnfaExecLimEx256_initCompressedState=avx512_nfaExecLimEx256_initCompressedState - -DnfaExecLimEx256_queueCompressState=avx512_nfaExecLimEx256_queueCompressState - -DnfaExecLimEx256_queueInitState=avx512_nfaExecLimEx256_queueInitState - -DnfaExecLimEx256_reportCurrent=avx512_nfaExecLimEx256_reportCurrent - -DnfaExecLimEx256_testEOD=avx512_nfaExecLimEx256_testEOD - -DnfaExecLimEx256_zombie_status=avx512_nfaExecLimEx256_zombie_status - -DnfaExecLimEx32_B_Reverse=avx512_nfaExecLimEx32_B_Reverse - -DnfaExecLimEx32_Q=avx512_nfaExecLimEx32_Q - -DnfaExecLimEx32_Q2=avx512_nfaExecLimEx32_Q2 - -DnfaExecLimEx32_QR=avx512_nfaExecLimEx32_QR - -DnfaExecLimEx32_expandState=avx512_nfaExecLimEx32_expandState - -DnfaExecLimEx32_inAccept=avx512_nfaExecLimEx32_inAccept - -DnfaExecLimEx32_inAnyAccept=avx512_nfaExecLimEx32_inAnyAccept - -DnfaExecLimEx32_initCompressedState=avx512_nfaExecLimEx32_initCompressedState - -DnfaExecLimEx32_queueCompressState=avx512_nfaExecLimEx32_queueCompressState - -DnfaExecLimEx32_queueInitState=avx512_nfaExecLimEx32_queueInitState - -DnfaExecLimEx32_reportCurrent=avx512_nfaExecLimEx32_reportCurrent - -DnfaExecLimEx32_testEOD=avx512_nfaExecLimEx32_testEOD - -DnfaExecLimEx32_zombie_status=avx512_nfaExecLimEx32_zombie_status - -DnfaExecLimEx384_B_Reverse=avx512_nfaExecLimEx384_B_Reverse - -DnfaExecLimEx384_Q=avx512_nfaExecLimEx384_Q - -DnfaExecLimEx384_Q2=avx512_nfaExecLimEx384_Q2 - -DnfaExecLimEx384_QR=avx512_nfaExecLimEx384_QR - -DnfaExecLimEx384_expandState=avx512_nfaExecLimEx384_expandState - -DnfaExecLimEx384_inAccept=avx512_nfaExecLimEx384_inAccept - -DnfaExecLimEx384_inAnyAccept=avx512_nfaExecLimEx384_inAnyAccept - -DnfaExecLimEx384_initCompressedState=avx512_nfaExecLimEx384_initCompressedState - -DnfaExecLimEx384_queueCompressState=avx512_nfaExecLimEx384_queueCompressState - -DnfaExecLimEx384_queueInitState=avx512_nfaExecLimEx384_queueInitState - -DnfaExecLimEx384_reportCurrent=avx512_nfaExecLimEx384_reportCurrent - -DnfaExecLimEx384_testEOD=avx512_nfaExecLimEx384_testEOD - -DnfaExecLimEx384_zombie_status=avx512_nfaExecLimEx384_zombie_status - -DnfaExecLimEx512_B_Reverse=avx512_nfaExecLimEx512_B_Reverse - -DnfaExecLimEx512_Q=avx512_nfaExecLimEx512_Q - -DnfaExecLimEx512_Q2=avx512_nfaExecLimEx512_Q2 - -DnfaExecLimEx512_QR=avx512_nfaExecLimEx512_QR - -DnfaExecLimEx512_expandState=avx512_nfaExecLimEx512_expandState - -DnfaExecLimEx512_inAccept=avx512_nfaExecLimEx512_inAccept - -DnfaExecLimEx512_inAnyAccept=avx512_nfaExecLimEx512_inAnyAccept - -DnfaExecLimEx512_initCompressedState=avx512_nfaExecLimEx512_initCompressedState - -DnfaExecLimEx512_queueCompressState=avx512_nfaExecLimEx512_queueCompressState - -DnfaExecLimEx512_queueInitState=avx512_nfaExecLimEx512_queueInitState - -DnfaExecLimEx512_reportCurrent=avx512_nfaExecLimEx512_reportCurrent - -DnfaExecLimEx512_testEOD=avx512_nfaExecLimEx512_testEOD - -DnfaExecLimEx512_zombie_status=avx512_nfaExecLimEx512_zombie_status - -DnfaExecLimEx64_B_Reverse=avx512_nfaExecLimEx64_B_Reverse - -DnfaExecLimEx64_Q=avx512_nfaExecLimEx64_Q - -DnfaExecLimEx64_Q2=avx512_nfaExecLimEx64_Q2 - -DnfaExecLimEx64_QR=avx512_nfaExecLimEx64_QR - -DnfaExecLimEx64_expandState=avx512_nfaExecLimEx64_expandState - -DnfaExecLimEx64_inAccept=avx512_nfaExecLimEx64_inAccept - -DnfaExecLimEx64_inAnyAccept=avx512_nfaExecLimEx64_inAnyAccept - -DnfaExecLimEx64_initCompressedState=avx512_nfaExecLimEx64_initCompressedState - -DnfaExecLimEx64_queueCompressState=avx512_nfaExecLimEx64_queueCompressState - -DnfaExecLimEx64_queueInitState=avx512_nfaExecLimEx64_queueInitState - -DnfaExecLimEx64_reportCurrent=avx512_nfaExecLimEx64_reportCurrent - -DnfaExecLimEx64_testEOD=avx512_nfaExecLimEx64_testEOD - -DnfaExecLimEx64_zombie_status=avx512_nfaExecLimEx64_zombie_status - -DnfaExecMcClellan16_B=avx512_nfaExecMcClellan16_B - -DnfaExecMcClellan16_Q=avx512_nfaExecMcClellan16_Q - -DnfaExecMcClellan16_Q2=avx512_nfaExecMcClellan16_Q2 - -DnfaExecMcClellan16_QR=avx512_nfaExecMcClellan16_QR - -DnfaExecMcClellan16_SimpStream=avx512_nfaExecMcClellan16_SimpStream - -DnfaExecMcClellan16_expandState=avx512_nfaExecMcClellan16_expandState - -DnfaExecMcClellan16_inAccept=avx512_nfaExecMcClellan16_inAccept - -DnfaExecMcClellan16_inAnyAccept=avx512_nfaExecMcClellan16_inAnyAccept - -DnfaExecMcClellan16_initCompressedState=avx512_nfaExecMcClellan16_initCompressedState - -DnfaExecMcClellan16_queueCompressState=avx512_nfaExecMcClellan16_queueCompressState - -DnfaExecMcClellan16_queueInitState=avx512_nfaExecMcClellan16_queueInitState - -DnfaExecMcClellan16_reportCurrent=avx512_nfaExecMcClellan16_reportCurrent - -DnfaExecMcClellan16_testEOD=avx512_nfaExecMcClellan16_testEOD - -DnfaExecMcClellan8_B=avx512_nfaExecMcClellan8_B - -DnfaExecMcClellan8_Q=avx512_nfaExecMcClellan8_Q - -DnfaExecMcClellan8_Q2=avx512_nfaExecMcClellan8_Q2 - -DnfaExecMcClellan8_QR=avx512_nfaExecMcClellan8_QR - -DnfaExecMcClellan8_SimpStream=avx512_nfaExecMcClellan8_SimpStream - -DnfaExecMcClellan8_expandState=avx512_nfaExecMcClellan8_expandState - -DnfaExecMcClellan8_inAccept=avx512_nfaExecMcClellan8_inAccept - -DnfaExecMcClellan8_inAnyAccept=avx512_nfaExecMcClellan8_inAnyAccept - -DnfaExecMcClellan8_initCompressedState=avx512_nfaExecMcClellan8_initCompressedState - -DnfaExecMcClellan8_queueCompressState=avx512_nfaExecMcClellan8_queueCompressState - -DnfaExecMcClellan8_queueInitState=avx512_nfaExecMcClellan8_queueInitState - -DnfaExecMcClellan8_reportCurrent=avx512_nfaExecMcClellan8_reportCurrent - -DnfaExecMcClellan8_testEOD=avx512_nfaExecMcClellan8_testEOD - -DnfaExecMcSheng16_Q=avx512_nfaExecMcSheng16_Q - -DnfaExecMcSheng16_Q2=avx512_nfaExecMcSheng16_Q2 - -DnfaExecMcSheng16_QR=avx512_nfaExecMcSheng16_QR - -DnfaExecMcSheng16_expandState=avx512_nfaExecMcSheng16_expandState - -DnfaExecMcSheng16_inAccept=avx512_nfaExecMcSheng16_inAccept - -DnfaExecMcSheng16_inAnyAccept=avx512_nfaExecMcSheng16_inAnyAccept - -DnfaExecMcSheng16_initCompressedState=avx512_nfaExecMcSheng16_initCompressedState - -DnfaExecMcSheng16_queueCompressState=avx512_nfaExecMcSheng16_queueCompressState - -DnfaExecMcSheng16_queueInitState=avx512_nfaExecMcSheng16_queueInitState - -DnfaExecMcSheng16_reportCurrent=avx512_nfaExecMcSheng16_reportCurrent - -DnfaExecMcSheng16_testEOD=avx512_nfaExecMcSheng16_testEOD - -DnfaExecMcSheng8_Q=avx512_nfaExecMcSheng8_Q - -DnfaExecMcSheng8_Q2=avx512_nfaExecMcSheng8_Q2 - -DnfaExecMcSheng8_QR=avx512_nfaExecMcSheng8_QR - -DnfaExecMcSheng8_expandState=avx512_nfaExecMcSheng8_expandState - -DnfaExecMcSheng8_inAccept=avx512_nfaExecMcSheng8_inAccept - -DnfaExecMcSheng8_inAnyAccept=avx512_nfaExecMcSheng8_inAnyAccept - -DnfaExecMcSheng8_initCompressedState=avx512_nfaExecMcSheng8_initCompressedState - -DnfaExecMcSheng8_queueCompressState=avx512_nfaExecMcSheng8_queueCompressState - -DnfaExecMcSheng8_queueInitState=avx512_nfaExecMcSheng8_queueInitState - -DnfaExecMcSheng8_reportCurrent=avx512_nfaExecMcSheng8_reportCurrent - -DnfaExecMcSheng8_testEOD=avx512_nfaExecMcSheng8_testEOD - -DnfaExecMpv_Q=avx512_nfaExecMpv_Q - -DnfaExecMpv_QueueExecRaw=avx512_nfaExecMpv_QueueExecRaw - -DnfaExecMpv_expandState=avx512_nfaExecMpv_expandState - -DnfaExecMpv_initCompressedState=avx512_nfaExecMpv_initCompressedState - -DnfaExecMpv_queueCompressState=avx512_nfaExecMpv_queueCompressState - -DnfaExecMpv_queueInitState=avx512_nfaExecMpv_queueInitState - -DnfaExecMpv_reportCurrent=avx512_nfaExecMpv_reportCurrent - -DnfaExecSheng_B=avx512_nfaExecSheng_B - -DnfaExecSheng_Q=avx512_nfaExecSheng_Q - -DnfaExecSheng_Q2=avx512_nfaExecSheng_Q2 - -DnfaExecSheng_QR=avx512_nfaExecSheng_QR - -DnfaExecSheng_expandState=avx512_nfaExecSheng_expandState - -DnfaExecSheng_inAccept=avx512_nfaExecSheng_inAccept - -DnfaExecSheng_inAnyAccept=avx512_nfaExecSheng_inAnyAccept - -DnfaExecSheng_initCompressedState=avx512_nfaExecSheng_initCompressedState - -DnfaExecSheng_queueCompressState=avx512_nfaExecSheng_queueCompressState - -DnfaExecSheng_queueInitState=avx512_nfaExecSheng_queueInitState - -DnfaExecSheng_reportCurrent=avx512_nfaExecSheng_reportCurrent - -DnfaExecSheng_testEOD=avx512_nfaExecSheng_testEOD - -DnfaExecTamarama_Q=avx512_nfaExecTamarama_Q - -DnfaExecTamarama_Q2=avx512_nfaExecTamarama_Q2 - -DnfaExecTamarama_QR=avx512_nfaExecTamarama_QR - -DnfaExecTamarama_expandState=avx512_nfaExecTamarama_expandState - -DnfaExecTamarama_inAccept=avx512_nfaExecTamarama_inAccept - -DnfaExecTamarama_inAnyAccept=avx512_nfaExecTamarama_inAnyAccept - -DnfaExecTamarama_queueCompressState=avx512_nfaExecTamarama_queueCompressState - -DnfaExecTamarama_queueInitState=avx512_nfaExecTamarama_queueInitState - -DnfaExecTamarama_reportCurrent=avx512_nfaExecTamarama_reportCurrent - -DnfaExecTamarama_testEOD=avx512_nfaExecTamarama_testEOD - -DnfaExecTamarama_zombie_status=avx512_nfaExecTamarama_zombie_status - -DnfaExpandState=avx512_nfaExpandState - -DnfaGetZombieStatus=avx512_nfaGetZombieStatus - -DnfaInAcceptState=avx512_nfaInAcceptState - -DnfaInAnyAcceptState=avx512_nfaInAnyAcceptState - -DnfaInitCompressedState=avx512_nfaInitCompressedState - -DnfaQueueCompressState=avx512_nfaQueueCompressState - -DnfaQueueExec=avx512_nfaQueueExec - -DnfaQueueExec2_raw=avx512_nfaQueueExec2_raw - -DnfaQueueExecRose=avx512_nfaQueueExecRose - -DnfaQueueExecToMatch=avx512_nfaQueueExecToMatch - -DnfaQueueExec_raw=avx512_nfaQueueExec_raw - -DnfaQueueInitState=avx512_nfaQueueInitState - -DnfaReportCurrentMatches=avx512_nfaReportCurrentMatches - -DnoodExec=avx512_noodExec - -DnoodExecStreaming=avx512_noodExecStreaming - -Dp_mask_arr=avx512_p_mask_arr - -Dp_mask_arr256=avx512_p_mask_arr256 - -DrepeatHasMatchBitmap=avx512_repeatHasMatchBitmap - -DrepeatHasMatchRange=avx512_repeatHasMatchRange - -DrepeatHasMatchRing=avx512_repeatHasMatchRing - -DrepeatHasMatchSparseOptimalP=avx512_repeatHasMatchSparseOptimalP - -DrepeatHasMatchTrailer=avx512_repeatHasMatchTrailer - -DrepeatLastTopBitmap=avx512_repeatLastTopBitmap - -DrepeatLastTopRange=avx512_repeatLastTopRange - -DrepeatLastTopRing=avx512_repeatLastTopRing - -DrepeatLastTopSparseOptimalP=avx512_repeatLastTopSparseOptimalP - -DrepeatLastTopTrailer=avx512_repeatLastTopTrailer - -DrepeatNextMatchBitmap=avx512_repeatNextMatchBitmap - -DrepeatNextMatchRange=avx512_repeatNextMatchRange - -DrepeatNextMatchRing=avx512_repeatNextMatchRing - -DrepeatNextMatchSparseOptimalP=avx512_repeatNextMatchSparseOptimalP - -DrepeatNextMatchTrailer=avx512_repeatNextMatchTrailer - -DrepeatPack=avx512_repeatPack - -DrepeatStoreBitmap=avx512_repeatStoreBitmap - -DrepeatStoreRange=avx512_repeatStoreRange - -DrepeatStoreRing=avx512_repeatStoreRing - -DrepeatStoreSparseOptimalP=avx512_repeatStoreSparseOptimalP - -DrepeatStoreTrailer=avx512_repeatStoreTrailer - -DrepeatUnpack=avx512_repeatUnpack - -DroseAnchoredCallback=avx512_roseAnchoredCallback - -DroseBlockExec=avx512_roseBlockExec - -DroseCallback=avx512_roseCallback - -DroseCatchUpAll=avx512_roseCatchUpAll - -DroseCatchUpMPV_i=avx512_roseCatchUpMPV_i - -DroseCatchUpSuf=avx512_roseCatchUpSuf - -DroseDelayRebuildCallback=avx512_roseDelayRebuildCallback - -DroseFloatingCallback=avx512_roseFloatingCallback - -DroseHandleChainMatch=avx512_roseHandleChainMatch - -DroseInitState=avx512_roseInitState - -DroseNfaAdaptor=avx512_roseNfaAdaptor - -DroseNfaEarliestSom=avx512_roseNfaEarliestSom - -DroseReportAdaptor=avx512_roseReportAdaptor - -DroseRunBoundaryProgram=avx512_roseRunBoundaryProgram - -DroseRunFlushCombProgram=avx512_roseRunFlushCombProgram - -DroseRunLastFlushCombProgram=avx512_roseRunLastFlushCombProgram - -DroseRunProgram=avx512_roseRunProgram - -DroseRunProgram_l=avx512_roseRunProgram_l - -DroseStreamEodExec=avx512_roseStreamEodExec - -DroseStreamExec=avx512_roseStreamExec - -DrshuftiExec=avx512_rshuftiExec - -DrtruffleExec=avx512_rtruffleExec - -Drun_accel=avx512_run_accel - -DsetSomFromSomAware=avx512_setSomFromSomAware - -DshuftiDoubleExec=avx512_shuftiDoubleExec - -DshuftiExec=avx512_shuftiExec - -Dsimd_onebit_masks=avx512_simd_onebit_masks - -Dsize_compress_stream=avx512_size_compress_stream - -DstoreSomToStream=avx512_storeSomToStream - -Dstorecompressed128=avx512_storecompressed128 - -Dstorecompressed256=avx512_storecompressed256 - -Dstorecompressed32=avx512_storecompressed32 - -Dstorecompressed384=avx512_storecompressed384 - -Dstorecompressed512=avx512_storecompressed512 - -Dstorecompressed64=avx512_storecompressed64 - -DstreamInitSufPQ=avx512_streamInitSufPQ - -DtruffleExec=avx512_truffleExec - -Dvbs_mask_data=avx512_vbs_mask_data - -Wno-everything -) -target_include_directories(libs-hyperscan-runtime_avx512 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src -) -target_sources(libs-hyperscan-runtime_avx512 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/hyperscan/runtime_corei7/CMakeLists.darwin.txt b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.darwin.txt new file mode 100644 index 0000000000..77b4d7fd96 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.darwin.txt @@ -0,0 +1,480 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_corei7) +target_compile_options(libs-hyperscan-runtime_corei7 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -mpopcnt + -DHAVE_POPCOUNT_INSTR + -DCrc32c_ComputeBuf=corei7_Crc32c_ComputeBuf + -DblockInitSufPQ=corei7_blockInitSufPQ + -Dcompress_stream=corei7_compress_stream + -Dcpuid_flags=corei7_cpuid_flags + -Dcpuid_tune=corei7_cpuid_tune + -DdbIsValid=corei7_dbIsValid + -DdoAccel128=corei7_doAccel128 + -DdoAccel256=corei7_doAccel256 + -DdoAccel32=corei7_doAccel32 + -DdoAccel384=corei7_doAccel384 + -DdoAccel512=corei7_doAccel512 + -DdoAccel64=corei7_doAccel64 + -Dexpand_stream=corei7_expand_stream + -DfdrExec=corei7_fdrExec + -DfdrExecStreaming=corei7_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=corei7_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=corei7_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=corei7_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=corei7_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=corei7_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=corei7_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=corei7_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=corei7_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=corei7_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=corei7_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=corei7_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=corei7_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=corei7_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=corei7_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=corei7_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=corei7_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=corei7_flushQueuedLiterals_i + -DflushStoredSomMatches_i=corei7_flushStoredSomMatches_i + -DhandleSomExternal=corei7_handleSomExternal + -DhandleSomInternal=corei7_handleSomInternal + -Dhs_alloc_scratch=corei7_hs_alloc_scratch + -Dhs_clone_scratch=corei7_hs_clone_scratch + -Dhs_close_stream=corei7_hs_close_stream + -Dhs_compress_stream=corei7_hs_compress_stream + -Dhs_copy_stream=corei7_hs_copy_stream + -Dhs_database_alloc=corei7_hs_database_alloc + -Dhs_database_free=corei7_hs_database_free + -Dhs_database_info=corei7_hs_database_info + -Dhs_database_size=corei7_hs_database_size + -Dhs_deserialize_database=corei7_hs_deserialize_database + -Dhs_deserialize_database_at=corei7_hs_deserialize_database_at + -Dhs_expand_stream=corei7_hs_expand_stream + -Dhs_free_database=corei7_hs_free_database + -Dhs_free_scratch=corei7_hs_free_scratch + -Dhs_misc_alloc=corei7_hs_misc_alloc + -Dhs_misc_free=corei7_hs_misc_free + -Dhs_open_stream=corei7_hs_open_stream + -Dhs_reset_and_copy_stream=corei7_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=corei7_hs_reset_and_expand_stream + -Dhs_reset_stream=corei7_hs_reset_stream + -Dhs_scan=corei7_hs_scan + -Dhs_scan_stream=corei7_hs_scan_stream + -Dhs_scan_vector=corei7_hs_scan_vector + -Dhs_scratch_alloc=corei7_hs_scratch_alloc + -Dhs_scratch_free=corei7_hs_scratch_free + -Dhs_scratch_size=corei7_hs_scratch_size + -Dhs_serialize_database=corei7_hs_serialize_database + -Dhs_serialized_database_info=corei7_hs_serialized_database_info + -Dhs_serialized_database_size=corei7_hs_serialized_database_size + -Dhs_set_allocator=corei7_hs_set_allocator + -Dhs_set_database_allocator=corei7_hs_set_database_allocator + -Dhs_set_misc_allocator=corei7_hs_set_misc_allocator + -Dhs_set_scratch_allocator=corei7_hs_set_scratch_allocator + -Dhs_set_stream_allocator=corei7_hs_set_stream_allocator + -Dhs_stream_alloc=corei7_hs_stream_alloc + -Dhs_stream_free=corei7_hs_stream_free + -Dhs_stream_size=corei7_hs_stream_size + -Dhs_valid_platform=corei7_hs_valid_platform + -Dhs_version=corei7_hs_version + -DhwlmExec=corei7_hwlmExec + -DhwlmExecStreaming=corei7_hwlmExecStreaming + -DloadSomFromStream=corei7_loadSomFromStream + -Dloadcompressed128=corei7_loadcompressed128 + -Dloadcompressed256=corei7_loadcompressed256 + -Dloadcompressed32=corei7_loadcompressed32 + -Dloadcompressed384=corei7_loadcompressed384 + -Dloadcompressed512=corei7_loadcompressed512 + -Dloadcompressed64=corei7_loadcompressed64 + -Dmcsheng_pext_mask=corei7_mcsheng_pext_mask + -Dmm_mask_mask=corei7_mm_mask_mask + -Dmm_shuffle_end=corei7_mm_shuffle_end + -Dmmbit_keyshift_lut=corei7_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=corei7_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=corei7_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=corei7_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=corei7_mmbit_zero_to_lut + -DnfaBlockExecReverse=corei7_nfaBlockExecReverse + -DnfaCheckFinalState=corei7_nfaCheckFinalState + -DnfaExecCastle_Q=corei7_nfaExecCastle_Q + -DnfaExecCastle_Q2=corei7_nfaExecCastle_Q2 + -DnfaExecCastle_QR=corei7_nfaExecCastle_QR + -DnfaExecCastle_expandState=corei7_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=corei7_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=corei7_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=corei7_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=corei7_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=corei7_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=corei7_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=corei7_nfaExecGough16_Q + -DnfaExecGough16_Q2=corei7_nfaExecGough16_Q2 + -DnfaExecGough16_QR=corei7_nfaExecGough16_QR + -DnfaExecGough16_expandState=corei7_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=corei7_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=corei7_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=corei7_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=corei7_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=corei7_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=corei7_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=corei7_nfaExecGough16_testEOD + -DnfaExecGough8_Q=corei7_nfaExecGough8_Q + -DnfaExecGough8_Q2=corei7_nfaExecGough8_Q2 + -DnfaExecGough8_QR=corei7_nfaExecGough8_QR + -DnfaExecGough8_expandState=corei7_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=corei7_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=corei7_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=corei7_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=corei7_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=corei7_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=corei7_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=corei7_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=corei7_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=corei7_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=corei7_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=corei7_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=corei7_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=corei7_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=corei7_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=corei7_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=corei7_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=corei7_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=corei7_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=corei7_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=corei7_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=corei7_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=corei7_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=corei7_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=corei7_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=corei7_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=corei7_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=corei7_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=corei7_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=corei7_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=corei7_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=corei7_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=corei7_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=corei7_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=corei7_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=corei7_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=corei7_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=corei7_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=corei7_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=corei7_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=corei7_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=corei7_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=corei7_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=corei7_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=corei7_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=corei7_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=corei7_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=corei7_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=corei7_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=corei7_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=corei7_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=corei7_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=corei7_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=corei7_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=corei7_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=corei7_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=corei7_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=corei7_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=corei7_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=corei7_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=corei7_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=corei7_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=corei7_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=corei7_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=corei7_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=corei7_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=corei7_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=corei7_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=corei7_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=corei7_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=corei7_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=corei7_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=corei7_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=corei7_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=corei7_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=corei7_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=corei7_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=corei7_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=corei7_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=corei7_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=corei7_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=corei7_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=corei7_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=corei7_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=corei7_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=corei7_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=corei7_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=corei7_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=corei7_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=corei7_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=corei7_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=corei7_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=corei7_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=corei7_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=corei7_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=corei7_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=corei7_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=corei7_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=corei7_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=corei7_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=corei7_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=corei7_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=corei7_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=corei7_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=corei7_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=corei7_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=corei7_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=corei7_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=corei7_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=corei7_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=corei7_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=corei7_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=corei7_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=corei7_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=corei7_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=corei7_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=corei7_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=corei7_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=corei7_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=corei7_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=corei7_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=corei7_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=corei7_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=corei7_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=corei7_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=corei7_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=corei7_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=corei7_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=corei7_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=corei7_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=corei7_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=corei7_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=corei7_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=corei7_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=corei7_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=corei7_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=corei7_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=corei7_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=corei7_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=corei7_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=corei7_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=corei7_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=corei7_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=corei7_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=corei7_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=corei7_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=corei7_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=corei7_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=corei7_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=corei7_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=corei7_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=corei7_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=corei7_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=corei7_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=corei7_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=corei7_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=corei7_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=corei7_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=corei7_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=corei7_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=corei7_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=corei7_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=corei7_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=corei7_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=corei7_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=corei7_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=corei7_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=corei7_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=corei7_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=corei7_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=corei7_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=corei7_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=corei7_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=corei7_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=corei7_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=corei7_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=corei7_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=corei7_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=corei7_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=corei7_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=corei7_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=corei7_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=corei7_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=corei7_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=corei7_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=corei7_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=corei7_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=corei7_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=corei7_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=corei7_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=corei7_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=corei7_nfaExecSheng_B + -DnfaExecSheng_Q=corei7_nfaExecSheng_Q + -DnfaExecSheng_Q2=corei7_nfaExecSheng_Q2 + -DnfaExecSheng_QR=corei7_nfaExecSheng_QR + -DnfaExecSheng_expandState=corei7_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=corei7_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=corei7_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=corei7_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=corei7_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=corei7_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=corei7_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=corei7_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=corei7_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=corei7_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=corei7_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=corei7_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=corei7_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=corei7_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=corei7_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=corei7_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=corei7_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=corei7_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=corei7_nfaExecTamarama_zombie_status + -DnfaExpandState=corei7_nfaExpandState + -DnfaGetZombieStatus=corei7_nfaGetZombieStatus + -DnfaInAcceptState=corei7_nfaInAcceptState + -DnfaInAnyAcceptState=corei7_nfaInAnyAcceptState + -DnfaInitCompressedState=corei7_nfaInitCompressedState + -DnfaQueueCompressState=corei7_nfaQueueCompressState + -DnfaQueueExec=corei7_nfaQueueExec + -DnfaQueueExec2_raw=corei7_nfaQueueExec2_raw + -DnfaQueueExecRose=corei7_nfaQueueExecRose + -DnfaQueueExecToMatch=corei7_nfaQueueExecToMatch + -DnfaQueueExec_raw=corei7_nfaQueueExec_raw + -DnfaQueueInitState=corei7_nfaQueueInitState + -DnfaReportCurrentMatches=corei7_nfaReportCurrentMatches + -DnoodExec=corei7_noodExec + -DnoodExecStreaming=corei7_noodExecStreaming + -Dp_mask_arr=corei7_p_mask_arr + -Dp_mask_arr256=corei7_p_mask_arr256 + -DrepeatHasMatchBitmap=corei7_repeatHasMatchBitmap + -DrepeatHasMatchRange=corei7_repeatHasMatchRange + -DrepeatHasMatchRing=corei7_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=corei7_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=corei7_repeatHasMatchTrailer + -DrepeatLastTopBitmap=corei7_repeatLastTopBitmap + -DrepeatLastTopRange=corei7_repeatLastTopRange + -DrepeatLastTopRing=corei7_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=corei7_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=corei7_repeatLastTopTrailer + -DrepeatNextMatchBitmap=corei7_repeatNextMatchBitmap + -DrepeatNextMatchRange=corei7_repeatNextMatchRange + -DrepeatNextMatchRing=corei7_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=corei7_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=corei7_repeatNextMatchTrailer + -DrepeatPack=corei7_repeatPack + -DrepeatStoreBitmap=corei7_repeatStoreBitmap + -DrepeatStoreRange=corei7_repeatStoreRange + -DrepeatStoreRing=corei7_repeatStoreRing + -DrepeatStoreSparseOptimalP=corei7_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=corei7_repeatStoreTrailer + -DrepeatUnpack=corei7_repeatUnpack + -DroseAnchoredCallback=corei7_roseAnchoredCallback + -DroseBlockExec=corei7_roseBlockExec + -DroseCallback=corei7_roseCallback + -DroseCatchUpAll=corei7_roseCatchUpAll + -DroseCatchUpMPV_i=corei7_roseCatchUpMPV_i + -DroseCatchUpSuf=corei7_roseCatchUpSuf + -DroseDelayRebuildCallback=corei7_roseDelayRebuildCallback + -DroseFloatingCallback=corei7_roseFloatingCallback + -DroseHandleChainMatch=corei7_roseHandleChainMatch + -DroseInitState=corei7_roseInitState + -DroseNfaAdaptor=corei7_roseNfaAdaptor + -DroseNfaEarliestSom=corei7_roseNfaEarliestSom + -DroseReportAdaptor=corei7_roseReportAdaptor + -DroseRunBoundaryProgram=corei7_roseRunBoundaryProgram + -DroseRunFlushCombProgram=corei7_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=corei7_roseRunLastFlushCombProgram + -DroseRunProgram=corei7_roseRunProgram + -DroseRunProgram_l=corei7_roseRunProgram_l + -DroseStreamEodExec=corei7_roseStreamEodExec + -DroseStreamExec=corei7_roseStreamExec + -DrshuftiExec=corei7_rshuftiExec + -DrtruffleExec=corei7_rtruffleExec + -Drun_accel=corei7_run_accel + -DsetSomFromSomAware=corei7_setSomFromSomAware + -DshuftiDoubleExec=corei7_shuftiDoubleExec + -DshuftiExec=corei7_shuftiExec + -Dsimd_onebit_masks=corei7_simd_onebit_masks + -Dsize_compress_stream=corei7_size_compress_stream + -DstoreSomToStream=corei7_storeSomToStream + -Dstorecompressed128=corei7_storecompressed128 + -Dstorecompressed256=corei7_storecompressed256 + -Dstorecompressed32=corei7_storecompressed32 + -Dstorecompressed384=corei7_storecompressed384 + -Dstorecompressed512=corei7_storecompressed512 + -Dstorecompressed64=corei7_storecompressed64 + -DstreamInitSufPQ=corei7_streamInitSufPQ + -DtruffleExec=corei7_truffleExec + -Dvbs_mask_data=corei7_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux-aarch64.txt b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..33d224a7cd --- /dev/null +++ b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux-aarch64.txt @@ -0,0 +1,477 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_corei7) +target_compile_options(libs-hyperscan-runtime_corei7 PRIVATE + -DHAVE_SSE41 + -DHAVE_SSE42 + -DHAVE_POPCOUNT_INSTR + -DCrc32c_ComputeBuf=corei7_Crc32c_ComputeBuf + -DblockInitSufPQ=corei7_blockInitSufPQ + -Dcompress_stream=corei7_compress_stream + -Dcpuid_flags=corei7_cpuid_flags + -Dcpuid_tune=corei7_cpuid_tune + -DdbIsValid=corei7_dbIsValid + -DdoAccel128=corei7_doAccel128 + -DdoAccel256=corei7_doAccel256 + -DdoAccel32=corei7_doAccel32 + -DdoAccel384=corei7_doAccel384 + -DdoAccel512=corei7_doAccel512 + -DdoAccel64=corei7_doAccel64 + -Dexpand_stream=corei7_expand_stream + -DfdrExec=corei7_fdrExec + -DfdrExecStreaming=corei7_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=corei7_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=corei7_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=corei7_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=corei7_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=corei7_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=corei7_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=corei7_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=corei7_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=corei7_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=corei7_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=corei7_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=corei7_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=corei7_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=corei7_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=corei7_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=corei7_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=corei7_flushQueuedLiterals_i + -DflushStoredSomMatches_i=corei7_flushStoredSomMatches_i + -DhandleSomExternal=corei7_handleSomExternal + -DhandleSomInternal=corei7_handleSomInternal + -Dhs_alloc_scratch=corei7_hs_alloc_scratch + -Dhs_clone_scratch=corei7_hs_clone_scratch + -Dhs_close_stream=corei7_hs_close_stream + -Dhs_compress_stream=corei7_hs_compress_stream + -Dhs_copy_stream=corei7_hs_copy_stream + -Dhs_database_alloc=corei7_hs_database_alloc + -Dhs_database_free=corei7_hs_database_free + -Dhs_database_info=corei7_hs_database_info + -Dhs_database_size=corei7_hs_database_size + -Dhs_deserialize_database=corei7_hs_deserialize_database + -Dhs_deserialize_database_at=corei7_hs_deserialize_database_at + -Dhs_expand_stream=corei7_hs_expand_stream + -Dhs_free_database=corei7_hs_free_database + -Dhs_free_scratch=corei7_hs_free_scratch + -Dhs_misc_alloc=corei7_hs_misc_alloc + -Dhs_misc_free=corei7_hs_misc_free + -Dhs_open_stream=corei7_hs_open_stream + -Dhs_reset_and_copy_stream=corei7_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=corei7_hs_reset_and_expand_stream + -Dhs_reset_stream=corei7_hs_reset_stream + -Dhs_scan=corei7_hs_scan + -Dhs_scan_stream=corei7_hs_scan_stream + -Dhs_scan_vector=corei7_hs_scan_vector + -Dhs_scratch_alloc=corei7_hs_scratch_alloc + -Dhs_scratch_free=corei7_hs_scratch_free + -Dhs_scratch_size=corei7_hs_scratch_size + -Dhs_serialize_database=corei7_hs_serialize_database + -Dhs_serialized_database_info=corei7_hs_serialized_database_info + -Dhs_serialized_database_size=corei7_hs_serialized_database_size + -Dhs_set_allocator=corei7_hs_set_allocator + -Dhs_set_database_allocator=corei7_hs_set_database_allocator + -Dhs_set_misc_allocator=corei7_hs_set_misc_allocator + -Dhs_set_scratch_allocator=corei7_hs_set_scratch_allocator + -Dhs_set_stream_allocator=corei7_hs_set_stream_allocator + -Dhs_stream_alloc=corei7_hs_stream_alloc + -Dhs_stream_free=corei7_hs_stream_free + -Dhs_stream_size=corei7_hs_stream_size + -Dhs_valid_platform=corei7_hs_valid_platform + -Dhs_version=corei7_hs_version + -DhwlmExec=corei7_hwlmExec + -DhwlmExecStreaming=corei7_hwlmExecStreaming + -DloadSomFromStream=corei7_loadSomFromStream + -Dloadcompressed128=corei7_loadcompressed128 + -Dloadcompressed256=corei7_loadcompressed256 + -Dloadcompressed32=corei7_loadcompressed32 + -Dloadcompressed384=corei7_loadcompressed384 + -Dloadcompressed512=corei7_loadcompressed512 + -Dloadcompressed64=corei7_loadcompressed64 + -Dmcsheng_pext_mask=corei7_mcsheng_pext_mask + -Dmm_mask_mask=corei7_mm_mask_mask + -Dmm_shuffle_end=corei7_mm_shuffle_end + -Dmmbit_keyshift_lut=corei7_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=corei7_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=corei7_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=corei7_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=corei7_mmbit_zero_to_lut + -DnfaBlockExecReverse=corei7_nfaBlockExecReverse + -DnfaCheckFinalState=corei7_nfaCheckFinalState + -DnfaExecCastle_Q=corei7_nfaExecCastle_Q + -DnfaExecCastle_Q2=corei7_nfaExecCastle_Q2 + -DnfaExecCastle_QR=corei7_nfaExecCastle_QR + -DnfaExecCastle_expandState=corei7_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=corei7_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=corei7_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=corei7_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=corei7_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=corei7_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=corei7_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=corei7_nfaExecGough16_Q + -DnfaExecGough16_Q2=corei7_nfaExecGough16_Q2 + -DnfaExecGough16_QR=corei7_nfaExecGough16_QR + -DnfaExecGough16_expandState=corei7_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=corei7_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=corei7_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=corei7_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=corei7_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=corei7_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=corei7_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=corei7_nfaExecGough16_testEOD + -DnfaExecGough8_Q=corei7_nfaExecGough8_Q + -DnfaExecGough8_Q2=corei7_nfaExecGough8_Q2 + -DnfaExecGough8_QR=corei7_nfaExecGough8_QR + -DnfaExecGough8_expandState=corei7_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=corei7_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=corei7_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=corei7_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=corei7_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=corei7_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=corei7_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=corei7_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=corei7_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=corei7_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=corei7_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=corei7_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=corei7_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=corei7_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=corei7_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=corei7_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=corei7_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=corei7_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=corei7_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=corei7_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=corei7_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=corei7_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=corei7_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=corei7_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=corei7_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=corei7_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=corei7_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=corei7_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=corei7_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=corei7_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=corei7_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=corei7_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=corei7_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=corei7_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=corei7_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=corei7_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=corei7_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=corei7_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=corei7_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=corei7_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=corei7_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=corei7_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=corei7_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=corei7_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=corei7_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=corei7_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=corei7_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=corei7_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=corei7_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=corei7_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=corei7_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=corei7_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=corei7_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=corei7_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=corei7_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=corei7_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=corei7_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=corei7_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=corei7_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=corei7_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=corei7_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=corei7_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=corei7_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=corei7_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=corei7_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=corei7_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=corei7_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=corei7_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=corei7_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=corei7_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=corei7_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=corei7_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=corei7_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=corei7_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=corei7_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=corei7_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=corei7_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=corei7_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=corei7_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=corei7_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=corei7_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=corei7_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=corei7_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=corei7_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=corei7_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=corei7_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=corei7_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=corei7_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=corei7_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=corei7_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=corei7_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=corei7_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=corei7_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=corei7_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=corei7_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=corei7_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=corei7_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=corei7_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=corei7_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=corei7_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=corei7_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=corei7_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=corei7_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=corei7_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=corei7_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=corei7_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=corei7_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=corei7_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=corei7_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=corei7_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=corei7_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=corei7_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=corei7_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=corei7_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=corei7_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=corei7_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=corei7_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=corei7_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=corei7_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=corei7_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=corei7_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=corei7_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=corei7_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=corei7_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=corei7_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=corei7_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=corei7_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=corei7_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=corei7_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=corei7_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=corei7_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=corei7_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=corei7_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=corei7_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=corei7_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=corei7_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=corei7_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=corei7_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=corei7_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=corei7_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=corei7_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=corei7_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=corei7_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=corei7_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=corei7_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=corei7_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=corei7_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=corei7_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=corei7_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=corei7_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=corei7_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=corei7_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=corei7_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=corei7_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=corei7_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=corei7_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=corei7_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=corei7_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=corei7_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=corei7_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=corei7_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=corei7_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=corei7_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=corei7_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=corei7_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=corei7_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=corei7_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=corei7_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=corei7_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=corei7_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=corei7_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=corei7_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=corei7_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=corei7_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=corei7_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=corei7_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=corei7_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=corei7_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=corei7_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=corei7_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=corei7_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=corei7_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=corei7_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=corei7_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=corei7_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=corei7_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=corei7_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=corei7_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=corei7_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=corei7_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=corei7_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=corei7_nfaExecSheng_B + -DnfaExecSheng_Q=corei7_nfaExecSheng_Q + -DnfaExecSheng_Q2=corei7_nfaExecSheng_Q2 + -DnfaExecSheng_QR=corei7_nfaExecSheng_QR + -DnfaExecSheng_expandState=corei7_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=corei7_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=corei7_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=corei7_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=corei7_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=corei7_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=corei7_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=corei7_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=corei7_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=corei7_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=corei7_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=corei7_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=corei7_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=corei7_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=corei7_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=corei7_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=corei7_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=corei7_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=corei7_nfaExecTamarama_zombie_status + -DnfaExpandState=corei7_nfaExpandState + -DnfaGetZombieStatus=corei7_nfaGetZombieStatus + -DnfaInAcceptState=corei7_nfaInAcceptState + -DnfaInAnyAcceptState=corei7_nfaInAnyAcceptState + -DnfaInitCompressedState=corei7_nfaInitCompressedState + -DnfaQueueCompressState=corei7_nfaQueueCompressState + -DnfaQueueExec=corei7_nfaQueueExec + -DnfaQueueExec2_raw=corei7_nfaQueueExec2_raw + -DnfaQueueExecRose=corei7_nfaQueueExecRose + -DnfaQueueExecToMatch=corei7_nfaQueueExecToMatch + -DnfaQueueExec_raw=corei7_nfaQueueExec_raw + -DnfaQueueInitState=corei7_nfaQueueInitState + -DnfaReportCurrentMatches=corei7_nfaReportCurrentMatches + -DnoodExec=corei7_noodExec + -DnoodExecStreaming=corei7_noodExecStreaming + -Dp_mask_arr=corei7_p_mask_arr + -Dp_mask_arr256=corei7_p_mask_arr256 + -DrepeatHasMatchBitmap=corei7_repeatHasMatchBitmap + -DrepeatHasMatchRange=corei7_repeatHasMatchRange + -DrepeatHasMatchRing=corei7_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=corei7_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=corei7_repeatHasMatchTrailer + -DrepeatLastTopBitmap=corei7_repeatLastTopBitmap + -DrepeatLastTopRange=corei7_repeatLastTopRange + -DrepeatLastTopRing=corei7_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=corei7_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=corei7_repeatLastTopTrailer + -DrepeatNextMatchBitmap=corei7_repeatNextMatchBitmap + -DrepeatNextMatchRange=corei7_repeatNextMatchRange + -DrepeatNextMatchRing=corei7_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=corei7_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=corei7_repeatNextMatchTrailer + -DrepeatPack=corei7_repeatPack + -DrepeatStoreBitmap=corei7_repeatStoreBitmap + -DrepeatStoreRange=corei7_repeatStoreRange + -DrepeatStoreRing=corei7_repeatStoreRing + -DrepeatStoreSparseOptimalP=corei7_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=corei7_repeatStoreTrailer + -DrepeatUnpack=corei7_repeatUnpack + -DroseAnchoredCallback=corei7_roseAnchoredCallback + -DroseBlockExec=corei7_roseBlockExec + -DroseCallback=corei7_roseCallback + -DroseCatchUpAll=corei7_roseCatchUpAll + -DroseCatchUpMPV_i=corei7_roseCatchUpMPV_i + -DroseCatchUpSuf=corei7_roseCatchUpSuf + -DroseDelayRebuildCallback=corei7_roseDelayRebuildCallback + -DroseFloatingCallback=corei7_roseFloatingCallback + -DroseHandleChainMatch=corei7_roseHandleChainMatch + -DroseInitState=corei7_roseInitState + -DroseNfaAdaptor=corei7_roseNfaAdaptor + -DroseNfaEarliestSom=corei7_roseNfaEarliestSom + -DroseReportAdaptor=corei7_roseReportAdaptor + -DroseRunBoundaryProgram=corei7_roseRunBoundaryProgram + -DroseRunFlushCombProgram=corei7_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=corei7_roseRunLastFlushCombProgram + -DroseRunProgram=corei7_roseRunProgram + -DroseRunProgram_l=corei7_roseRunProgram_l + -DroseStreamEodExec=corei7_roseStreamEodExec + -DroseStreamExec=corei7_roseStreamExec + -DrshuftiExec=corei7_rshuftiExec + -DrtruffleExec=corei7_rtruffleExec + -Drun_accel=corei7_run_accel + -DsetSomFromSomAware=corei7_setSomFromSomAware + -DshuftiDoubleExec=corei7_shuftiDoubleExec + -DshuftiExec=corei7_shuftiExec + -Dsimd_onebit_masks=corei7_simd_onebit_masks + -Dsize_compress_stream=corei7_size_compress_stream + -DstoreSomToStream=corei7_storeSomToStream + -Dstorecompressed128=corei7_storecompressed128 + -Dstorecompressed256=corei7_storecompressed256 + -Dstorecompressed32=corei7_storecompressed32 + -Dstorecompressed384=corei7_storecompressed384 + -Dstorecompressed512=corei7_storecompressed512 + -Dstorecompressed64=corei7_storecompressed64 + -DstreamInitSufPQ=corei7_streamInitSufPQ + -DtruffleExec=corei7_truffleExec + -Dvbs_mask_data=corei7_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux.txt b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux.txt new file mode 100644 index 0000000000..77b4d7fd96 --- /dev/null +++ b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.linux.txt @@ -0,0 +1,480 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-hyperscan-runtime_corei7) +target_compile_options(libs-hyperscan-runtime_corei7 PRIVATE + -msse4.1 + -DHAVE_SSE41 + -msse4.2 + -DHAVE_SSE42 + -mpopcnt + -DHAVE_POPCOUNT_INSTR + -DCrc32c_ComputeBuf=corei7_Crc32c_ComputeBuf + -DblockInitSufPQ=corei7_blockInitSufPQ + -Dcompress_stream=corei7_compress_stream + -Dcpuid_flags=corei7_cpuid_flags + -Dcpuid_tune=corei7_cpuid_tune + -DdbIsValid=corei7_dbIsValid + -DdoAccel128=corei7_doAccel128 + -DdoAccel256=corei7_doAccel256 + -DdoAccel32=corei7_doAccel32 + -DdoAccel384=corei7_doAccel384 + -DdoAccel512=corei7_doAccel512 + -DdoAccel64=corei7_doAccel64 + -Dexpand_stream=corei7_expand_stream + -DfdrExec=corei7_fdrExec + -DfdrExecStreaming=corei7_fdrExecStreaming + -Dfdr_exec_fat_teddy_msks1=corei7_fdr_exec_fat_teddy_msks1 + -Dfdr_exec_fat_teddy_msks1_pck=corei7_fdr_exec_fat_teddy_msks1_pck + -Dfdr_exec_fat_teddy_msks2=corei7_fdr_exec_fat_teddy_msks2 + -Dfdr_exec_fat_teddy_msks2_pck=corei7_fdr_exec_fat_teddy_msks2_pck + -Dfdr_exec_fat_teddy_msks3=corei7_fdr_exec_fat_teddy_msks3 + -Dfdr_exec_fat_teddy_msks3_pck=corei7_fdr_exec_fat_teddy_msks3_pck + -Dfdr_exec_fat_teddy_msks4=corei7_fdr_exec_fat_teddy_msks4 + -Dfdr_exec_fat_teddy_msks4_pck=corei7_fdr_exec_fat_teddy_msks4_pck + -Dfdr_exec_teddy_msks1=corei7_fdr_exec_teddy_msks1 + -Dfdr_exec_teddy_msks1_pck=corei7_fdr_exec_teddy_msks1_pck + -Dfdr_exec_teddy_msks2=corei7_fdr_exec_teddy_msks2 + -Dfdr_exec_teddy_msks2_pck=corei7_fdr_exec_teddy_msks2_pck + -Dfdr_exec_teddy_msks3=corei7_fdr_exec_teddy_msks3 + -Dfdr_exec_teddy_msks3_pck=corei7_fdr_exec_teddy_msks3_pck + -Dfdr_exec_teddy_msks4=corei7_fdr_exec_teddy_msks4 + -Dfdr_exec_teddy_msks4_pck=corei7_fdr_exec_teddy_msks4_pck + -DflushQueuedLiterals_i=corei7_flushQueuedLiterals_i + -DflushStoredSomMatches_i=corei7_flushStoredSomMatches_i + -DhandleSomExternal=corei7_handleSomExternal + -DhandleSomInternal=corei7_handleSomInternal + -Dhs_alloc_scratch=corei7_hs_alloc_scratch + -Dhs_clone_scratch=corei7_hs_clone_scratch + -Dhs_close_stream=corei7_hs_close_stream + -Dhs_compress_stream=corei7_hs_compress_stream + -Dhs_copy_stream=corei7_hs_copy_stream + -Dhs_database_alloc=corei7_hs_database_alloc + -Dhs_database_free=corei7_hs_database_free + -Dhs_database_info=corei7_hs_database_info + -Dhs_database_size=corei7_hs_database_size + -Dhs_deserialize_database=corei7_hs_deserialize_database + -Dhs_deserialize_database_at=corei7_hs_deserialize_database_at + -Dhs_expand_stream=corei7_hs_expand_stream + -Dhs_free_database=corei7_hs_free_database + -Dhs_free_scratch=corei7_hs_free_scratch + -Dhs_misc_alloc=corei7_hs_misc_alloc + -Dhs_misc_free=corei7_hs_misc_free + -Dhs_open_stream=corei7_hs_open_stream + -Dhs_reset_and_copy_stream=corei7_hs_reset_and_copy_stream + -Dhs_reset_and_expand_stream=corei7_hs_reset_and_expand_stream + -Dhs_reset_stream=corei7_hs_reset_stream + -Dhs_scan=corei7_hs_scan + -Dhs_scan_stream=corei7_hs_scan_stream + -Dhs_scan_vector=corei7_hs_scan_vector + -Dhs_scratch_alloc=corei7_hs_scratch_alloc + -Dhs_scratch_free=corei7_hs_scratch_free + -Dhs_scratch_size=corei7_hs_scratch_size + -Dhs_serialize_database=corei7_hs_serialize_database + -Dhs_serialized_database_info=corei7_hs_serialized_database_info + -Dhs_serialized_database_size=corei7_hs_serialized_database_size + -Dhs_set_allocator=corei7_hs_set_allocator + -Dhs_set_database_allocator=corei7_hs_set_database_allocator + -Dhs_set_misc_allocator=corei7_hs_set_misc_allocator + -Dhs_set_scratch_allocator=corei7_hs_set_scratch_allocator + -Dhs_set_stream_allocator=corei7_hs_set_stream_allocator + -Dhs_stream_alloc=corei7_hs_stream_alloc + -Dhs_stream_free=corei7_hs_stream_free + -Dhs_stream_size=corei7_hs_stream_size + -Dhs_valid_platform=corei7_hs_valid_platform + -Dhs_version=corei7_hs_version + -DhwlmExec=corei7_hwlmExec + -DhwlmExecStreaming=corei7_hwlmExecStreaming + -DloadSomFromStream=corei7_loadSomFromStream + -Dloadcompressed128=corei7_loadcompressed128 + -Dloadcompressed256=corei7_loadcompressed256 + -Dloadcompressed32=corei7_loadcompressed32 + -Dloadcompressed384=corei7_loadcompressed384 + -Dloadcompressed512=corei7_loadcompressed512 + -Dloadcompressed64=corei7_loadcompressed64 + -Dmcsheng_pext_mask=corei7_mcsheng_pext_mask + -Dmm_mask_mask=corei7_mm_mask_mask + -Dmm_shuffle_end=corei7_mm_shuffle_end + -Dmmbit_keyshift_lut=corei7_mmbit_keyshift_lut + -Dmmbit_maxlevel_direct_lut=corei7_mmbit_maxlevel_direct_lut + -Dmmbit_maxlevel_from_keyshift_lut=corei7_mmbit_maxlevel_from_keyshift_lut + -Dmmbit_root_offset_from_level=corei7_mmbit_root_offset_from_level + -Dmmbit_zero_to_lut=corei7_mmbit_zero_to_lut + -DnfaBlockExecReverse=corei7_nfaBlockExecReverse + -DnfaCheckFinalState=corei7_nfaCheckFinalState + -DnfaExecCastle_Q=corei7_nfaExecCastle_Q + -DnfaExecCastle_Q2=corei7_nfaExecCastle_Q2 + -DnfaExecCastle_QR=corei7_nfaExecCastle_QR + -DnfaExecCastle_expandState=corei7_nfaExecCastle_expandState + -DnfaExecCastle_inAccept=corei7_nfaExecCastle_inAccept + -DnfaExecCastle_inAnyAccept=corei7_nfaExecCastle_inAnyAccept + -DnfaExecCastle_initCompressedState=corei7_nfaExecCastle_initCompressedState + -DnfaExecCastle_queueCompressState=corei7_nfaExecCastle_queueCompressState + -DnfaExecCastle_queueInitState=corei7_nfaExecCastle_queueInitState + -DnfaExecCastle_reportCurrent=corei7_nfaExecCastle_reportCurrent + -DnfaExecGough16_Q=corei7_nfaExecGough16_Q + -DnfaExecGough16_Q2=corei7_nfaExecGough16_Q2 + -DnfaExecGough16_QR=corei7_nfaExecGough16_QR + -DnfaExecGough16_expandState=corei7_nfaExecGough16_expandState + -DnfaExecGough16_inAccept=corei7_nfaExecGough16_inAccept + -DnfaExecGough16_inAnyAccept=corei7_nfaExecGough16_inAnyAccept + -DnfaExecGough16_initCompressedState=corei7_nfaExecGough16_initCompressedState + -DnfaExecGough16_queueCompressState=corei7_nfaExecGough16_queueCompressState + -DnfaExecGough16_queueInitState=corei7_nfaExecGough16_queueInitState + -DnfaExecGough16_reportCurrent=corei7_nfaExecGough16_reportCurrent + -DnfaExecGough16_testEOD=corei7_nfaExecGough16_testEOD + -DnfaExecGough8_Q=corei7_nfaExecGough8_Q + -DnfaExecGough8_Q2=corei7_nfaExecGough8_Q2 + -DnfaExecGough8_QR=corei7_nfaExecGough8_QR + -DnfaExecGough8_expandState=corei7_nfaExecGough8_expandState + -DnfaExecGough8_inAccept=corei7_nfaExecGough8_inAccept + -DnfaExecGough8_inAnyAccept=corei7_nfaExecGough8_inAnyAccept + -DnfaExecGough8_initCompressedState=corei7_nfaExecGough8_initCompressedState + -DnfaExecGough8_queueCompressState=corei7_nfaExecGough8_queueCompressState + -DnfaExecGough8_queueInitState=corei7_nfaExecGough8_queueInitState + -DnfaExecGough8_reportCurrent=corei7_nfaExecGough8_reportCurrent + -DnfaExecGough8_testEOD=corei7_nfaExecGough8_testEOD + -DnfaExecLbrDot_Q=corei7_nfaExecLbrDot_Q + -DnfaExecLbrDot_Q2=corei7_nfaExecLbrDot_Q2 + -DnfaExecLbrDot_QR=corei7_nfaExecLbrDot_QR + -DnfaExecLbrDot_expandState=corei7_nfaExecLbrDot_expandState + -DnfaExecLbrDot_inAccept=corei7_nfaExecLbrDot_inAccept + -DnfaExecLbrDot_inAnyAccept=corei7_nfaExecLbrDot_inAnyAccept + -DnfaExecLbrDot_initCompressedState=corei7_nfaExecLbrDot_initCompressedState + -DnfaExecLbrDot_queueCompressState=corei7_nfaExecLbrDot_queueCompressState + -DnfaExecLbrDot_queueInitState=corei7_nfaExecLbrDot_queueInitState + -DnfaExecLbrDot_reportCurrent=corei7_nfaExecLbrDot_reportCurrent + -DnfaExecLbrNVerm_Q=corei7_nfaExecLbrNVerm_Q + -DnfaExecLbrNVerm_Q2=corei7_nfaExecLbrNVerm_Q2 + -DnfaExecLbrNVerm_QR=corei7_nfaExecLbrNVerm_QR + -DnfaExecLbrNVerm_expandState=corei7_nfaExecLbrNVerm_expandState + -DnfaExecLbrNVerm_inAccept=corei7_nfaExecLbrNVerm_inAccept + -DnfaExecLbrNVerm_inAnyAccept=corei7_nfaExecLbrNVerm_inAnyAccept + -DnfaExecLbrNVerm_initCompressedState=corei7_nfaExecLbrNVerm_initCompressedState + -DnfaExecLbrNVerm_queueCompressState=corei7_nfaExecLbrNVerm_queueCompressState + -DnfaExecLbrNVerm_queueInitState=corei7_nfaExecLbrNVerm_queueInitState + -DnfaExecLbrNVerm_reportCurrent=corei7_nfaExecLbrNVerm_reportCurrent + -DnfaExecLbrShuf_Q=corei7_nfaExecLbrShuf_Q + -DnfaExecLbrShuf_Q2=corei7_nfaExecLbrShuf_Q2 + -DnfaExecLbrShuf_QR=corei7_nfaExecLbrShuf_QR + -DnfaExecLbrShuf_expandState=corei7_nfaExecLbrShuf_expandState + -DnfaExecLbrShuf_inAccept=corei7_nfaExecLbrShuf_inAccept + -DnfaExecLbrShuf_inAnyAccept=corei7_nfaExecLbrShuf_inAnyAccept + -DnfaExecLbrShuf_initCompressedState=corei7_nfaExecLbrShuf_initCompressedState + -DnfaExecLbrShuf_queueCompressState=corei7_nfaExecLbrShuf_queueCompressState + -DnfaExecLbrShuf_queueInitState=corei7_nfaExecLbrShuf_queueInitState + -DnfaExecLbrShuf_reportCurrent=corei7_nfaExecLbrShuf_reportCurrent + -DnfaExecLbrTruf_Q=corei7_nfaExecLbrTruf_Q + -DnfaExecLbrTruf_Q2=corei7_nfaExecLbrTruf_Q2 + -DnfaExecLbrTruf_QR=corei7_nfaExecLbrTruf_QR + -DnfaExecLbrTruf_expandState=corei7_nfaExecLbrTruf_expandState + -DnfaExecLbrTruf_inAccept=corei7_nfaExecLbrTruf_inAccept + -DnfaExecLbrTruf_inAnyAccept=corei7_nfaExecLbrTruf_inAnyAccept + -DnfaExecLbrTruf_initCompressedState=corei7_nfaExecLbrTruf_initCompressedState + -DnfaExecLbrTruf_queueCompressState=corei7_nfaExecLbrTruf_queueCompressState + -DnfaExecLbrTruf_queueInitState=corei7_nfaExecLbrTruf_queueInitState + -DnfaExecLbrTruf_reportCurrent=corei7_nfaExecLbrTruf_reportCurrent + -DnfaExecLbrVerm_Q=corei7_nfaExecLbrVerm_Q + -DnfaExecLbrVerm_Q2=corei7_nfaExecLbrVerm_Q2 + -DnfaExecLbrVerm_QR=corei7_nfaExecLbrVerm_QR + -DnfaExecLbrVerm_expandState=corei7_nfaExecLbrVerm_expandState + -DnfaExecLbrVerm_inAccept=corei7_nfaExecLbrVerm_inAccept + -DnfaExecLbrVerm_inAnyAccept=corei7_nfaExecLbrVerm_inAnyAccept + -DnfaExecLbrVerm_initCompressedState=corei7_nfaExecLbrVerm_initCompressedState + -DnfaExecLbrVerm_queueCompressState=corei7_nfaExecLbrVerm_queueCompressState + -DnfaExecLbrVerm_queueInitState=corei7_nfaExecLbrVerm_queueInitState + -DnfaExecLbrVerm_reportCurrent=corei7_nfaExecLbrVerm_reportCurrent + -DnfaExecLimEx128_B_Reverse=corei7_nfaExecLimEx128_B_Reverse + -DnfaExecLimEx128_Q=corei7_nfaExecLimEx128_Q + -DnfaExecLimEx128_Q2=corei7_nfaExecLimEx128_Q2 + -DnfaExecLimEx128_QR=corei7_nfaExecLimEx128_QR + -DnfaExecLimEx128_expandState=corei7_nfaExecLimEx128_expandState + -DnfaExecLimEx128_inAccept=corei7_nfaExecLimEx128_inAccept + -DnfaExecLimEx128_inAnyAccept=corei7_nfaExecLimEx128_inAnyAccept + -DnfaExecLimEx128_initCompressedState=corei7_nfaExecLimEx128_initCompressedState + -DnfaExecLimEx128_queueCompressState=corei7_nfaExecLimEx128_queueCompressState + -DnfaExecLimEx128_queueInitState=corei7_nfaExecLimEx128_queueInitState + -DnfaExecLimEx128_reportCurrent=corei7_nfaExecLimEx128_reportCurrent + -DnfaExecLimEx128_testEOD=corei7_nfaExecLimEx128_testEOD + -DnfaExecLimEx128_zombie_status=corei7_nfaExecLimEx128_zombie_status + -DnfaExecLimEx256_B_Reverse=corei7_nfaExecLimEx256_B_Reverse + -DnfaExecLimEx256_Q=corei7_nfaExecLimEx256_Q + -DnfaExecLimEx256_Q2=corei7_nfaExecLimEx256_Q2 + -DnfaExecLimEx256_QR=corei7_nfaExecLimEx256_QR + -DnfaExecLimEx256_expandState=corei7_nfaExecLimEx256_expandState + -DnfaExecLimEx256_inAccept=corei7_nfaExecLimEx256_inAccept + -DnfaExecLimEx256_inAnyAccept=corei7_nfaExecLimEx256_inAnyAccept + -DnfaExecLimEx256_initCompressedState=corei7_nfaExecLimEx256_initCompressedState + -DnfaExecLimEx256_queueCompressState=corei7_nfaExecLimEx256_queueCompressState + -DnfaExecLimEx256_queueInitState=corei7_nfaExecLimEx256_queueInitState + -DnfaExecLimEx256_reportCurrent=corei7_nfaExecLimEx256_reportCurrent + -DnfaExecLimEx256_testEOD=corei7_nfaExecLimEx256_testEOD + -DnfaExecLimEx256_zombie_status=corei7_nfaExecLimEx256_zombie_status + -DnfaExecLimEx32_B_Reverse=corei7_nfaExecLimEx32_B_Reverse + -DnfaExecLimEx32_Q=corei7_nfaExecLimEx32_Q + -DnfaExecLimEx32_Q2=corei7_nfaExecLimEx32_Q2 + -DnfaExecLimEx32_QR=corei7_nfaExecLimEx32_QR + -DnfaExecLimEx32_expandState=corei7_nfaExecLimEx32_expandState + -DnfaExecLimEx32_inAccept=corei7_nfaExecLimEx32_inAccept + -DnfaExecLimEx32_inAnyAccept=corei7_nfaExecLimEx32_inAnyAccept + -DnfaExecLimEx32_initCompressedState=corei7_nfaExecLimEx32_initCompressedState + -DnfaExecLimEx32_queueCompressState=corei7_nfaExecLimEx32_queueCompressState + -DnfaExecLimEx32_queueInitState=corei7_nfaExecLimEx32_queueInitState + -DnfaExecLimEx32_reportCurrent=corei7_nfaExecLimEx32_reportCurrent + -DnfaExecLimEx32_testEOD=corei7_nfaExecLimEx32_testEOD + -DnfaExecLimEx32_zombie_status=corei7_nfaExecLimEx32_zombie_status + -DnfaExecLimEx384_B_Reverse=corei7_nfaExecLimEx384_B_Reverse + -DnfaExecLimEx384_Q=corei7_nfaExecLimEx384_Q + -DnfaExecLimEx384_Q2=corei7_nfaExecLimEx384_Q2 + -DnfaExecLimEx384_QR=corei7_nfaExecLimEx384_QR + -DnfaExecLimEx384_expandState=corei7_nfaExecLimEx384_expandState + -DnfaExecLimEx384_inAccept=corei7_nfaExecLimEx384_inAccept + -DnfaExecLimEx384_inAnyAccept=corei7_nfaExecLimEx384_inAnyAccept + -DnfaExecLimEx384_initCompressedState=corei7_nfaExecLimEx384_initCompressedState + -DnfaExecLimEx384_queueCompressState=corei7_nfaExecLimEx384_queueCompressState + -DnfaExecLimEx384_queueInitState=corei7_nfaExecLimEx384_queueInitState + -DnfaExecLimEx384_reportCurrent=corei7_nfaExecLimEx384_reportCurrent + -DnfaExecLimEx384_testEOD=corei7_nfaExecLimEx384_testEOD + -DnfaExecLimEx384_zombie_status=corei7_nfaExecLimEx384_zombie_status + -DnfaExecLimEx512_B_Reverse=corei7_nfaExecLimEx512_B_Reverse + -DnfaExecLimEx512_Q=corei7_nfaExecLimEx512_Q + -DnfaExecLimEx512_Q2=corei7_nfaExecLimEx512_Q2 + -DnfaExecLimEx512_QR=corei7_nfaExecLimEx512_QR + -DnfaExecLimEx512_expandState=corei7_nfaExecLimEx512_expandState + -DnfaExecLimEx512_inAccept=corei7_nfaExecLimEx512_inAccept + -DnfaExecLimEx512_inAnyAccept=corei7_nfaExecLimEx512_inAnyAccept + -DnfaExecLimEx512_initCompressedState=corei7_nfaExecLimEx512_initCompressedState + -DnfaExecLimEx512_queueCompressState=corei7_nfaExecLimEx512_queueCompressState + -DnfaExecLimEx512_queueInitState=corei7_nfaExecLimEx512_queueInitState + -DnfaExecLimEx512_reportCurrent=corei7_nfaExecLimEx512_reportCurrent + -DnfaExecLimEx512_testEOD=corei7_nfaExecLimEx512_testEOD + -DnfaExecLimEx512_zombie_status=corei7_nfaExecLimEx512_zombie_status + -DnfaExecLimEx64_B_Reverse=corei7_nfaExecLimEx64_B_Reverse + -DnfaExecLimEx64_Q=corei7_nfaExecLimEx64_Q + -DnfaExecLimEx64_Q2=corei7_nfaExecLimEx64_Q2 + -DnfaExecLimEx64_QR=corei7_nfaExecLimEx64_QR + -DnfaExecLimEx64_expandState=corei7_nfaExecLimEx64_expandState + -DnfaExecLimEx64_inAccept=corei7_nfaExecLimEx64_inAccept + -DnfaExecLimEx64_inAnyAccept=corei7_nfaExecLimEx64_inAnyAccept + -DnfaExecLimEx64_initCompressedState=corei7_nfaExecLimEx64_initCompressedState + -DnfaExecLimEx64_queueCompressState=corei7_nfaExecLimEx64_queueCompressState + -DnfaExecLimEx64_queueInitState=corei7_nfaExecLimEx64_queueInitState + -DnfaExecLimEx64_reportCurrent=corei7_nfaExecLimEx64_reportCurrent + -DnfaExecLimEx64_testEOD=corei7_nfaExecLimEx64_testEOD + -DnfaExecLimEx64_zombie_status=corei7_nfaExecLimEx64_zombie_status + -DnfaExecMcClellan16_B=corei7_nfaExecMcClellan16_B + -DnfaExecMcClellan16_Q=corei7_nfaExecMcClellan16_Q + -DnfaExecMcClellan16_Q2=corei7_nfaExecMcClellan16_Q2 + -DnfaExecMcClellan16_QR=corei7_nfaExecMcClellan16_QR + -DnfaExecMcClellan16_SimpStream=corei7_nfaExecMcClellan16_SimpStream + -DnfaExecMcClellan16_expandState=corei7_nfaExecMcClellan16_expandState + -DnfaExecMcClellan16_inAccept=corei7_nfaExecMcClellan16_inAccept + -DnfaExecMcClellan16_inAnyAccept=corei7_nfaExecMcClellan16_inAnyAccept + -DnfaExecMcClellan16_initCompressedState=corei7_nfaExecMcClellan16_initCompressedState + -DnfaExecMcClellan16_queueCompressState=corei7_nfaExecMcClellan16_queueCompressState + -DnfaExecMcClellan16_queueInitState=corei7_nfaExecMcClellan16_queueInitState + -DnfaExecMcClellan16_reportCurrent=corei7_nfaExecMcClellan16_reportCurrent + -DnfaExecMcClellan16_testEOD=corei7_nfaExecMcClellan16_testEOD + -DnfaExecMcClellan8_B=corei7_nfaExecMcClellan8_B + -DnfaExecMcClellan8_Q=corei7_nfaExecMcClellan8_Q + -DnfaExecMcClellan8_Q2=corei7_nfaExecMcClellan8_Q2 + -DnfaExecMcClellan8_QR=corei7_nfaExecMcClellan8_QR + -DnfaExecMcClellan8_SimpStream=corei7_nfaExecMcClellan8_SimpStream + -DnfaExecMcClellan8_expandState=corei7_nfaExecMcClellan8_expandState + -DnfaExecMcClellan8_inAccept=corei7_nfaExecMcClellan8_inAccept + -DnfaExecMcClellan8_inAnyAccept=corei7_nfaExecMcClellan8_inAnyAccept + -DnfaExecMcClellan8_initCompressedState=corei7_nfaExecMcClellan8_initCompressedState + -DnfaExecMcClellan8_queueCompressState=corei7_nfaExecMcClellan8_queueCompressState + -DnfaExecMcClellan8_queueInitState=corei7_nfaExecMcClellan8_queueInitState + -DnfaExecMcClellan8_reportCurrent=corei7_nfaExecMcClellan8_reportCurrent + -DnfaExecMcClellan8_testEOD=corei7_nfaExecMcClellan8_testEOD + -DnfaExecMcSheng16_Q=corei7_nfaExecMcSheng16_Q + -DnfaExecMcSheng16_Q2=corei7_nfaExecMcSheng16_Q2 + -DnfaExecMcSheng16_QR=corei7_nfaExecMcSheng16_QR + -DnfaExecMcSheng16_expandState=corei7_nfaExecMcSheng16_expandState + -DnfaExecMcSheng16_inAccept=corei7_nfaExecMcSheng16_inAccept + -DnfaExecMcSheng16_inAnyAccept=corei7_nfaExecMcSheng16_inAnyAccept + -DnfaExecMcSheng16_initCompressedState=corei7_nfaExecMcSheng16_initCompressedState + -DnfaExecMcSheng16_queueCompressState=corei7_nfaExecMcSheng16_queueCompressState + -DnfaExecMcSheng16_queueInitState=corei7_nfaExecMcSheng16_queueInitState + -DnfaExecMcSheng16_reportCurrent=corei7_nfaExecMcSheng16_reportCurrent + -DnfaExecMcSheng16_testEOD=corei7_nfaExecMcSheng16_testEOD + -DnfaExecMcSheng8_Q=corei7_nfaExecMcSheng8_Q + -DnfaExecMcSheng8_Q2=corei7_nfaExecMcSheng8_Q2 + -DnfaExecMcSheng8_QR=corei7_nfaExecMcSheng8_QR + -DnfaExecMcSheng8_expandState=corei7_nfaExecMcSheng8_expandState + -DnfaExecMcSheng8_inAccept=corei7_nfaExecMcSheng8_inAccept + -DnfaExecMcSheng8_inAnyAccept=corei7_nfaExecMcSheng8_inAnyAccept + -DnfaExecMcSheng8_initCompressedState=corei7_nfaExecMcSheng8_initCompressedState + -DnfaExecMcSheng8_queueCompressState=corei7_nfaExecMcSheng8_queueCompressState + -DnfaExecMcSheng8_queueInitState=corei7_nfaExecMcSheng8_queueInitState + -DnfaExecMcSheng8_reportCurrent=corei7_nfaExecMcSheng8_reportCurrent + -DnfaExecMcSheng8_testEOD=corei7_nfaExecMcSheng8_testEOD + -DnfaExecMpv_Q=corei7_nfaExecMpv_Q + -DnfaExecMpv_QueueExecRaw=corei7_nfaExecMpv_QueueExecRaw + -DnfaExecMpv_expandState=corei7_nfaExecMpv_expandState + -DnfaExecMpv_initCompressedState=corei7_nfaExecMpv_initCompressedState + -DnfaExecMpv_queueCompressState=corei7_nfaExecMpv_queueCompressState + -DnfaExecMpv_queueInitState=corei7_nfaExecMpv_queueInitState + -DnfaExecMpv_reportCurrent=corei7_nfaExecMpv_reportCurrent + -DnfaExecSheng_B=corei7_nfaExecSheng_B + -DnfaExecSheng_Q=corei7_nfaExecSheng_Q + -DnfaExecSheng_Q2=corei7_nfaExecSheng_Q2 + -DnfaExecSheng_QR=corei7_nfaExecSheng_QR + -DnfaExecSheng_expandState=corei7_nfaExecSheng_expandState + -DnfaExecSheng_inAccept=corei7_nfaExecSheng_inAccept + -DnfaExecSheng_inAnyAccept=corei7_nfaExecSheng_inAnyAccept + -DnfaExecSheng_initCompressedState=corei7_nfaExecSheng_initCompressedState + -DnfaExecSheng_queueCompressState=corei7_nfaExecSheng_queueCompressState + -DnfaExecSheng_queueInitState=corei7_nfaExecSheng_queueInitState + -DnfaExecSheng_reportCurrent=corei7_nfaExecSheng_reportCurrent + -DnfaExecSheng_testEOD=corei7_nfaExecSheng_testEOD + -DnfaExecTamarama_Q=corei7_nfaExecTamarama_Q + -DnfaExecTamarama_Q2=corei7_nfaExecTamarama_Q2 + -DnfaExecTamarama_QR=corei7_nfaExecTamarama_QR + -DnfaExecTamarama_expandState=corei7_nfaExecTamarama_expandState + -DnfaExecTamarama_inAccept=corei7_nfaExecTamarama_inAccept + -DnfaExecTamarama_inAnyAccept=corei7_nfaExecTamarama_inAnyAccept + -DnfaExecTamarama_queueCompressState=corei7_nfaExecTamarama_queueCompressState + -DnfaExecTamarama_queueInitState=corei7_nfaExecTamarama_queueInitState + -DnfaExecTamarama_reportCurrent=corei7_nfaExecTamarama_reportCurrent + -DnfaExecTamarama_testEOD=corei7_nfaExecTamarama_testEOD + -DnfaExecTamarama_zombie_status=corei7_nfaExecTamarama_zombie_status + -DnfaExpandState=corei7_nfaExpandState + -DnfaGetZombieStatus=corei7_nfaGetZombieStatus + -DnfaInAcceptState=corei7_nfaInAcceptState + -DnfaInAnyAcceptState=corei7_nfaInAnyAcceptState + -DnfaInitCompressedState=corei7_nfaInitCompressedState + -DnfaQueueCompressState=corei7_nfaQueueCompressState + -DnfaQueueExec=corei7_nfaQueueExec + -DnfaQueueExec2_raw=corei7_nfaQueueExec2_raw + -DnfaQueueExecRose=corei7_nfaQueueExecRose + -DnfaQueueExecToMatch=corei7_nfaQueueExecToMatch + -DnfaQueueExec_raw=corei7_nfaQueueExec_raw + -DnfaQueueInitState=corei7_nfaQueueInitState + -DnfaReportCurrentMatches=corei7_nfaReportCurrentMatches + -DnoodExec=corei7_noodExec + -DnoodExecStreaming=corei7_noodExecStreaming + -Dp_mask_arr=corei7_p_mask_arr + -Dp_mask_arr256=corei7_p_mask_arr256 + -DrepeatHasMatchBitmap=corei7_repeatHasMatchBitmap + -DrepeatHasMatchRange=corei7_repeatHasMatchRange + -DrepeatHasMatchRing=corei7_repeatHasMatchRing + -DrepeatHasMatchSparseOptimalP=corei7_repeatHasMatchSparseOptimalP + -DrepeatHasMatchTrailer=corei7_repeatHasMatchTrailer + -DrepeatLastTopBitmap=corei7_repeatLastTopBitmap + -DrepeatLastTopRange=corei7_repeatLastTopRange + -DrepeatLastTopRing=corei7_repeatLastTopRing + -DrepeatLastTopSparseOptimalP=corei7_repeatLastTopSparseOptimalP + -DrepeatLastTopTrailer=corei7_repeatLastTopTrailer + -DrepeatNextMatchBitmap=corei7_repeatNextMatchBitmap + -DrepeatNextMatchRange=corei7_repeatNextMatchRange + -DrepeatNextMatchRing=corei7_repeatNextMatchRing + -DrepeatNextMatchSparseOptimalP=corei7_repeatNextMatchSparseOptimalP + -DrepeatNextMatchTrailer=corei7_repeatNextMatchTrailer + -DrepeatPack=corei7_repeatPack + -DrepeatStoreBitmap=corei7_repeatStoreBitmap + -DrepeatStoreRange=corei7_repeatStoreRange + -DrepeatStoreRing=corei7_repeatStoreRing + -DrepeatStoreSparseOptimalP=corei7_repeatStoreSparseOptimalP + -DrepeatStoreTrailer=corei7_repeatStoreTrailer + -DrepeatUnpack=corei7_repeatUnpack + -DroseAnchoredCallback=corei7_roseAnchoredCallback + -DroseBlockExec=corei7_roseBlockExec + -DroseCallback=corei7_roseCallback + -DroseCatchUpAll=corei7_roseCatchUpAll + -DroseCatchUpMPV_i=corei7_roseCatchUpMPV_i + -DroseCatchUpSuf=corei7_roseCatchUpSuf + -DroseDelayRebuildCallback=corei7_roseDelayRebuildCallback + -DroseFloatingCallback=corei7_roseFloatingCallback + -DroseHandleChainMatch=corei7_roseHandleChainMatch + -DroseInitState=corei7_roseInitState + -DroseNfaAdaptor=corei7_roseNfaAdaptor + -DroseNfaEarliestSom=corei7_roseNfaEarliestSom + -DroseReportAdaptor=corei7_roseReportAdaptor + -DroseRunBoundaryProgram=corei7_roseRunBoundaryProgram + -DroseRunFlushCombProgram=corei7_roseRunFlushCombProgram + -DroseRunLastFlushCombProgram=corei7_roseRunLastFlushCombProgram + -DroseRunProgram=corei7_roseRunProgram + -DroseRunProgram_l=corei7_roseRunProgram_l + -DroseStreamEodExec=corei7_roseStreamEodExec + -DroseStreamExec=corei7_roseStreamExec + -DrshuftiExec=corei7_rshuftiExec + -DrtruffleExec=corei7_rtruffleExec + -Drun_accel=corei7_run_accel + -DsetSomFromSomAware=corei7_setSomFromSomAware + -DshuftiDoubleExec=corei7_shuftiDoubleExec + -DshuftiExec=corei7_shuftiExec + -Dsimd_onebit_masks=corei7_simd_onebit_masks + -Dsize_compress_stream=corei7_size_compress_stream + -DstoreSomToStream=corei7_storeSomToStream + -Dstorecompressed128=corei7_storecompressed128 + -Dstorecompressed256=corei7_storecompressed256 + -Dstorecompressed32=corei7_storecompressed32 + -Dstorecompressed384=corei7_storecompressed384 + -Dstorecompressed512=corei7_storecompressed512 + -Dstorecompressed64=corei7_storecompressed64 + -DstreamInitSufPQ=corei7_streamInitSufPQ + -DtruffleExec=corei7_truffleExec + -Dvbs_mask_data=corei7_vbs_mask_data + -Wno-everything +) +target_include_directories(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src +) +target_sources(libs-hyperscan-runtime_corei7 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c + ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c +) diff --git a/contrib/libs/hyperscan/runtime_corei7/CMakeLists.txt b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.txt index 77b4d7fd96..3e0811fb22 100644 --- a/contrib/libs/hyperscan/runtime_corei7/CMakeLists.txt +++ b/contrib/libs/hyperscan/runtime_corei7/CMakeLists.txt @@ -6,475 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-hyperscan-runtime_corei7) -target_compile_options(libs-hyperscan-runtime_corei7 PRIVATE - -msse4.1 - -DHAVE_SSE41 - -msse4.2 - -DHAVE_SSE42 - -mpopcnt - -DHAVE_POPCOUNT_INSTR - -DCrc32c_ComputeBuf=corei7_Crc32c_ComputeBuf - -DblockInitSufPQ=corei7_blockInitSufPQ - -Dcompress_stream=corei7_compress_stream - -Dcpuid_flags=corei7_cpuid_flags - -Dcpuid_tune=corei7_cpuid_tune - -DdbIsValid=corei7_dbIsValid - -DdoAccel128=corei7_doAccel128 - -DdoAccel256=corei7_doAccel256 - -DdoAccel32=corei7_doAccel32 - -DdoAccel384=corei7_doAccel384 - -DdoAccel512=corei7_doAccel512 - -DdoAccel64=corei7_doAccel64 - -Dexpand_stream=corei7_expand_stream - -DfdrExec=corei7_fdrExec - -DfdrExecStreaming=corei7_fdrExecStreaming - -Dfdr_exec_fat_teddy_msks1=corei7_fdr_exec_fat_teddy_msks1 - -Dfdr_exec_fat_teddy_msks1_pck=corei7_fdr_exec_fat_teddy_msks1_pck - -Dfdr_exec_fat_teddy_msks2=corei7_fdr_exec_fat_teddy_msks2 - -Dfdr_exec_fat_teddy_msks2_pck=corei7_fdr_exec_fat_teddy_msks2_pck - -Dfdr_exec_fat_teddy_msks3=corei7_fdr_exec_fat_teddy_msks3 - -Dfdr_exec_fat_teddy_msks3_pck=corei7_fdr_exec_fat_teddy_msks3_pck - -Dfdr_exec_fat_teddy_msks4=corei7_fdr_exec_fat_teddy_msks4 - -Dfdr_exec_fat_teddy_msks4_pck=corei7_fdr_exec_fat_teddy_msks4_pck - -Dfdr_exec_teddy_msks1=corei7_fdr_exec_teddy_msks1 - -Dfdr_exec_teddy_msks1_pck=corei7_fdr_exec_teddy_msks1_pck - -Dfdr_exec_teddy_msks2=corei7_fdr_exec_teddy_msks2 - -Dfdr_exec_teddy_msks2_pck=corei7_fdr_exec_teddy_msks2_pck - -Dfdr_exec_teddy_msks3=corei7_fdr_exec_teddy_msks3 - -Dfdr_exec_teddy_msks3_pck=corei7_fdr_exec_teddy_msks3_pck - -Dfdr_exec_teddy_msks4=corei7_fdr_exec_teddy_msks4 - -Dfdr_exec_teddy_msks4_pck=corei7_fdr_exec_teddy_msks4_pck - -DflushQueuedLiterals_i=corei7_flushQueuedLiterals_i - -DflushStoredSomMatches_i=corei7_flushStoredSomMatches_i - -DhandleSomExternal=corei7_handleSomExternal - -DhandleSomInternal=corei7_handleSomInternal - -Dhs_alloc_scratch=corei7_hs_alloc_scratch - -Dhs_clone_scratch=corei7_hs_clone_scratch - -Dhs_close_stream=corei7_hs_close_stream - -Dhs_compress_stream=corei7_hs_compress_stream - -Dhs_copy_stream=corei7_hs_copy_stream - -Dhs_database_alloc=corei7_hs_database_alloc - -Dhs_database_free=corei7_hs_database_free - -Dhs_database_info=corei7_hs_database_info - -Dhs_database_size=corei7_hs_database_size - -Dhs_deserialize_database=corei7_hs_deserialize_database - -Dhs_deserialize_database_at=corei7_hs_deserialize_database_at - -Dhs_expand_stream=corei7_hs_expand_stream - -Dhs_free_database=corei7_hs_free_database - -Dhs_free_scratch=corei7_hs_free_scratch - -Dhs_misc_alloc=corei7_hs_misc_alloc - -Dhs_misc_free=corei7_hs_misc_free - -Dhs_open_stream=corei7_hs_open_stream - -Dhs_reset_and_copy_stream=corei7_hs_reset_and_copy_stream - -Dhs_reset_and_expand_stream=corei7_hs_reset_and_expand_stream - -Dhs_reset_stream=corei7_hs_reset_stream - -Dhs_scan=corei7_hs_scan - -Dhs_scan_stream=corei7_hs_scan_stream - -Dhs_scan_vector=corei7_hs_scan_vector - -Dhs_scratch_alloc=corei7_hs_scratch_alloc - -Dhs_scratch_free=corei7_hs_scratch_free - -Dhs_scratch_size=corei7_hs_scratch_size - -Dhs_serialize_database=corei7_hs_serialize_database - -Dhs_serialized_database_info=corei7_hs_serialized_database_info - -Dhs_serialized_database_size=corei7_hs_serialized_database_size - -Dhs_set_allocator=corei7_hs_set_allocator - -Dhs_set_database_allocator=corei7_hs_set_database_allocator - -Dhs_set_misc_allocator=corei7_hs_set_misc_allocator - -Dhs_set_scratch_allocator=corei7_hs_set_scratch_allocator - -Dhs_set_stream_allocator=corei7_hs_set_stream_allocator - -Dhs_stream_alloc=corei7_hs_stream_alloc - -Dhs_stream_free=corei7_hs_stream_free - -Dhs_stream_size=corei7_hs_stream_size - -Dhs_valid_platform=corei7_hs_valid_platform - -Dhs_version=corei7_hs_version - -DhwlmExec=corei7_hwlmExec - -DhwlmExecStreaming=corei7_hwlmExecStreaming - -DloadSomFromStream=corei7_loadSomFromStream - -Dloadcompressed128=corei7_loadcompressed128 - -Dloadcompressed256=corei7_loadcompressed256 - -Dloadcompressed32=corei7_loadcompressed32 - -Dloadcompressed384=corei7_loadcompressed384 - -Dloadcompressed512=corei7_loadcompressed512 - -Dloadcompressed64=corei7_loadcompressed64 - -Dmcsheng_pext_mask=corei7_mcsheng_pext_mask - -Dmm_mask_mask=corei7_mm_mask_mask - -Dmm_shuffle_end=corei7_mm_shuffle_end - -Dmmbit_keyshift_lut=corei7_mmbit_keyshift_lut - -Dmmbit_maxlevel_direct_lut=corei7_mmbit_maxlevel_direct_lut - -Dmmbit_maxlevel_from_keyshift_lut=corei7_mmbit_maxlevel_from_keyshift_lut - -Dmmbit_root_offset_from_level=corei7_mmbit_root_offset_from_level - -Dmmbit_zero_to_lut=corei7_mmbit_zero_to_lut - -DnfaBlockExecReverse=corei7_nfaBlockExecReverse - -DnfaCheckFinalState=corei7_nfaCheckFinalState - -DnfaExecCastle_Q=corei7_nfaExecCastle_Q - -DnfaExecCastle_Q2=corei7_nfaExecCastle_Q2 - -DnfaExecCastle_QR=corei7_nfaExecCastle_QR - -DnfaExecCastle_expandState=corei7_nfaExecCastle_expandState - -DnfaExecCastle_inAccept=corei7_nfaExecCastle_inAccept - -DnfaExecCastle_inAnyAccept=corei7_nfaExecCastle_inAnyAccept - -DnfaExecCastle_initCompressedState=corei7_nfaExecCastle_initCompressedState - -DnfaExecCastle_queueCompressState=corei7_nfaExecCastle_queueCompressState - -DnfaExecCastle_queueInitState=corei7_nfaExecCastle_queueInitState - -DnfaExecCastle_reportCurrent=corei7_nfaExecCastle_reportCurrent - -DnfaExecGough16_Q=corei7_nfaExecGough16_Q - -DnfaExecGough16_Q2=corei7_nfaExecGough16_Q2 - -DnfaExecGough16_QR=corei7_nfaExecGough16_QR - -DnfaExecGough16_expandState=corei7_nfaExecGough16_expandState - -DnfaExecGough16_inAccept=corei7_nfaExecGough16_inAccept - -DnfaExecGough16_inAnyAccept=corei7_nfaExecGough16_inAnyAccept - -DnfaExecGough16_initCompressedState=corei7_nfaExecGough16_initCompressedState - -DnfaExecGough16_queueCompressState=corei7_nfaExecGough16_queueCompressState - -DnfaExecGough16_queueInitState=corei7_nfaExecGough16_queueInitState - -DnfaExecGough16_reportCurrent=corei7_nfaExecGough16_reportCurrent - -DnfaExecGough16_testEOD=corei7_nfaExecGough16_testEOD - -DnfaExecGough8_Q=corei7_nfaExecGough8_Q - -DnfaExecGough8_Q2=corei7_nfaExecGough8_Q2 - -DnfaExecGough8_QR=corei7_nfaExecGough8_QR - -DnfaExecGough8_expandState=corei7_nfaExecGough8_expandState - -DnfaExecGough8_inAccept=corei7_nfaExecGough8_inAccept - -DnfaExecGough8_inAnyAccept=corei7_nfaExecGough8_inAnyAccept - -DnfaExecGough8_initCompressedState=corei7_nfaExecGough8_initCompressedState - -DnfaExecGough8_queueCompressState=corei7_nfaExecGough8_queueCompressState - -DnfaExecGough8_queueInitState=corei7_nfaExecGough8_queueInitState - -DnfaExecGough8_reportCurrent=corei7_nfaExecGough8_reportCurrent - -DnfaExecGough8_testEOD=corei7_nfaExecGough8_testEOD - -DnfaExecLbrDot_Q=corei7_nfaExecLbrDot_Q - -DnfaExecLbrDot_Q2=corei7_nfaExecLbrDot_Q2 - -DnfaExecLbrDot_QR=corei7_nfaExecLbrDot_QR - -DnfaExecLbrDot_expandState=corei7_nfaExecLbrDot_expandState - -DnfaExecLbrDot_inAccept=corei7_nfaExecLbrDot_inAccept - -DnfaExecLbrDot_inAnyAccept=corei7_nfaExecLbrDot_inAnyAccept - -DnfaExecLbrDot_initCompressedState=corei7_nfaExecLbrDot_initCompressedState - -DnfaExecLbrDot_queueCompressState=corei7_nfaExecLbrDot_queueCompressState - -DnfaExecLbrDot_queueInitState=corei7_nfaExecLbrDot_queueInitState - -DnfaExecLbrDot_reportCurrent=corei7_nfaExecLbrDot_reportCurrent - -DnfaExecLbrNVerm_Q=corei7_nfaExecLbrNVerm_Q - -DnfaExecLbrNVerm_Q2=corei7_nfaExecLbrNVerm_Q2 - -DnfaExecLbrNVerm_QR=corei7_nfaExecLbrNVerm_QR - -DnfaExecLbrNVerm_expandState=corei7_nfaExecLbrNVerm_expandState - -DnfaExecLbrNVerm_inAccept=corei7_nfaExecLbrNVerm_inAccept - -DnfaExecLbrNVerm_inAnyAccept=corei7_nfaExecLbrNVerm_inAnyAccept - -DnfaExecLbrNVerm_initCompressedState=corei7_nfaExecLbrNVerm_initCompressedState - -DnfaExecLbrNVerm_queueCompressState=corei7_nfaExecLbrNVerm_queueCompressState - -DnfaExecLbrNVerm_queueInitState=corei7_nfaExecLbrNVerm_queueInitState - -DnfaExecLbrNVerm_reportCurrent=corei7_nfaExecLbrNVerm_reportCurrent - -DnfaExecLbrShuf_Q=corei7_nfaExecLbrShuf_Q - -DnfaExecLbrShuf_Q2=corei7_nfaExecLbrShuf_Q2 - -DnfaExecLbrShuf_QR=corei7_nfaExecLbrShuf_QR - -DnfaExecLbrShuf_expandState=corei7_nfaExecLbrShuf_expandState - -DnfaExecLbrShuf_inAccept=corei7_nfaExecLbrShuf_inAccept - -DnfaExecLbrShuf_inAnyAccept=corei7_nfaExecLbrShuf_inAnyAccept - -DnfaExecLbrShuf_initCompressedState=corei7_nfaExecLbrShuf_initCompressedState - -DnfaExecLbrShuf_queueCompressState=corei7_nfaExecLbrShuf_queueCompressState - -DnfaExecLbrShuf_queueInitState=corei7_nfaExecLbrShuf_queueInitState - -DnfaExecLbrShuf_reportCurrent=corei7_nfaExecLbrShuf_reportCurrent - -DnfaExecLbrTruf_Q=corei7_nfaExecLbrTruf_Q - -DnfaExecLbrTruf_Q2=corei7_nfaExecLbrTruf_Q2 - -DnfaExecLbrTruf_QR=corei7_nfaExecLbrTruf_QR - -DnfaExecLbrTruf_expandState=corei7_nfaExecLbrTruf_expandState - -DnfaExecLbrTruf_inAccept=corei7_nfaExecLbrTruf_inAccept - -DnfaExecLbrTruf_inAnyAccept=corei7_nfaExecLbrTruf_inAnyAccept - -DnfaExecLbrTruf_initCompressedState=corei7_nfaExecLbrTruf_initCompressedState - -DnfaExecLbrTruf_queueCompressState=corei7_nfaExecLbrTruf_queueCompressState - -DnfaExecLbrTruf_queueInitState=corei7_nfaExecLbrTruf_queueInitState - -DnfaExecLbrTruf_reportCurrent=corei7_nfaExecLbrTruf_reportCurrent - -DnfaExecLbrVerm_Q=corei7_nfaExecLbrVerm_Q - -DnfaExecLbrVerm_Q2=corei7_nfaExecLbrVerm_Q2 - -DnfaExecLbrVerm_QR=corei7_nfaExecLbrVerm_QR - -DnfaExecLbrVerm_expandState=corei7_nfaExecLbrVerm_expandState - -DnfaExecLbrVerm_inAccept=corei7_nfaExecLbrVerm_inAccept - -DnfaExecLbrVerm_inAnyAccept=corei7_nfaExecLbrVerm_inAnyAccept - -DnfaExecLbrVerm_initCompressedState=corei7_nfaExecLbrVerm_initCompressedState - -DnfaExecLbrVerm_queueCompressState=corei7_nfaExecLbrVerm_queueCompressState - -DnfaExecLbrVerm_queueInitState=corei7_nfaExecLbrVerm_queueInitState - -DnfaExecLbrVerm_reportCurrent=corei7_nfaExecLbrVerm_reportCurrent - -DnfaExecLimEx128_B_Reverse=corei7_nfaExecLimEx128_B_Reverse - -DnfaExecLimEx128_Q=corei7_nfaExecLimEx128_Q - -DnfaExecLimEx128_Q2=corei7_nfaExecLimEx128_Q2 - -DnfaExecLimEx128_QR=corei7_nfaExecLimEx128_QR - -DnfaExecLimEx128_expandState=corei7_nfaExecLimEx128_expandState - -DnfaExecLimEx128_inAccept=corei7_nfaExecLimEx128_inAccept - -DnfaExecLimEx128_inAnyAccept=corei7_nfaExecLimEx128_inAnyAccept - -DnfaExecLimEx128_initCompressedState=corei7_nfaExecLimEx128_initCompressedState - -DnfaExecLimEx128_queueCompressState=corei7_nfaExecLimEx128_queueCompressState - -DnfaExecLimEx128_queueInitState=corei7_nfaExecLimEx128_queueInitState - -DnfaExecLimEx128_reportCurrent=corei7_nfaExecLimEx128_reportCurrent - -DnfaExecLimEx128_testEOD=corei7_nfaExecLimEx128_testEOD - -DnfaExecLimEx128_zombie_status=corei7_nfaExecLimEx128_zombie_status - -DnfaExecLimEx256_B_Reverse=corei7_nfaExecLimEx256_B_Reverse - -DnfaExecLimEx256_Q=corei7_nfaExecLimEx256_Q - -DnfaExecLimEx256_Q2=corei7_nfaExecLimEx256_Q2 - -DnfaExecLimEx256_QR=corei7_nfaExecLimEx256_QR - -DnfaExecLimEx256_expandState=corei7_nfaExecLimEx256_expandState - -DnfaExecLimEx256_inAccept=corei7_nfaExecLimEx256_inAccept - -DnfaExecLimEx256_inAnyAccept=corei7_nfaExecLimEx256_inAnyAccept - -DnfaExecLimEx256_initCompressedState=corei7_nfaExecLimEx256_initCompressedState - -DnfaExecLimEx256_queueCompressState=corei7_nfaExecLimEx256_queueCompressState - -DnfaExecLimEx256_queueInitState=corei7_nfaExecLimEx256_queueInitState - -DnfaExecLimEx256_reportCurrent=corei7_nfaExecLimEx256_reportCurrent - -DnfaExecLimEx256_testEOD=corei7_nfaExecLimEx256_testEOD - -DnfaExecLimEx256_zombie_status=corei7_nfaExecLimEx256_zombie_status - -DnfaExecLimEx32_B_Reverse=corei7_nfaExecLimEx32_B_Reverse - -DnfaExecLimEx32_Q=corei7_nfaExecLimEx32_Q - -DnfaExecLimEx32_Q2=corei7_nfaExecLimEx32_Q2 - -DnfaExecLimEx32_QR=corei7_nfaExecLimEx32_QR - -DnfaExecLimEx32_expandState=corei7_nfaExecLimEx32_expandState - -DnfaExecLimEx32_inAccept=corei7_nfaExecLimEx32_inAccept - -DnfaExecLimEx32_inAnyAccept=corei7_nfaExecLimEx32_inAnyAccept - -DnfaExecLimEx32_initCompressedState=corei7_nfaExecLimEx32_initCompressedState - -DnfaExecLimEx32_queueCompressState=corei7_nfaExecLimEx32_queueCompressState - -DnfaExecLimEx32_queueInitState=corei7_nfaExecLimEx32_queueInitState - -DnfaExecLimEx32_reportCurrent=corei7_nfaExecLimEx32_reportCurrent - -DnfaExecLimEx32_testEOD=corei7_nfaExecLimEx32_testEOD - -DnfaExecLimEx32_zombie_status=corei7_nfaExecLimEx32_zombie_status - -DnfaExecLimEx384_B_Reverse=corei7_nfaExecLimEx384_B_Reverse - -DnfaExecLimEx384_Q=corei7_nfaExecLimEx384_Q - -DnfaExecLimEx384_Q2=corei7_nfaExecLimEx384_Q2 - -DnfaExecLimEx384_QR=corei7_nfaExecLimEx384_QR - -DnfaExecLimEx384_expandState=corei7_nfaExecLimEx384_expandState - -DnfaExecLimEx384_inAccept=corei7_nfaExecLimEx384_inAccept - -DnfaExecLimEx384_inAnyAccept=corei7_nfaExecLimEx384_inAnyAccept - -DnfaExecLimEx384_initCompressedState=corei7_nfaExecLimEx384_initCompressedState - -DnfaExecLimEx384_queueCompressState=corei7_nfaExecLimEx384_queueCompressState - -DnfaExecLimEx384_queueInitState=corei7_nfaExecLimEx384_queueInitState - -DnfaExecLimEx384_reportCurrent=corei7_nfaExecLimEx384_reportCurrent - -DnfaExecLimEx384_testEOD=corei7_nfaExecLimEx384_testEOD - -DnfaExecLimEx384_zombie_status=corei7_nfaExecLimEx384_zombie_status - -DnfaExecLimEx512_B_Reverse=corei7_nfaExecLimEx512_B_Reverse - -DnfaExecLimEx512_Q=corei7_nfaExecLimEx512_Q - -DnfaExecLimEx512_Q2=corei7_nfaExecLimEx512_Q2 - -DnfaExecLimEx512_QR=corei7_nfaExecLimEx512_QR - -DnfaExecLimEx512_expandState=corei7_nfaExecLimEx512_expandState - -DnfaExecLimEx512_inAccept=corei7_nfaExecLimEx512_inAccept - -DnfaExecLimEx512_inAnyAccept=corei7_nfaExecLimEx512_inAnyAccept - -DnfaExecLimEx512_initCompressedState=corei7_nfaExecLimEx512_initCompressedState - -DnfaExecLimEx512_queueCompressState=corei7_nfaExecLimEx512_queueCompressState - -DnfaExecLimEx512_queueInitState=corei7_nfaExecLimEx512_queueInitState - -DnfaExecLimEx512_reportCurrent=corei7_nfaExecLimEx512_reportCurrent - -DnfaExecLimEx512_testEOD=corei7_nfaExecLimEx512_testEOD - -DnfaExecLimEx512_zombie_status=corei7_nfaExecLimEx512_zombie_status - -DnfaExecLimEx64_B_Reverse=corei7_nfaExecLimEx64_B_Reverse - -DnfaExecLimEx64_Q=corei7_nfaExecLimEx64_Q - -DnfaExecLimEx64_Q2=corei7_nfaExecLimEx64_Q2 - -DnfaExecLimEx64_QR=corei7_nfaExecLimEx64_QR - -DnfaExecLimEx64_expandState=corei7_nfaExecLimEx64_expandState - -DnfaExecLimEx64_inAccept=corei7_nfaExecLimEx64_inAccept - -DnfaExecLimEx64_inAnyAccept=corei7_nfaExecLimEx64_inAnyAccept - -DnfaExecLimEx64_initCompressedState=corei7_nfaExecLimEx64_initCompressedState - -DnfaExecLimEx64_queueCompressState=corei7_nfaExecLimEx64_queueCompressState - -DnfaExecLimEx64_queueInitState=corei7_nfaExecLimEx64_queueInitState - -DnfaExecLimEx64_reportCurrent=corei7_nfaExecLimEx64_reportCurrent - -DnfaExecLimEx64_testEOD=corei7_nfaExecLimEx64_testEOD - -DnfaExecLimEx64_zombie_status=corei7_nfaExecLimEx64_zombie_status - -DnfaExecMcClellan16_B=corei7_nfaExecMcClellan16_B - -DnfaExecMcClellan16_Q=corei7_nfaExecMcClellan16_Q - -DnfaExecMcClellan16_Q2=corei7_nfaExecMcClellan16_Q2 - -DnfaExecMcClellan16_QR=corei7_nfaExecMcClellan16_QR - -DnfaExecMcClellan16_SimpStream=corei7_nfaExecMcClellan16_SimpStream - -DnfaExecMcClellan16_expandState=corei7_nfaExecMcClellan16_expandState - -DnfaExecMcClellan16_inAccept=corei7_nfaExecMcClellan16_inAccept - -DnfaExecMcClellan16_inAnyAccept=corei7_nfaExecMcClellan16_inAnyAccept - -DnfaExecMcClellan16_initCompressedState=corei7_nfaExecMcClellan16_initCompressedState - -DnfaExecMcClellan16_queueCompressState=corei7_nfaExecMcClellan16_queueCompressState - -DnfaExecMcClellan16_queueInitState=corei7_nfaExecMcClellan16_queueInitState - -DnfaExecMcClellan16_reportCurrent=corei7_nfaExecMcClellan16_reportCurrent - -DnfaExecMcClellan16_testEOD=corei7_nfaExecMcClellan16_testEOD - -DnfaExecMcClellan8_B=corei7_nfaExecMcClellan8_B - -DnfaExecMcClellan8_Q=corei7_nfaExecMcClellan8_Q - -DnfaExecMcClellan8_Q2=corei7_nfaExecMcClellan8_Q2 - -DnfaExecMcClellan8_QR=corei7_nfaExecMcClellan8_QR - -DnfaExecMcClellan8_SimpStream=corei7_nfaExecMcClellan8_SimpStream - -DnfaExecMcClellan8_expandState=corei7_nfaExecMcClellan8_expandState - -DnfaExecMcClellan8_inAccept=corei7_nfaExecMcClellan8_inAccept - -DnfaExecMcClellan8_inAnyAccept=corei7_nfaExecMcClellan8_inAnyAccept - -DnfaExecMcClellan8_initCompressedState=corei7_nfaExecMcClellan8_initCompressedState - -DnfaExecMcClellan8_queueCompressState=corei7_nfaExecMcClellan8_queueCompressState - -DnfaExecMcClellan8_queueInitState=corei7_nfaExecMcClellan8_queueInitState - -DnfaExecMcClellan8_reportCurrent=corei7_nfaExecMcClellan8_reportCurrent - -DnfaExecMcClellan8_testEOD=corei7_nfaExecMcClellan8_testEOD - -DnfaExecMcSheng16_Q=corei7_nfaExecMcSheng16_Q - -DnfaExecMcSheng16_Q2=corei7_nfaExecMcSheng16_Q2 - -DnfaExecMcSheng16_QR=corei7_nfaExecMcSheng16_QR - -DnfaExecMcSheng16_expandState=corei7_nfaExecMcSheng16_expandState - -DnfaExecMcSheng16_inAccept=corei7_nfaExecMcSheng16_inAccept - -DnfaExecMcSheng16_inAnyAccept=corei7_nfaExecMcSheng16_inAnyAccept - -DnfaExecMcSheng16_initCompressedState=corei7_nfaExecMcSheng16_initCompressedState - -DnfaExecMcSheng16_queueCompressState=corei7_nfaExecMcSheng16_queueCompressState - -DnfaExecMcSheng16_queueInitState=corei7_nfaExecMcSheng16_queueInitState - -DnfaExecMcSheng16_reportCurrent=corei7_nfaExecMcSheng16_reportCurrent - -DnfaExecMcSheng16_testEOD=corei7_nfaExecMcSheng16_testEOD - -DnfaExecMcSheng8_Q=corei7_nfaExecMcSheng8_Q - -DnfaExecMcSheng8_Q2=corei7_nfaExecMcSheng8_Q2 - -DnfaExecMcSheng8_QR=corei7_nfaExecMcSheng8_QR - -DnfaExecMcSheng8_expandState=corei7_nfaExecMcSheng8_expandState - -DnfaExecMcSheng8_inAccept=corei7_nfaExecMcSheng8_inAccept - -DnfaExecMcSheng8_inAnyAccept=corei7_nfaExecMcSheng8_inAnyAccept - -DnfaExecMcSheng8_initCompressedState=corei7_nfaExecMcSheng8_initCompressedState - -DnfaExecMcSheng8_queueCompressState=corei7_nfaExecMcSheng8_queueCompressState - -DnfaExecMcSheng8_queueInitState=corei7_nfaExecMcSheng8_queueInitState - -DnfaExecMcSheng8_reportCurrent=corei7_nfaExecMcSheng8_reportCurrent - -DnfaExecMcSheng8_testEOD=corei7_nfaExecMcSheng8_testEOD - -DnfaExecMpv_Q=corei7_nfaExecMpv_Q - -DnfaExecMpv_QueueExecRaw=corei7_nfaExecMpv_QueueExecRaw - -DnfaExecMpv_expandState=corei7_nfaExecMpv_expandState - -DnfaExecMpv_initCompressedState=corei7_nfaExecMpv_initCompressedState - -DnfaExecMpv_queueCompressState=corei7_nfaExecMpv_queueCompressState - -DnfaExecMpv_queueInitState=corei7_nfaExecMpv_queueInitState - -DnfaExecMpv_reportCurrent=corei7_nfaExecMpv_reportCurrent - -DnfaExecSheng_B=corei7_nfaExecSheng_B - -DnfaExecSheng_Q=corei7_nfaExecSheng_Q - -DnfaExecSheng_Q2=corei7_nfaExecSheng_Q2 - -DnfaExecSheng_QR=corei7_nfaExecSheng_QR - -DnfaExecSheng_expandState=corei7_nfaExecSheng_expandState - -DnfaExecSheng_inAccept=corei7_nfaExecSheng_inAccept - -DnfaExecSheng_inAnyAccept=corei7_nfaExecSheng_inAnyAccept - -DnfaExecSheng_initCompressedState=corei7_nfaExecSheng_initCompressedState - -DnfaExecSheng_queueCompressState=corei7_nfaExecSheng_queueCompressState - -DnfaExecSheng_queueInitState=corei7_nfaExecSheng_queueInitState - -DnfaExecSheng_reportCurrent=corei7_nfaExecSheng_reportCurrent - -DnfaExecSheng_testEOD=corei7_nfaExecSheng_testEOD - -DnfaExecTamarama_Q=corei7_nfaExecTamarama_Q - -DnfaExecTamarama_Q2=corei7_nfaExecTamarama_Q2 - -DnfaExecTamarama_QR=corei7_nfaExecTamarama_QR - -DnfaExecTamarama_expandState=corei7_nfaExecTamarama_expandState - -DnfaExecTamarama_inAccept=corei7_nfaExecTamarama_inAccept - -DnfaExecTamarama_inAnyAccept=corei7_nfaExecTamarama_inAnyAccept - -DnfaExecTamarama_queueCompressState=corei7_nfaExecTamarama_queueCompressState - -DnfaExecTamarama_queueInitState=corei7_nfaExecTamarama_queueInitState - -DnfaExecTamarama_reportCurrent=corei7_nfaExecTamarama_reportCurrent - -DnfaExecTamarama_testEOD=corei7_nfaExecTamarama_testEOD - -DnfaExecTamarama_zombie_status=corei7_nfaExecTamarama_zombie_status - -DnfaExpandState=corei7_nfaExpandState - -DnfaGetZombieStatus=corei7_nfaGetZombieStatus - -DnfaInAcceptState=corei7_nfaInAcceptState - -DnfaInAnyAcceptState=corei7_nfaInAnyAcceptState - -DnfaInitCompressedState=corei7_nfaInitCompressedState - -DnfaQueueCompressState=corei7_nfaQueueCompressState - -DnfaQueueExec=corei7_nfaQueueExec - -DnfaQueueExec2_raw=corei7_nfaQueueExec2_raw - -DnfaQueueExecRose=corei7_nfaQueueExecRose - -DnfaQueueExecToMatch=corei7_nfaQueueExecToMatch - -DnfaQueueExec_raw=corei7_nfaQueueExec_raw - -DnfaQueueInitState=corei7_nfaQueueInitState - -DnfaReportCurrentMatches=corei7_nfaReportCurrentMatches - -DnoodExec=corei7_noodExec - -DnoodExecStreaming=corei7_noodExecStreaming - -Dp_mask_arr=corei7_p_mask_arr - -Dp_mask_arr256=corei7_p_mask_arr256 - -DrepeatHasMatchBitmap=corei7_repeatHasMatchBitmap - -DrepeatHasMatchRange=corei7_repeatHasMatchRange - -DrepeatHasMatchRing=corei7_repeatHasMatchRing - -DrepeatHasMatchSparseOptimalP=corei7_repeatHasMatchSparseOptimalP - -DrepeatHasMatchTrailer=corei7_repeatHasMatchTrailer - -DrepeatLastTopBitmap=corei7_repeatLastTopBitmap - -DrepeatLastTopRange=corei7_repeatLastTopRange - -DrepeatLastTopRing=corei7_repeatLastTopRing - -DrepeatLastTopSparseOptimalP=corei7_repeatLastTopSparseOptimalP - -DrepeatLastTopTrailer=corei7_repeatLastTopTrailer - -DrepeatNextMatchBitmap=corei7_repeatNextMatchBitmap - -DrepeatNextMatchRange=corei7_repeatNextMatchRange - -DrepeatNextMatchRing=corei7_repeatNextMatchRing - -DrepeatNextMatchSparseOptimalP=corei7_repeatNextMatchSparseOptimalP - -DrepeatNextMatchTrailer=corei7_repeatNextMatchTrailer - -DrepeatPack=corei7_repeatPack - -DrepeatStoreBitmap=corei7_repeatStoreBitmap - -DrepeatStoreRange=corei7_repeatStoreRange - -DrepeatStoreRing=corei7_repeatStoreRing - -DrepeatStoreSparseOptimalP=corei7_repeatStoreSparseOptimalP - -DrepeatStoreTrailer=corei7_repeatStoreTrailer - -DrepeatUnpack=corei7_repeatUnpack - -DroseAnchoredCallback=corei7_roseAnchoredCallback - -DroseBlockExec=corei7_roseBlockExec - -DroseCallback=corei7_roseCallback - -DroseCatchUpAll=corei7_roseCatchUpAll - -DroseCatchUpMPV_i=corei7_roseCatchUpMPV_i - -DroseCatchUpSuf=corei7_roseCatchUpSuf - -DroseDelayRebuildCallback=corei7_roseDelayRebuildCallback - -DroseFloatingCallback=corei7_roseFloatingCallback - -DroseHandleChainMatch=corei7_roseHandleChainMatch - -DroseInitState=corei7_roseInitState - -DroseNfaAdaptor=corei7_roseNfaAdaptor - -DroseNfaEarliestSom=corei7_roseNfaEarliestSom - -DroseReportAdaptor=corei7_roseReportAdaptor - -DroseRunBoundaryProgram=corei7_roseRunBoundaryProgram - -DroseRunFlushCombProgram=corei7_roseRunFlushCombProgram - -DroseRunLastFlushCombProgram=corei7_roseRunLastFlushCombProgram - -DroseRunProgram=corei7_roseRunProgram - -DroseRunProgram_l=corei7_roseRunProgram_l - -DroseStreamEodExec=corei7_roseStreamEodExec - -DroseStreamExec=corei7_roseStreamExec - -DrshuftiExec=corei7_rshuftiExec - -DrtruffleExec=corei7_rtruffleExec - -Drun_accel=corei7_run_accel - -DsetSomFromSomAware=corei7_setSomFromSomAware - -DshuftiDoubleExec=corei7_shuftiDoubleExec - -DshuftiExec=corei7_shuftiExec - -Dsimd_onebit_masks=corei7_simd_onebit_masks - -Dsize_compress_stream=corei7_size_compress_stream - -DstoreSomToStream=corei7_storeSomToStream - -Dstorecompressed128=corei7_storecompressed128 - -Dstorecompressed256=corei7_storecompressed256 - -Dstorecompressed32=corei7_storecompressed32 - -Dstorecompressed384=corei7_storecompressed384 - -Dstorecompressed512=corei7_storecompressed512 - -Dstorecompressed64=corei7_storecompressed64 - -DstreamInitSufPQ=corei7_streamInitSufPQ - -DtruffleExec=corei7_truffleExec - -Dvbs_mask_data=corei7_vbs_mask_data - -Wno-everything -) -target_include_directories(libs-hyperscan-runtime_corei7 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src -) -target_sources(libs-hyperscan-runtime_corei7 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/alloc.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/crc32.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/database.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/fdr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/fdr/teddy_avx2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_valid_platform.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hs_version.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/hwlm.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/hwlm/noodle_engine.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/castle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/gough.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/lbr.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_64.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_accel.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_native.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd128.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd256.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd384.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/limex_simd512.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcclellan.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mcsheng_data.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/mpv.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/nfa_api_dispatch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/repeat.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/sheng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/shufti.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/tamarama.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/nfa/truffle.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/block.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/catchup.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/init.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/match.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/program_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/rose/stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/scratch.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_runtime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/som/som_stream.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/stream_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/cpuid_flags.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/masked_move.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/multibit.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/simd_utils.c - ${CMAKE_SOURCE_DIR}/contrib/libs/hyperscan/src/util/state_compress.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/jemalloc/CMakeLists.linux-aarch64.txt b/contrib/libs/jemalloc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..f6f811840e --- /dev/null +++ b/contrib/libs/jemalloc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,88 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-jemalloc) +target_compile_options(contrib-libs-jemalloc PRIVATE + -funroll-loops + -fvisibility=hidden + -Wno-everything +) +target_include_directories(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include +) +target_link_libraries(contrib-libs-jemalloc PUBLIC + contrib-libs-cxxsupp + contrib-libs-libunwind +) +target_sources(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/arena.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/background_thread.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/base.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin_info.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/buf_writer.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/cache_bin.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/counter.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/decay.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ecache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/edata.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/edata_cache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ehooks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/emap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/eset.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/exp_grow.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_dss.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_mmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/fxp.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpa.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpa_hooks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpdata.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/inspect.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/large.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/log.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/malloc_io.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/nstime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pa.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pa_extra.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pac.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pai.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/peak_event.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_data.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_log.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_recent.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_stats.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_sys.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/psset.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/rtree.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/safety_check.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/san.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/san_bump.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sec.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/stats.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sz.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tcache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/test_hooks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/thread_event.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ticker.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tsd.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/witness.c +) diff --git a/contrib/libs/jemalloc/CMakeLists.txt b/contrib/libs/jemalloc/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/jemalloc/CMakeLists.txt +++ b/contrib/libs/jemalloc/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/libc_compat/CMakeLists.linux-aarch64.txt b/contrib/libs/libc_compat/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..78e11d618b --- /dev/null +++ b/contrib/libs/libc_compat/CMakeLists.linux-aarch64.txt @@ -0,0 +1,29 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-libc_compat) +target_compile_options(contrib-libs-libc_compat PRIVATE + -Wno-everything +) +target_include_directories(contrib-libs-libc_compat PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/include/readpassphrase + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/reallocarray + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/random +) +target_sources(contrib-libs-libc_compat PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/string.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/readpassphrase.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/explicit_bzero.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/memfd_create.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/strlcat.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/strlcpy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/reallocarray/reallocarray.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/random/getrandom.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/random/getentropy.c +) diff --git a/contrib/libs/libc_compat/CMakeLists.txt b/contrib/libs/libc_compat/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/libc_compat/CMakeLists.txt +++ b/contrib/libs/libc_compat/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/libevent/event_core/CMakeLists.linux-aarch64.txt b/contrib/libs/libevent/event_core/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..657394a707 --- /dev/null +++ b/contrib/libs/libevent/event_core/CMakeLists.linux-aarch64.txt @@ -0,0 +1,42 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-libevent-event_core) +target_compile_options(libs-libevent-event_core PRIVATE + -DHAVE_CONFIG_H + -DEVENT__HAVE_STRLCPY=1 + -Wno-everything +) +target_include_directories(libs-libevent-event_core PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include +) +target_link_libraries(libs-libevent-event_core PUBLIC + contrib-libs-libc_compat +) +target_sources(libs-libevent-event_core PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/buffer.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_filter.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_pair.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_ratelim.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_sock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/event.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evthread.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil_rand.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil_time.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/listener.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/log.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/signal.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/poll.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/select.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/epoll.c +) diff --git a/contrib/libs/libevent/event_core/CMakeLists.txt b/contrib/libs/libevent/event_core/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/libevent/event_core/CMakeLists.txt +++ b/contrib/libs/libevent/event_core/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/libunwind/CMakeLists.linux-aarch64.txt b/contrib/libs/libunwind/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..4068af682c --- /dev/null +++ b/contrib/libs/libunwind/CMakeLists.linux-aarch64.txt @@ -0,0 +1,32 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-libunwind) +target_compile_options(contrib-libs-libunwind PUBLIC + -D_libunwind_ +) +target_compile_options(contrib-libs-libunwind PRIVATE + -D_LIBUNWIND_IS_NATIVE_ONLY + -fno-exceptions + -fno-rtti + -funwind-tables +) +target_include_directories(contrib-libs-libunwind PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include +) +target_sources(contrib-libs-libunwind PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/Unwind-EHABI.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/Unwind-seh.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/Unwind-sjlj.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/UnwindLevel1-gcc-ext.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/UnwindLevel1.c + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/UnwindRegistersRestore.S + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/UnwindRegistersSave.S + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/src/libunwind.cpp +) diff --git a/contrib/libs/libunwind/CMakeLists.txt b/contrib/libs/libunwind/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/libunwind/CMakeLists.txt +++ b/contrib/libs/libunwind/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/linuxvdso/CMakeLists.linux-aarch64.txt b/contrib/libs/linuxvdso/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..c9d397538d --- /dev/null +++ b/contrib/libs/linuxvdso/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(original) + +add_library(contrib-libs-linuxvdso) +target_link_libraries(contrib-libs-linuxvdso PUBLIC + libs-linuxvdso-original +) +target_sources(contrib-libs-linuxvdso PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/linuxvdso/interface.cpp +) diff --git a/contrib/libs/linuxvdso/CMakeLists.txt b/contrib/libs/linuxvdso/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/linuxvdso/CMakeLists.txt +++ b/contrib/libs/linuxvdso/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/linuxvdso/original/CMakeLists.linux-aarch64.txt b/contrib/libs/linuxvdso/original/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..d241a68870 --- /dev/null +++ b/contrib/libs/linuxvdso/original/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-linuxvdso-original) +target_compile_options(libs-linuxvdso-original PRIVATE + -Wno-everything +) +target_sources(libs-linuxvdso-original PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/linuxvdso/original/vdso_support.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/linuxvdso/original/elf_mem_image.cc +) diff --git a/contrib/libs/linuxvdso/original/CMakeLists.txt b/contrib/libs/linuxvdso/original/CMakeLists.txt index 3c0f983fa5..fb9f9efce2 100644 --- a/contrib/libs/linuxvdso/original/CMakeLists.txt +++ b/contrib/libs/linuxvdso/original/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) endif() diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..74965dc236 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt @@ -0,0 +1,37 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(MCJIT) +add_subdirectory(PerfJITEvents) +add_subdirectory(RuntimeDyld) + +add_library(llvm12-lib-ExecutionEngine) +target_compile_options(llvm12-lib-ExecutionEngine PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine +) +target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngineBindings.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/GDBRegistrationListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/SectionMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/TargetSelect.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a1a9266ca5 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt @@ -0,0 +1,30 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-ExecutionEngine-PerfJITEvents) +target_compile_options(lib-ExecutionEngine-PerfJITEvents PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-PerfJITEvents PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents +) +target_link_libraries(lib-ExecutionEngine-PerfJITEvents PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-CodeGen + lib-DebugInfo-DWARF + llvm12-lib-ExecutionEngine + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-Object + llvm12-lib-Support +) +target_sources(lib-ExecutionEngine-PerfJITEvents PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt index 3c0f983fa5..fb9f9efce2 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) endif() diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..7585a57331 --- /dev/null +++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt @@ -0,0 +1,91 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(GlobalISel) + +add_executable(llvm-tblgen) +target_compile_options(llvm-tblgen PRIVATE + -Wno-everything +) +target_include_directories(llvm-tblgen PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen +) +target_link_libraries(llvm-tblgen PUBLIC + contrib-libs-cxxsupp + library-cpp-lfalloc + contrib-libs-llvm12 + llvm12-lib-Demangle + llvm12-lib-Support + llvm12-lib-TableGen + utils-TableGen-GlobalISel +) +target_link_options(llvm-tblgen PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(llvm-tblgen PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/AsmMatcherEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/AsmWriterEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/AsmWriterInst.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/Attributes.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CTagsEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CallingConvEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeEmitterGen.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenDAGPatterns.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenHwModes.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenInstruction.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenMapTable.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenRegisters.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenSchedule.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/CodeGenTarget.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DAGISelEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DAGISelMatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DAGISelMatcherEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DAGISelMatcherGen.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DAGISelMatcherOpt.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DFAEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DFAPacketizerEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DirectiveEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/DisassemblerEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/ExegesisEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/FastISelEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/FixedLenDecoderEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/GICombinerEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/GlobalISelEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/InfoByHwMode.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/InstrDocsEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/InstrInfoEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/IntrinsicEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/OptEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/OptParserEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/OptRSTEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/PredicateExpander.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/PseudoLoweringEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/RISCVCompressInstEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/RegisterBankEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/RegisterInfoEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/SDNodeProperties.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/SearchableTableEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/SubtargetEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/SubtargetFeatureInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/TableGen.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/Types.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/WebAssemblyDisassemblerEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/X86DisassemblerTables.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/X86FoldTablesEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/X86ModRMFilters.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/X86RecognizableInstr.cpp +) +vcs_info(llvm-tblgen) diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt +++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/nayuki_md5/CMakeLists.linux-aarch64.txt b/contrib/libs/nayuki_md5/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..900e849144 --- /dev/null +++ b/contrib/libs/nayuki_md5/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-nayuki_md5) +target_link_libraries(contrib-libs-nayuki_md5 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(contrib-libs-nayuki_md5 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/nayuki_md5/md5.c +) diff --git a/contrib/libs/nayuki_md5/CMakeLists.txt b/contrib/libs/nayuki_md5/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/nayuki_md5/CMakeLists.txt +++ b/contrib/libs/nayuki_md5/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/Crypto/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/Crypto/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..44f3610fb1 --- /dev/null +++ b/contrib/libs/poco/Crypto/CMakeLists.linux-aarch64.txt @@ -0,0 +1,56 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) + +add_library(libs-poco-Crypto) +target_compile_options(libs-poco-Crypto PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-Crypto PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/include +) +target_include_directories(libs-poco-Crypto PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include +) +target_link_libraries(libs-poco-Crypto PUBLIC + contrib-libs-cxxsupp + OpenSSL::OpenSSL + libs-poco-Foundation +) +target_sources(libs-poco-Crypto PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/Cipher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKey.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKeyImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoTransform.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/DigestEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECDSADigestEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKey.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKeyImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/EVPPKey.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPair.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPairImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/OpenSSLInitializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/PKCS12Container.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSACipherImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSADigestEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKey.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKeyImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/X509Certificate.cpp +) diff --git a/contrib/libs/poco/Crypto/CMakeLists.txt b/contrib/libs/poco/Crypto/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/Crypto/CMakeLists.txt +++ b/contrib/libs/poco/Crypto/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/Foundation/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/Foundation/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..724f84aa40 --- /dev/null +++ b/contrib/libs/poco/Foundation/CMakeLists.linux-aarch64.txt @@ -0,0 +1,192 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(ZLIB REQUIRED) + +add_library(libs-poco-Foundation) +target_compile_options(libs-poco-Foundation PRIVATE + -DHAVE_PTHREAD_SETAFFINITY_NP + -DHAVE_THREE_PARAM_SCHED_SETAFFINITY + -DPCRE_STATIC + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-Foundation PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include +) +target_include_directories(libs-poco-Foundation PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/double-conversion + ${CMAKE_SOURCE_DIR}/contrib/libs/pcre + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src +) +target_link_libraries(libs-poco-Foundation PUBLIC + contrib-libs-cxxsupp + contrib-libs-double-conversion + contrib-libs-pcre + ZLIB::ZLIB +) +target_sources(libs-poco-Foundation PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ASCIIEncoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/AbstractObserver.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ActiveDispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ArchiveStrategy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Ascii.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/AsyncChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/AtomicCounter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Base32Decoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Base32Encoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Base64Decoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Base64Encoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/BinaryReader.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/BinaryWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Bugcheck.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ByteOrder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Channel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Checksum.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Clock.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Condition.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Configurable.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ConsoleChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/CountingStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DateTime.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DateTimeFormat.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DateTimeFormatter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DateTimeParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Debugger.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DeflatingStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DigestEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DigestStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DirectoryIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DirectoryIteratorStrategy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/DirectoryWatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Environment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Error.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ErrorHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Event.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/EventArgs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/EventChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FIFOBufferStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FPEnvironment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/File.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FileChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FileStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FileStreamFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Format.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Formatter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/FormattingChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Glob.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Hash.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/HashStatistic.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/HexBinaryDecoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/HexBinaryEncoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/InflatingStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/JSONString.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Latin1Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Latin2Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Latin9Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LineEndingConverter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LocalDateTime.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LogFile.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LogStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Logger.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LoggingFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/LoggingRegistry.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/MD4Engine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/MD5Engine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Manifest.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/MemoryPool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/MemoryStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Message.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NamedEvent.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NamedMutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NestedDiagnosticContext.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Notification.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NotificationCenter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NotificationQueue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NullChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NullStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NumberFormatter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NumberParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/NumericString.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Path.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/PatternFormatter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Pipe.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/PipeImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/PipeStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/PriorityNotificationQueue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Process.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/PurgeStrategy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/RWLock.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Random.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/RandomStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/RefCountedObject.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/RegularExpression.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/RotateStrategy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Runnable.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SHA1Engine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Semaphore.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SharedLibrary.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SharedMemory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SignalHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SimpleFileChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SortedDirectoryIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SplitterChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Stopwatch.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/StreamChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/StreamConverter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/StreamCopier.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/StreamTokenizer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/String.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/StringTokenizer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SynchronizedObject.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Task.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TaskManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TaskNotification.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TeeStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TemporaryFile.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TextBufferIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TextConverter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TextEncoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TextIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Thread.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ThreadLocal.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ThreadPool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/ThreadTarget.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/TimedNotificationQueue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Timer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Timespan.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Timestamp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Timezone.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Token.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/URI.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/URIStreamFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/URIStreamOpener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UTF16Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UTF32Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UTF8Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UTF8String.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UUID.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UUIDGenerator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Unicode.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/UnicodeConverter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Var.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/VarHolder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/VarIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Void.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Windows1250Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Windows1251Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/Windows1252Encoding.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/src/SyslogChannel.cpp +) diff --git a/contrib/libs/poco/Foundation/CMakeLists.txt b/contrib/libs/poco/Foundation/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/Foundation/CMakeLists.txt +++ b/contrib/libs/poco/Foundation/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/JSON/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/JSON/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a84a5cda67 --- /dev/null +++ b/contrib/libs/poco/JSON/CMakeLists.linux-aarch64.txt @@ -0,0 +1,45 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-JSON) +target_compile_options(libs-poco-JSON PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-JSON PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/include +) +target_include_directories(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src +) +target_link_libraries(libs-poco-JSON PUBLIC + contrib-libs-cxxsupp + libs-poco-Foundation +) +target_sources(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Array.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Handler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/JSONException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Object.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParseHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParserImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/PrintHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Query.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Stringifier.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Template.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/TemplateCache.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/pdjson.c +) diff --git a/contrib/libs/poco/JSON/CMakeLists.txt b/contrib/libs/poco/JSON/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/JSON/CMakeLists.txt +++ b/contrib/libs/poco/JSON/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/Net/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/Net/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..0a2e22dbfd --- /dev/null +++ b/contrib/libs/poco/Net/CMakeLists.linux-aarch64.txt @@ -0,0 +1,132 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-Net) +target_compile_options(libs-poco-Net PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-Net PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/include +) +target_include_directories(libs-poco-Net PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src +) +target_link_libraries(libs-poco-Net PUBLIC + contrib-libs-cxxsupp + libs-poco-Foundation +) +target_sources(libs-poco-Net PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/AbstractHTTPRequestHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/DNS.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/DatagramSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/DatagramSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/DialogSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/FTPClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/FTPStreamFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/FilePartSource.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTMLForm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPAuthenticationParams.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPBasicCredentials.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPBufferAllocator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPChunkedStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPCookie.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPCredentials.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPDigestCredentials.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPFixedLengthStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPHeaderStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPIOStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPMessage.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPRequest.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPRequestHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPRequestHandlerFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPResponse.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerConnection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerConnectionFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerParams.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerRequest.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerRequestImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerResponse.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerResponseImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPServerSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPSessionFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPSessionInstantiator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HTTPStreamFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/HostEntry.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPClient.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPEventArgs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPPacket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPPacketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ICMPv4PacketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/IPAddress.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/IPAddressImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MailMessage.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MailRecipient.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MailStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MediaType.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MessageHeader.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MulticastSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MultipartReader.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/MultipartWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NTPClient.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NTPEventArgs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NTPPacket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NameValueCollection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/Net.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NetException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NetworkInterface.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/NullPartHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/OAuth10Credentials.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/OAuth20Credentials.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/POP3ClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/PartHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/PartSource.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/PartStore.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/PollSet.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/QuotedPrintableDecoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/QuotedPrintableEncoder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/RawSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/RawSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/RemoteSyslogChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/RemoteSyslogListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SMTPChannel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SMTPClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ServerSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/ServerSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/Socket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketAddress.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketAddressImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketNotification.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketNotifier.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketReactor.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/SocketStream.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/StreamSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/StreamSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/StringPartSource.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/TCPServer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/TCPServerConnection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/TCPServerConnectionFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/TCPServerDispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/TCPServerParams.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/WebSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/src/WebSocketImpl.cpp +) diff --git a/contrib/libs/poco/Net/CMakeLists.txt b/contrib/libs/poco/Net/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/Net/CMakeLists.txt +++ b/contrib/libs/poco/Net/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..da119edbce --- /dev/null +++ b/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.linux-aarch64.txt @@ -0,0 +1,69 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) + +add_library(libs-poco-NetSSL_OpenSSL) +target_compile_options(libs-poco-NetSSL_OpenSSL PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-NetSSL_OpenSSL PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/include +) +target_include_directories(libs-poco-NetSSL_OpenSSL PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Net/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/include +) +target_link_libraries(libs-poco-NetSSL_OpenSSL PUBLIC + contrib-libs-cxxsupp + OpenSSL::OpenSSL + libs-poco-Crypto + libs-poco-Foundation + libs-poco-JSON + libs-poco-Net + libs-poco-Util + libs-poco-XML +) +target_sources(libs-poco-NetSSL_OpenSSL PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/AcceptCertificateHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/CertificateHandlerFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/CertificateHandlerFactoryMgr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/ConsoleCertificateHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/Context.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/HTTPSClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/HTTPSSessionInstantiator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/HTTPSStreamFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/InvalidCertificateHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/KeyConsoleHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/KeyFileHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/PrivateKeyFactory.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/PrivateKeyFactoryMgr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/PrivateKeyPassphraseHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/RejectCertificateHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SSLException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SSLManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureSMTPClientSession.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureServerSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureServerSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureStreamSocket.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/Session.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/Utility.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/VerificationErrorArgs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/NetSSL_OpenSSL/src/X509Certificate.cpp +) diff --git a/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.txt b/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.txt +++ b/contrib/libs/poco/NetSSL_OpenSSL/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/Util/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/Util/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..e0869f32e7 --- /dev/null +++ b/contrib/libs/poco/Util/CMakeLists.linux-aarch64.txt @@ -0,0 +1,65 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-Util) +target_compile_options(libs-poco-Util PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-Util PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/include +) +target_include_directories(libs-poco-Util PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/expat + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/include +) +target_link_libraries(libs-poco-Util PUBLIC + contrib-libs-cxxsupp + contrib-libs-expat + libs-poco-Foundation + libs-poco-JSON + libs-poco-XML +) +target_sources(libs-poco-Util PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/AbstractConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/Application.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/ConfigurationMapper.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/ConfigurationView.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/FilesystemConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/HelpFormatter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/IniFileConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/IntValidator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/JSONConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/LayeredConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/LoggingConfigurator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/LoggingSubsystem.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/MapConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/Option.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/OptionCallback.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/OptionException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/OptionProcessor.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/OptionSet.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/PropertyFileConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/RegExpValidator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/ServerApplication.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/Subsystem.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/SystemConfiguration.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/Timer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/TimerTask.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/Validator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Util/src/XMLConfiguration.cpp +) diff --git a/contrib/libs/poco/Util/CMakeLists.txt b/contrib/libs/poco/Util/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/Util/CMakeLists.txt +++ b/contrib/libs/poco/Util/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/poco/XML/CMakeLists.linux-aarch64.txt b/contrib/libs/poco/XML/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..b3cd42c18a --- /dev/null +++ b/contrib/libs/poco/XML/CMakeLists.linux-aarch64.txt @@ -0,0 +1,108 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-XML) +target_compile_options(libs-poco-XML PRIVATE + -DHAVE_EXPAT_CONFIG_H + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DXML_DTD + -DXML_NS + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-XML PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/expat + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/include +) +target_include_directories(libs-poco-XML PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src +) +target_link_libraries(libs-poco-XML PUBLIC + contrib-libs-cxxsupp + contrib-libs-expat + libs-poco-Foundation +) +target_sources(libs-poco-XML PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/AbstractContainerNode.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/AbstractNode.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Attr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/AttrMap.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Attributes.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/AttributesImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/CDATASection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/CharacterData.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ChildNodesList.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Comment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ContentHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMBuilder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMImplementation.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMObject.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMSerializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DOMWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DTDHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DTDMap.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DeclHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DefaultHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Document.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DocumentEvent.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DocumentFragment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/DocumentType.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Element.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ElementsByTagNameList.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Entity.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EntityReference.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EntityResolver.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EntityResolverImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ErrorHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Event.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EventDispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EventException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EventListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/EventTarget.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/InputSource.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/LexicalHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Locator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/LocatorImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/MutationEvent.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Name.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NamePool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NamedNodeMap.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NamespaceStrategy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NamespaceSupport.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Node.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NodeAppender.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NodeFilter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NodeIterator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/NodeList.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Notation.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ParserEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ProcessingInstruction.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/QName.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/SAXException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/SAXParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/Text.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/TreeWalker.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/ValueTraits.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/WhitespaceFilter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLFilter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLFilterImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLReader.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLStreamParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLStreamParserException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLString.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/XML/src/XMLWriter.cpp +) diff --git a/contrib/libs/poco/XML/CMakeLists.txt b/contrib/libs/poco/XML/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/poco/XML/CMakeLists.txt +++ b/contrib/libs/poco/XML/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/t1ha/CMakeLists.darwin.txt b/contrib/libs/t1ha/CMakeLists.darwin.txt new file mode 100644 index 0000000000..5aab2e8c19 --- /dev/null +++ b/contrib/libs/t1ha/CMakeLists.darwin.txt @@ -0,0 +1,27 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-t1ha) +target_compile_options(contrib-libs-t1ha PRIVATE + -maes + -Wno-everything +) +target_sources(contrib-libs-t1ha PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_noavx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck_all.c +) diff --git a/contrib/libs/t1ha/CMakeLists.linux-aarch64.txt b/contrib/libs/t1ha/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..3a7d58cb05 --- /dev/null +++ b/contrib/libs/t1ha/CMakeLists.linux-aarch64.txt @@ -0,0 +1,26 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-t1ha) +target_compile_options(contrib-libs-t1ha PRIVATE + -Wno-everything +) +target_sources(contrib-libs-t1ha PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_noavx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck_all.c +) diff --git a/contrib/libs/t1ha/CMakeLists.linux.txt b/contrib/libs/t1ha/CMakeLists.linux.txt new file mode 100644 index 0000000000..5aab2e8c19 --- /dev/null +++ b/contrib/libs/t1ha/CMakeLists.linux.txt @@ -0,0 +1,27 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-t1ha) +target_compile_options(contrib-libs-t1ha PRIVATE + -maes + -Wno-everything +) +target_sources(contrib-libs-t1ha PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_noavx.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck.c + ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck_all.c +) diff --git a/contrib/libs/t1ha/CMakeLists.txt b/contrib/libs/t1ha/CMakeLists.txt index 5aab2e8c19..3e0811fb22 100644 --- a/contrib/libs/t1ha/CMakeLists.txt +++ b/contrib/libs/t1ha/CMakeLists.txt @@ -6,22 +6,10 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-t1ha) -target_compile_options(contrib-libs-t1ha PRIVATE - -maes - -Wno-everything -) -target_sources(contrib-libs-t1ha PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_avx2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_ia32aes_noavx.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha0_selfcheck.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha1_selfcheck.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha2_selfcheck.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck.c - ${CMAKE_SOURCE_DIR}/contrib/libs/t1ha/src/t1ha_selfcheck_all.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/tbb/CMakeLists.darwin.txt b/contrib/libs/tbb/CMakeLists.darwin.txt new file mode 100644 index 0000000000..3440164918 --- /dev/null +++ b/contrib/libs/tbb/CMakeLists.darwin.txt @@ -0,0 +1,54 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-tbb) +target_compile_options(contrib-libs-tbb PRIVATE + -D__TBB_BUILD + -mrtm + -mwaitpkg + -DUSE_PTHREAD + -D__TBB_USE_ITT_NOTIFY + -DDO_ITT_NOTIFY + -Wno-everything +) +target_include_directories(contrib-libs-tbb PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/include +) +target_link_libraries(contrib-libs-tbb PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-tbb PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/allocator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena_slot.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/concurrent_bounded_queue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/dynamic_link.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/global_control.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/governor.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/main.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/market.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc_ex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/observer_proxy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/parallel_pipeline.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/private_server.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/profiling.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/queuing_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rml_tbb.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/semaphore.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/small_object_pool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_dispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_group_context.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/version.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/itt_notify.cpp +) diff --git a/contrib/libs/tbb/CMakeLists.linux-aarch64.txt b/contrib/libs/tbb/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a786d878d4 --- /dev/null +++ b/contrib/libs/tbb/CMakeLists.linux-aarch64.txt @@ -0,0 +1,49 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-tbb) +target_compile_options(contrib-libs-tbb PRIVATE + -D__TBB_BUILD + -DUSE_PTHREAD + -Wno-everything +) +target_include_directories(contrib-libs-tbb PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/include +) +target_link_libraries(contrib-libs-tbb PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-tbb PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/allocator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena_slot.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/concurrent_bounded_queue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/dynamic_link.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/global_control.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/governor.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/main.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/market.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc_ex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/observer_proxy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/parallel_pipeline.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/private_server.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/profiling.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/queuing_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rml_tbb.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/semaphore.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/small_object_pool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_dispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_group_context.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/version.cpp +) diff --git a/contrib/libs/tbb/CMakeLists.linux.txt b/contrib/libs/tbb/CMakeLists.linux.txt new file mode 100644 index 0000000000..3440164918 --- /dev/null +++ b/contrib/libs/tbb/CMakeLists.linux.txt @@ -0,0 +1,54 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-tbb) +target_compile_options(contrib-libs-tbb PRIVATE + -D__TBB_BUILD + -mrtm + -mwaitpkg + -DUSE_PTHREAD + -D__TBB_USE_ITT_NOTIFY + -DDO_ITT_NOTIFY + -Wno-everything +) +target_include_directories(contrib-libs-tbb PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/include +) +target_link_libraries(contrib-libs-tbb PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-tbb PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/allocator.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena_slot.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/concurrent_bounded_queue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/dynamic_link.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/global_control.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/governor.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/main.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/market.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc_ex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/observer_proxy.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/parallel_pipeline.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/private_server.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/profiling.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/queuing_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rml_tbb.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_rw_mutex.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/semaphore.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/small_object_pool.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_dispatcher.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_group_context.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/version.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/itt_notify.cpp +) diff --git a/contrib/libs/tbb/CMakeLists.txt b/contrib/libs/tbb/CMakeLists.txt index 3440164918..3e0811fb22 100644 --- a/contrib/libs/tbb/CMakeLists.txt +++ b/contrib/libs/tbb/CMakeLists.txt @@ -6,49 +6,10 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-tbb) -target_compile_options(contrib-libs-tbb PRIVATE - -D__TBB_BUILD - -mrtm - -mwaitpkg - -DUSE_PTHREAD - -D__TBB_USE_ITT_NOTIFY - -DDO_ITT_NOTIFY - -Wno-everything -) -target_include_directories(contrib-libs-tbb PUBLIC - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/include -) -target_link_libraries(contrib-libs-tbb PUBLIC - contrib-libs-cxxsupp -) -target_sources(contrib-libs-tbb PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/allocator.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/arena_slot.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/concurrent_bounded_queue.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/dynamic_link.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/exception.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/global_control.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/governor.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/main.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/market.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/misc_ex.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/observer_proxy.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/parallel_pipeline.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/private_server.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/profiling.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/queuing_rw_mutex.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rml_tbb.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_mutex.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/rtm_rw_mutex.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/semaphore.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/small_object_pool.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_dispatcher.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/task_group_context.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/version.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/tbb/src/tbb/itt_notify.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt b/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..35f329bacb --- /dev/null +++ b/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,77 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(malloc_extension) + +add_library(contrib-libs-tcmalloc) +target_compile_options(contrib-libs-tcmalloc PRIVATE + -DTCMALLOC_256K_PAGES + -Wno-everything +) +target_link_libraries(contrib-libs-tcmalloc PUBLIC + contrib-libs-cxxsupp + contrib-restricted-abseil-cpp + libs-tcmalloc-malloc_extension +) +target_sources(contrib-libs-tcmalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/want_hpaa.cc +) + +add_global_library_for(contrib-libs-tcmalloc.global contrib-libs-tcmalloc) +target_compile_options(contrib-libs-tcmalloc.global PRIVATE + -DTCMALLOC_256K_PAGES + -Wno-everything +) +target_link_libraries(contrib-libs-tcmalloc.global PUBLIC + contrib-libs-cxxsupp + contrib-restricted-abseil-cpp + libs-tcmalloc-malloc_extension +) +target_sources(contrib-libs-tcmalloc.global PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/tcmalloc.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/arena.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/background.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/central_freelist.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/common.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/cpu_cache.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/experimental_pow2_below64_size_class.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/experimental_pow2_size_class.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/legacy_size_classes.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/guarded_page_allocator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/huge_address_map.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/huge_allocator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/huge_cache.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/huge_page_aware_allocator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/page_allocator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/page_allocator_interface.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/page_heap.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/pagemap.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/parameters.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/peak_heap_tracker.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/sampler.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/size_classes.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/span.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/stack_trace_table.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/static_vars.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/stats.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/system-alloc.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/thread_cache.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/transfer_cache.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/experiment.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/noruntime_size_classes.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/cache_topology.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/environment.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/logging.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/memory_stats.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/mincore.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/numa.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/percpu.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/percpu_rseq_asm.S + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/percpu_rseq_unsupported.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/internal/util.cc +) diff --git a/contrib/libs/tcmalloc/CMakeLists.txt b/contrib/libs/tcmalloc/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/tcmalloc/CMakeLists.txt +++ b/contrib/libs/tcmalloc/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/libs/zstd/CMakeLists.darwin.txt b/contrib/libs/zstd/CMakeLists.darwin.txt new file mode 100644 index 0000000000..4a54c7bcb6 --- /dev/null +++ b/contrib/libs/zstd/CMakeLists.darwin.txt @@ -0,0 +1,62 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-zstd) +target_compile_options(contrib-libs-zstd PRIVATE + -DZSTD_LEGACY_SUPPORT=1 + -DZSTD_MULTITHREAD + -DDYNAMIC_BMI2 + -Wno-everything +) +target_include_directories(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy +) +target_link_libraries(contrib-libs-zstd PUBLIC + contrib-libs-xxhash +) +target_sources(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress_amd64.S + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c +) diff --git a/contrib/libs/zstd/CMakeLists.linux-aarch64.txt b/contrib/libs/zstd/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..1af91ccb9b --- /dev/null +++ b/contrib/libs/zstd/CMakeLists.linux-aarch64.txt @@ -0,0 +1,60 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-zstd) +target_compile_options(contrib-libs-zstd PRIVATE + -DZSTD_LEGACY_SUPPORT=1 + -DZSTD_MULTITHREAD + -Wno-everything +) +target_include_directories(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy +) +target_link_libraries(contrib-libs-zstd PUBLIC + contrib-libs-xxhash +) +target_sources(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c +) diff --git a/contrib/libs/zstd/CMakeLists.linux.txt b/contrib/libs/zstd/CMakeLists.linux.txt new file mode 100644 index 0000000000..4a54c7bcb6 --- /dev/null +++ b/contrib/libs/zstd/CMakeLists.linux.txt @@ -0,0 +1,62 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(contrib-libs-zstd) +target_compile_options(contrib-libs-zstd PRIVATE + -DZSTD_LEGACY_SUPPORT=1 + -DZSTD_MULTITHREAD + -DDYNAMIC_BMI2 + -Wno-everything +) +target_include_directories(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy +) +target_link_libraries(contrib-libs-zstd PUBLIC + contrib-libs-xxhash +) +target_sources(contrib-libs-zstd PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress_amd64.S + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c + ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c +) diff --git a/contrib/libs/zstd/CMakeLists.txt b/contrib/libs/zstd/CMakeLists.txt index 4a54c7bcb6..3e0811fb22 100644 --- a/contrib/libs/zstd/CMakeLists.txt +++ b/contrib/libs/zstd/CMakeLists.txt @@ -6,57 +6,10 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-zstd) -target_compile_options(contrib-libs-zstd PRIVATE - -DZSTD_LEGACY_SUPPORT=1 - -DZSTD_MULTITHREAD - -DDYNAMIC_BMI2 - -Wno-everything -) -target_include_directories(contrib-libs-zstd PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy -) -target_link_libraries(contrib-libs-zstd PUBLIC - contrib-libs-xxhash -) -target_sources(contrib-libs-zstd PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress_amd64.S - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c - ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/restricted/aws/aws-c-common/CMakeLists.linux-aarch64.txt b/contrib/restricted/aws/aws-c-common/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a65fdbb87c --- /dev/null +++ b/contrib/restricted/aws/aws-c-common/CMakeLists.linux-aarch64.txt @@ -0,0 +1,79 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(restricted-aws-aws-c-common) +target_compile_options(restricted-aws-aws-c-common PRIVATE + -DAWS_COMMON_USE_IMPORT_EXPORT + -DCJSON_HIDE_SYMBOLS + -DHAVE_AVX2_INTRINSICS + -DHAVE_MM256_EXTRACT_EPI64 + -DHAVE_SYSCONF + -DUSE_SIMD_ENCODING + -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD_ATTR + -Wno-everything +) +target_include_directories(restricted-aws-aws-c-common PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/generated/include + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/include +) +target_sources(restricted-aws-aws-c-common PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/allocator.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/allocator_sba.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/array_list.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/assert.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/bus.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/byte_buf.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/cache.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/codegen.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/command_line_parser.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/common.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/condition_variable.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/date_time.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/device_random.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/encoding.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/error.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/external/cJSON.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/fifo_cache.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/file.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/hash_table.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/json.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/lifo_cache.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/linked_hash_table.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/log_channel.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/log_formatter.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/log_writer.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/logging.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/lru_cache.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/math.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/memtrace.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/clock.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/condition_variable.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/device_random.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/environment.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/file.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/mutex.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/process.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/rw_lock.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/system_info.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/thread.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/posix/time.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/priority_queue.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/process_common.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/promise.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/ref_count.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/ring_buffer.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/statistics.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/string.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/task_scheduler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/thread_scheduler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/thread_shared.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/uuid.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/xml_parser.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-common/source/arch/arm/asm/cpuid.c +) diff --git a/contrib/restricted/aws/aws-c-common/CMakeLists.txt b/contrib/restricted/aws/aws-c-common/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/restricted/aws/aws-c-common/CMakeLists.txt +++ b/contrib/restricted/aws/aws-c-common/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/restricted/aws/aws-c-common/source/arch/arm/asm/cpuid.c b/contrib/restricted/aws/aws-c-common/source/arch/arm/asm/cpuid.c new file mode 100644 index 0000000000..6a306df980 --- /dev/null +++ b/contrib/restricted/aws/aws-c-common/source/arch/arm/asm/cpuid.c @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +#include <aws/common/cpuid.h> +#include <stdlib.h> + +#if defined(__linux__) || defined(__FreeBSD__) +# include <sys/auxv.h> + +static unsigned long s_hwcap[2]; +static bool s_hwcap_cached; + +struct cap_bits { + unsigned long cap; + unsigned long bit; +}; + +# if (defined(__aarch64__)) +struct cap_bits s_check_cap[AWS_CPU_FEATURE_COUNT] = { + [AWS_CPU_FEATURE_ARM_CRC] = {0, 1 << 7 /* HWCAP_CRC */}, +}; +# else +struct cap_bits s_check_cap[AWS_CPU_FEATURE_COUNT] = { + [AWS_CPU_FEATURE_ARM_CRC] = {1, 1 << 4 /* HWCAP_CRC */}, +}; +# endif + +# if (defined(__linux__)) +static void s_cache_hwcap(void) { + s_hwcap[0] = getauxval(AT_HWCAP); + s_hwcap[1] = getauxval(AT_HWCAP2); + s_hwcap_cached = true; +} +# elif (defined(__FreeBSD__)) +static void s_cache_hwcap(void) { + int ret; + + ret = elf_aux_info(AT_HWCAP, &s_hwcap[0], sizeof(unsigned long)); + if (ret) + s_hwcap[0] = 0; + + ret = elf_aux_info(AT_HWCAP2, &s_hwcap[1], sizeof(unsigned long)); + if (ret) + s_hwcap[1] = 0; + s_hwcap_cached = true; +} +# else +# error "Unknown method" +# endif + +bool aws_cpu_has_feature(enum aws_cpu_feature_name feature_name) { + + if (!s_hwcap_cached) + s_cache_hwcap(); + + switch (feature_name) { + case AWS_CPU_FEATURE_ARM_CRC: + return s_hwcap[s_check_cap[feature_name].cap] & s_check_cap[feature_name].bit; + default: + return false; + } +} + +#else /* defined(__linux__) || defined(__FreeBSD__) */ +bool aws_cpu_has_feature(enum aws_cpu_feature_name feature_name) { + return false; +} +#endif /* defined(__linux__) || defined(__FreeBSD__) */ diff --git a/contrib/restricted/aws/aws-c-io/CMakeLists.linux-aarch64.txt b/contrib/restricted/aws/aws-c-io/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..ffac39a850 --- /dev/null +++ b/contrib/restricted/aws/aws-c-io/CMakeLists.linux-aarch64.txt @@ -0,0 +1,70 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(restricted-aws-aws-c-io) +target_compile_options(restricted-aws-aws-c-io PRIVATE + -DAWS_CAL_USE_IMPORT_EXPORT + -DAWS_COMMON_USE_IMPORT_EXPORT + -DAWS_IO_USE_IMPORT_EXPORT + -DAWS_USE_EPOLL + -DHAVE_SYSCONF + -DS2N_ADX + -DS2N_BIKE_R3_AVX2 + -DS2N_BIKE_R3_AVX512 + -DS2N_BIKE_R3_PCLMUL + -DS2N_CLONE_SUPPORTED + -DS2N_CPUID_AVAILABLE + -DS2N_FALL_THROUGH_SUPPORTED + -DS2N_FEATURES_AVAILABLE + -DS2N_HAVE_EXECINFO + -DS2N_KYBER512R3_AVX2_BMI2 + -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH + -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX + -DS2N_MADVISE_SUPPORTED + -DS2N_SIKE_P434_R3_ASM + -DS2N___RESTRICT__SUPPORTED + -DUSE_S2N + -Wno-everything +) +target_include_directories(restricted-aws-aws-c-io PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/include +) +target_link_libraries(restricted-aws-aws-c-io PUBLIC + restricted-aws-aws-c-cal + restricted-aws-aws-c-common + restricted-aws-s2n +) +target_sources(restricted-aws-aws-c-io PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/alpn_handler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/channel.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/channel_bootstrap.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/event_loop.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/exponential_backoff_retry_strategy.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/host_resolver.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/io.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/message_pool.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/pem_utils.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/pkcs11_lib.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/pkcs11_tls_op_handler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/pki_utils.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/posix/host_resolver.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/posix/pipe.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/posix/shared_library.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/posix/socket.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/retry_strategy.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/s2n/s2n_tls_channel_handler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/socket_channel_handler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/standard_retry_strategy.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/statistics.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/stream.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/tls_channel_handler.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/tls_channel_handler_shared.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/uri.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/aws-c-io/source/linux/epoll_event_loop.c +) diff --git a/contrib/restricted/aws/aws-c-io/CMakeLists.txt b/contrib/restricted/aws/aws-c-io/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/restricted/aws/aws-c-io/CMakeLists.txt +++ b/contrib/restricted/aws/aws-c-io/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/restricted/aws/s2n/CMakeLists.linux-aarch64.txt b/contrib/restricted/aws/s2n/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..9e3cb12f6f --- /dev/null +++ b/contrib/restricted/aws/s2n/CMakeLists.linux-aarch64.txt @@ -0,0 +1,203 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) + +add_library(restricted-aws-s2n) +target_compile_options(restricted-aws-s2n PRIVATE + -DS2N_CLONE_SUPPORTED + -DS2N_FALL_THROUGH_SUPPORTED + -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH + -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX + -DS2N_LIBCRYPTO_SUPPORTS_EVP_RC4 + -DS2N_MADVISE_SUPPORTED + -DS2N___RESTRICT__SUPPORTED + -DS2N_FEATURES_AVAILABLE + -DS2N_STACKTRACE + -Wno-everything +) +target_include_directories(restricted-aws-s2n PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/api +) +target_link_libraries(restricted-aws-s2n PUBLIC + OpenSSL::OpenSSL +) +target_sources(restricted-aws-s2n PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_aead_cipher_aes_gcm.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_aead_cipher_chacha20_poly1305.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_cbc_cipher_3des.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_cbc_cipher_aes.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_certificate.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_cipher.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_composite_cipher_aes_sha.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_crypto.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_dhe.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_drbg.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_ecc_evp.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_ecdsa.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_evp.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_evp_signing.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_fips.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_hash.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_hkdf.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_hmac.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_libcrypto.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_locking.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_openssl_x509.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_pkey.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_rsa.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_rsa_pss.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_rsa_signing.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_sequence.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_stream_cipher_null.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_stream_cipher_rc4.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/crypto/s2n_tls13_keys.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/error/s2n_errno.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_cbd.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_fips202.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_indcpa.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_kem.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_ntt.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_poly.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_polyvec.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_reduce.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_symmetric-shake.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/s2n_pq.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/s2n_pq_random.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer_base64.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer_file.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer_network_order.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer_pem.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/stuffer/s2n_stuffer_text.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_alpn.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_cookie.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_early_data_indication.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_ems.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_key_share.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_max_frag_len.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_pq_kem.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_psk.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_renegotiation_info.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_sct_list.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_server_name.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_session_ticket.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_signature_algorithms.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_status_request.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_supported_groups.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_client_supported_versions.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_ec_point_format.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_extension_list.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_extension_type.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_extension_type_lists.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_key_share.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_npn.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_nst_early_data_indication.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_psk_key_exchange_modes.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_quic_transport_params.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_alpn.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_certificate_status.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_cookie.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_early_data_indication.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_ems.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_key_share.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_max_fragment_length.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_psk.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_renegotiation_info.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_sct_list.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_server_name.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_session_ticket.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_signature_algorithms.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_status_request.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_server_supported_versions.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/extensions/s2n_supported_versions.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_aead.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_alerts.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_async_pkey.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_auth_selection.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_cbc.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_change_cipher_spec.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_cipher_preferences.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_cipher_suites.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_cert.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_cert_verify.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_finished.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_hello.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_hello_request.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_client_key_exchange.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_config.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_connection.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_crypto.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_early_data.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_early_data_io.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_ecc_preferences.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_encrypted_extensions.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_establish_session.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_handshake.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_handshake_hashes.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_handshake_io.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_handshake_transcript.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_handshake_type.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_kem.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_kem_preferences.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_kex.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_key_log.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_key_update.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_ocsp_stapling.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_post_handshake.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_prf.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_protocol_preferences.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_psk.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_quic_support.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_read.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_read_aead.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_read_cbc.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_read_composite.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_read_stream.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_record_write.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_recv.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_renegotiate.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_resume.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_security_policies.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_send.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_cert.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_cert_request.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_done.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_extensions.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_finished.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_hello.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_hello_retry.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_key_exchange.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_server_new_session_ticket.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_shutdown.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_signature_algorithms.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_signature_scheme.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls13.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls13_certificate_verify.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls13_handshake.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls13_key_schedule.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_tls13_secrets.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/tls/s2n_x509_validator.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_array.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_asn1_time.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_blob.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_ensure.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_fork_detection.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_init.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_map.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_mem.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_random.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_result.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_rfc5952.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_safety.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_set.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_socket.c + ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_timer.c +) diff --git a/contrib/restricted/aws/s2n/CMakeLists.txt b/contrib/restricted/aws/s2n/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/restricted/aws/s2n/CMakeLists.txt +++ b/contrib/restricted/aws/s2n/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/restricted/boost/context/fcontext_impl/CMakeLists.linux-aarch64.txt b/contrib/restricted/boost/context/fcontext_impl/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a2540271b2 --- /dev/null +++ b/contrib/restricted/boost/context/fcontext_impl/CMakeLists.linux-aarch64.txt @@ -0,0 +1,22 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(boost-context-fcontext_impl) +target_compile_options(boost-context-fcontext_impl PRIVATE + -Wno-everything +) +target_link_libraries(boost-context-fcontext_impl PUBLIC + contrib-libs-cxxsupp + boost-context-impl_common +) +target_sources(boost-context-fcontext_impl PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/context/src/asm/jump_arm64_aapcs_elf_gas.S + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/context/src/asm/make_arm64_aapcs_elf_gas.S + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/context/src/asm/ontop_arm64_aapcs_elf_gas.S +) diff --git a/contrib/restricted/boost/context/fcontext_impl/CMakeLists.txt b/contrib/restricted/boost/context/fcontext_impl/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/restricted/boost/context/fcontext_impl/CMakeLists.txt +++ b/contrib/restricted/boost/context/fcontext_impl/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/restricted/boost/context/src/asm/jump_arm64_aapcs_elf_gas.S b/contrib/restricted/boost/context/src/asm/jump_arm64_aapcs_elf_gas.S new file mode 100644 index 0000000000..cefd1830d7 --- /dev/null +++ b/contrib/restricted/boost/context/src/asm/jump_arm64_aapcs_elf_gas.S @@ -0,0 +1,114 @@ +/* + Copyright Edward Nevill + Oliver Kowalke 2015 + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +*/ +/******************************************************* + * * + * ------------------------------------------------- * + * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | * + * ------------------------------------------------- * + * | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c| * + * ------------------------------------------------- * + * | d8 | d9 | d10 | d11 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | * + * ------------------------------------------------- * + * | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c| * + * ------------------------------------------------- * + * | d12 | d13 | d14 | d15 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | * + * ------------------------------------------------- * + * | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c| * + * ------------------------------------------------- * + * | x19 | x20 | x21 | x22 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | * + * ------------------------------------------------- * + * | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c| * + * ------------------------------------------------- * + * | x23 | x24 | x25 | x26 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | * + * ------------------------------------------------- * + * | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c| * + * ------------------------------------------------- * + * | x27 | x28 | FP | LR | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 40 | 41 | 42 | 43 | | | * + * ------------------------------------------------- * + * | 0xa0| 0xa4| 0xa8| 0xac| | | * + * ------------------------------------------------- * + * | PC | align | | | * + * ------------------------------------------------- * + * * + *******************************************************/ + +.file "jump_arm64_aapcs_elf_gas.S" +.text +.align 2 +.global jump_fcontext +.type jump_fcontext, %function +jump_fcontext: + # prepare stack for GP + FPU + sub sp, sp, #0xb0 + + # save d8 - d15 + stp d8, d9, [sp, #0x00] + stp d10, d11, [sp, #0x10] + stp d12, d13, [sp, #0x20] + stp d14, d15, [sp, #0x30] + + # save x19-x30 + stp x19, x20, [sp, #0x40] + stp x21, x22, [sp, #0x50] + stp x23, x24, [sp, #0x60] + stp x25, x26, [sp, #0x70] + stp x27, x28, [sp, #0x80] + stp x29, x30, [sp, #0x90] + + # save LR as PC + str x30, [sp, #0xa0] + + # store RSP (pointing to context-data) in X0 + mov x4, sp + + # restore RSP (pointing to context-data) from X1 + mov sp, x0 + + # load d8 - d15 + ldp d8, d9, [sp, #0x00] + ldp d10, d11, [sp, #0x10] + ldp d12, d13, [sp, #0x20] + ldp d14, d15, [sp, #0x30] + + # load x19-x30 + ldp x19, x20, [sp, #0x40] + ldp x21, x22, [sp, #0x50] + ldp x23, x24, [sp, #0x60] + ldp x25, x26, [sp, #0x70] + ldp x27, x28, [sp, #0x80] + ldp x29, x30, [sp, #0x90] + + # return transfer_t from jump + # pass transfer_t as first arg in context function + # X0 == FCTX, X1 == DATA + mov x0, x4 + + # load pc + ldr x4, [sp, #0xa0] + + # restore stack from GP + FPU + add sp, sp, #0xb0 + + ret x4 +.size jump_fcontext,.-jump_fcontext +# Mark that we don't need executable stack. +.section .note.GNU-stack,"",%progbits diff --git a/contrib/restricted/boost/context/src/asm/make_arm64_aapcs_elf_gas.S b/contrib/restricted/boost/context/src/asm/make_arm64_aapcs_elf_gas.S new file mode 100644 index 0000000000..66cfb2da17 --- /dev/null +++ b/contrib/restricted/boost/context/src/asm/make_arm64_aapcs_elf_gas.S @@ -0,0 +1,85 @@ +/* + Copyright Edward Nevill + Oliver Kowalke 2015 + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +*/ +/******************************************************* + * * + * ------------------------------------------------- * + * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | * + * ------------------------------------------------- * + * | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c| * + * ------------------------------------------------- * + * | d8 | d9 | d10 | d11 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | * + * ------------------------------------------------- * + * | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c| * + * ------------------------------------------------- * + * | d12 | d13 | d14 | d15 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | * + * ------------------------------------------------- * + * | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c| * + * ------------------------------------------------- * + * | x19 | x20 | x21 | x22 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | * + * ------------------------------------------------- * + * | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c| * + * ------------------------------------------------- * + * | x23 | x24 | x25 | x26 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | * + * ------------------------------------------------- * + * | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c| * + * ------------------------------------------------- * + * | x27 | x28 | FP | LR | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 40 | 41 | 42 | 43 | | | * + * ------------------------------------------------- * + * | 0xa0| 0xa4| 0xa8| 0xac| | | * + * ------------------------------------------------- * + * | PC | align | | | * + * ------------------------------------------------- * + * * + *******************************************************/ + +.file "make_arm64_aapcs_elf_gas.S" +.text +.align 2 +.global make_fcontext +.type make_fcontext, %function +make_fcontext: + # shift address in x0 (allocated stack) to lower 16 byte boundary + and x0, x0, ~0xF + + # reserve space for context-data on context-stack + sub x0, x0, #0xb0 + + # third arg of make_fcontext() == address of context-function + # store address as a PC to jump in + str x2, [x0, #0xa0] + + # save address of finish as return-address for context-function + # will be entered after context-function returns (LR register) + adr x1, finish + str x1, [x0, #0x98] + + ret x30 // return pointer to context-data (x0) + +finish: + # exit code is zero + mov x0, #0 + # exit application + bl _exit + +.size make_fcontext,.-make_fcontext +# Mark that we don't need executable stack. +.section .note.GNU-stack,"",%progbits diff --git a/contrib/restricted/boost/context/src/asm/ontop_arm64_aapcs_elf_gas.S b/contrib/restricted/boost/context/src/asm/ontop_arm64_aapcs_elf_gas.S new file mode 100644 index 0000000000..665ca5a2c1 --- /dev/null +++ b/contrib/restricted/boost/context/src/asm/ontop_arm64_aapcs_elf_gas.S @@ -0,0 +1,113 @@ +/* + Copyright Edward Nevill + Oliver Kowalke 2015 + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +*/ +/******************************************************* + * * + * ------------------------------------------------- * + * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | * + * ------------------------------------------------- * + * | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c| * + * ------------------------------------------------- * + * | d8 | d9 | d10 | d11 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | * + * ------------------------------------------------- * + * | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c| * + * ------------------------------------------------- * + * | d12 | d13 | d14 | d15 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | * + * ------------------------------------------------- * + * | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c| * + * ------------------------------------------------- * + * | x19 | x20 | x21 | x22 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | * + * ------------------------------------------------- * + * | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c| * + * ------------------------------------------------- * + * | x23 | x24 | x25 | x26 | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | * + * ------------------------------------------------- * + * | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c| * + * ------------------------------------------------- * + * | x27 | x28 | FP | LR | * + * ------------------------------------------------- * + * ------------------------------------------------- * + * | 40 | 41 | 42 | 43 | | | * + * ------------------------------------------------- * + * | 0xa0| 0xa4| 0xa8| 0xac| | | * + * ------------------------------------------------- * + * | PC | align | | | * + * ------------------------------------------------- * + * * + *******************************************************/ + +.file "ontop_arm64_aapcs_elf_gas.S" +.text +.align 2 +.global ontop_fcontext +.type ontop_fcontext, %function +ontop_fcontext: + # prepare stack for GP + FPU + sub sp, sp, #0xb0 + + # save d8 - d15 + stp d8, d9, [sp, #0x00] + stp d10, d11, [sp, #0x10] + stp d12, d13, [sp, #0x20] + stp d14, d15, [sp, #0x30] + + # save x19-x30 + stp x19, x20, [sp, #0x40] + stp x21, x22, [sp, #0x50] + stp x23, x24, [sp, #0x60] + stp x25, x26, [sp, #0x70] + stp x27, x28, [sp, #0x80] + stp x29, x30, [sp, #0x90] + + # save LR as PC + str x30, [sp, #0xa0] + + # store RSP (pointing to context-data) in X5 + mov x4, sp + + # restore RSP (pointing to context-data) from X1 + mov sp, x0 + + # load d8 - d15 + ldp d8, d9, [sp, #0x00] + ldp d10, d11, [sp, #0x10] + ldp d12, d13, [sp, #0x20] + ldp d14, d15, [sp, #0x30] + + # load x19-x30 + ldp x19, x20, [sp, #0x40] + ldp x21, x22, [sp, #0x50] + ldp x23, x24, [sp, #0x60] + ldp x25, x26, [sp, #0x70] + ldp x27, x28, [sp, #0x80] + ldp x29, x30, [sp, #0x90] + + # return transfer_t from jump + # pass transfer_t as first arg in context function + # X0 == FCTX, X1 == DATA + mov x0, x4 + + # skip pc + # restore stack from GP + FPU + add sp, sp, #0xb0 + + # jump to ontop-function + ret x2 +.size ontop_fcontext,.-ontop_fcontext +# Mark that we don't need executable stack. +.section .note.GNU-stack,"",%progbits diff --git a/contrib/restricted/boost/filesystem/CMakeLists.linux-aarch64.txt b/contrib/restricted/boost/filesystem/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..476398fbe5 --- /dev/null +++ b/contrib/restricted/boost/filesystem/CMakeLists.linux-aarch64.txt @@ -0,0 +1,48 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(restricted-boost-filesystem) +target_compile_options(restricted-boost-filesystem PUBLIC + -DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS +) +target_compile_options(restricted-boost-filesystem PRIVATE + -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF + -Wno-everything +) +target_include_directories(restricted-boost-filesystem PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/include +) +target_link_libraries(restricted-boost-filesystem PUBLIC + contrib-libs-cxxsupp + restricted-boost-assert + restricted-boost-atomic + restricted-boost-config + restricted-boost-container_hash + restricted-boost-core + restricted-boost-detail + restricted-boost-io + restricted-boost-iterator + restricted-boost-range + restricted-boost-smart_ptr + restricted-boost-static_assert + restricted-boost-system + restricted-boost-type_traits +) +target_sources(restricted-boost-filesystem PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/codecvt_error_category.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/directory.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/operations.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/path.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/path_traits.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/portability.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/unique_path.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/utf8_codecvt_facet.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/filesystem/src/windows_file_codecvt.cpp +) diff --git a/contrib/restricted/boost/filesystem/CMakeLists.txt b/contrib/restricted/boost/filesystem/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/restricted/boost/filesystem/CMakeLists.txt +++ b/contrib/restricted/boost/filesystem/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/fficonfig.h b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/fficonfig.h new file mode 100644 index 0000000000..41cc3cb9e8 --- /dev/null +++ b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/fficonfig.h @@ -0,0 +1,215 @@ +/* fficonfig.h. Generated from fficonfig.h.in by configure. */ +/* fficonfig.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Define to the flags needed for the .section .eh_frame directive. */ +#define EH_FRAME_FLAGS "aw" + +/* Define this if you want extra debugging. */ +/* #undef FFI_DEBUG */ + +/* Cannot use PROT_EXEC on this target, so, we revert to alternative means */ +/* #undef FFI_EXEC_TRAMPOLINE_TABLE */ + +/* Define this if you want to enable pax emulated trampolines */ +#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1 + +/* Cannot use malloc on this target, so, we revert to alternative means */ +/* #undef FFI_MMAP_EXEC_WRIT */ + +/* Define this if you do not want support for the raw API. */ +/* #undef FFI_NO_RAW_API */ + +/* Define this if you do not want support for aggregate types. */ +/* #undef FFI_NO_STRUCTS */ + +/* Define to 1 if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). + */ +#define HAVE_ALLOCA_H 1 + +/* Define if your assembler supports .cfi_* directives. */ +#define HAVE_AS_CFI_PSEUDO_OP 1 + +/* Define if your assembler supports .register. */ +/* #undef HAVE_AS_REGISTER_PSEUDO_OP */ + +/* Define if the compiler uses zarch features. */ +/* #undef HAVE_AS_S390_ZARCH */ + +/* Define if your assembler and linker support unaligned PC relative relocs. + */ +/* #undef HAVE_AS_SPARC_UA_PCREL */ + +/* Define if your assembler supports unwind section type. */ +/* #undef HAVE_AS_X86_64_UNWIND_SECTION_TYPE */ + +/* Define if your assembler supports PC relative relocs. */ +/* #undef HAVE_AS_X86_PCREL */ + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define if __attribute__((visibility("hidden"))) is supported. */ +#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if you have the long double type and it is bigger than a double */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you support more than one size of the long double type */ +/* #undef HAVE_LONG_DOUBLE_VARIANT */ + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mkostemp' function. */ +#define HAVE_MKOSTEMP 1 + +/* Define to 1 if you have the `mmap' function. */ +#define HAVE_MMAP 1 + +/* Define if mmap with MAP_ANON(YMOUS) works. */ +#define HAVE_MMAP_ANON 1 + +/* Define if mmap of /dev/zero works. */ +#define HAVE_MMAP_DEV_ZERO 1 + +/* Define if read-only mmap of a plain file works. */ +#define HAVE_MMAP_FILE 1 + +/* Define if .eh_frame sections should be read-only. */ +/* #undef HAVE_RO_EH_FRAME */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if GNU symbol versioning is used for libatomic. */ +#define LIBFFI_GNU_SYMBOL_VERSIONING 1 + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libffi" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "http://github.com/libffi/libffi/issues" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libffi" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libffi 3.3" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libffi" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "3.3" + +/* The size of `double', as computed by sizeof. */ +#define SIZEOF_DOUBLE 8 + +/* The size of `long double', as computed by sizeof. */ +#define SIZEOF_LONG_DOUBLE 16 + +/* The size of `size_t', as computed by sizeof. */ +#define SIZEOF_SIZE_T 8 + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at runtime. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if symbols are underscored. */ +/* #undef SYMBOL_UNDERSCORE */ + +/* Define this if you are using Purify and want to suppress spurious messages. + */ +/* #undef USING_PURIFY */ + +/* Version number of package */ +#define VERSION "3.3" + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +/* #undef size_t */ + + +#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE +#ifdef LIBFFI_ASM +#ifdef __APPLE__ +#define FFI_HIDDEN(name) .private_extern name +#else +#define FFI_HIDDEN(name) .hidden name +#endif +#else +#define FFI_HIDDEN __attribute__ ((visibility ("hidden"))) +#endif +#else +#ifdef LIBFFI_ASM +#define FFI_HIDDEN(name) +#else +#define FFI_HIDDEN +#endif +#endif + diff --git a/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffi.h b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffi.h new file mode 100644 index 0000000000..631c77ae35 --- /dev/null +++ b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffi.h @@ -0,0 +1,515 @@ +/* -----------------------------------------------------------------*-C-*- + libffi 3.3 - Copyright (c) 2011, 2014, 2019 Anthony Green + - Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the ``Software''), to deal in the Software without + restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + ----------------------------------------------------------------------- */ + +/* ------------------------------------------------------------------- + Most of the API is documented in doc/libffi.texi. + + The raw API is designed to bypass some of the argument packing and + unpacking on architectures for which it can be avoided. Routines + are provided to emulate the raw API if the underlying platform + doesn't allow faster implementation. + + More details on the raw API can be found in: + + http://gcc.gnu.org/ml/java/1999-q3/msg00138.html + + and + + http://gcc.gnu.org/ml/java/1999-q3/msg00174.html + -------------------------------------------------------------------- */ + +#ifndef LIBFFI_H +#define LIBFFI_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* Specify which architecture libffi is configured for. */ +#ifndef AARCH64 +#define AARCH64 +#endif + +/* ---- System configuration information --------------------------------- */ + +#include <ffitarget.h> + +#ifndef LIBFFI_ASM + +#if defined(_MSC_VER) && !defined(__clang__) +#define __attribute__(X) +#endif + +#include <stddef.h> +#include <limits.h> + +/* LONG_LONG_MAX is not always defined (not if STRICT_ANSI, for example). + But we can find it either under the correct ANSI name, or under GNU + C's internal name. */ + +#define FFI_64_BIT_MAX 9223372036854775807 + +#ifdef LONG_LONG_MAX +# define FFI_LONG_LONG_MAX LONG_LONG_MAX +#else +# ifdef LLONG_MAX +# define FFI_LONG_LONG_MAX LLONG_MAX +# ifdef _AIX52 /* or newer has C99 LLONG_MAX */ +# undef FFI_64_BIT_MAX +# define FFI_64_BIT_MAX 9223372036854775807LL +# endif /* _AIX52 or newer */ +# else +# ifdef __GNUC__ +# define FFI_LONG_LONG_MAX __LONG_LONG_MAX__ +# endif +# ifdef _AIX /* AIX 5.1 and earlier have LONGLONG_MAX */ +# ifndef __PPC64__ +# if defined (__IBMC__) || defined (__IBMCPP__) +# define FFI_LONG_LONG_MAX LONGLONG_MAX +# endif +# endif /* __PPC64__ */ +# undef FFI_64_BIT_MAX +# define FFI_64_BIT_MAX 9223372036854775807LL +# endif +# endif +#endif + +/* The closure code assumes that this works on pointers, i.e. a size_t + can hold a pointer. */ + +typedef struct _ffi_type +{ + size_t size; + unsigned short alignment; + unsigned short type; + struct _ffi_type **elements; +} ffi_type; + +/* Need minimal decorations for DLLs to work on Windows. GCC has + autoimport and autoexport. Always mark externally visible symbols + as dllimport for MSVC clients, even if it means an extra indirection + when using the static version of the library. + Besides, as a workaround, they can define FFI_BUILDING if they + *know* they are going to link with the static library. */ +#if defined _MSC_VER +# if defined FFI_BUILDING_DLL /* Building libffi.DLL with msvcc.sh */ +# define FFI_API __declspec(dllexport) +# elif !defined FFI_BUILDING /* Importing libffi.DLL */ +# define FFI_API __declspec(dllimport) +# else /* Building/linking static library */ +# define FFI_API +# endif +#else +# define FFI_API +#endif + +/* The externally visible type declarations also need the MSVC DLL + decorations, or they will not be exported from the object file. */ +#if defined LIBFFI_HIDE_BASIC_TYPES +# define FFI_EXTERN FFI_API +#else +# define FFI_EXTERN extern FFI_API +#endif + +#ifndef LIBFFI_HIDE_BASIC_TYPES +#if SCHAR_MAX == 127 +# define ffi_type_uchar ffi_type_uint8 +# define ffi_type_schar ffi_type_sint8 +#else + #error "char size not supported" +#endif + +#if SHRT_MAX == 32767 +# define ffi_type_ushort ffi_type_uint16 +# define ffi_type_sshort ffi_type_sint16 +#elif SHRT_MAX == 2147483647 +# define ffi_type_ushort ffi_type_uint32 +# define ffi_type_sshort ffi_type_sint32 +#else + #error "short size not supported" +#endif + +#if INT_MAX == 32767 +# define ffi_type_uint ffi_type_uint16 +# define ffi_type_sint ffi_type_sint16 +#elif INT_MAX == 2147483647 +# define ffi_type_uint ffi_type_uint32 +# define ffi_type_sint ffi_type_sint32 +#elif INT_MAX == 9223372036854775807 +# define ffi_type_uint ffi_type_uint64 +# define ffi_type_sint ffi_type_sint64 +#else + #error "int size not supported" +#endif + +#if LONG_MAX == 2147483647 +# if FFI_LONG_LONG_MAX != FFI_64_BIT_MAX + #error "no 64-bit data type supported" +# endif +#elif LONG_MAX != FFI_64_BIT_MAX + #error "long size not supported" +#endif + +#if LONG_MAX == 2147483647 +# define ffi_type_ulong ffi_type_uint32 +# define ffi_type_slong ffi_type_sint32 +#elif LONG_MAX == FFI_64_BIT_MAX +# define ffi_type_ulong ffi_type_uint64 +# define ffi_type_slong ffi_type_sint64 +#else + #error "long size not supported" +#endif + +/* These are defined in types.c. */ +FFI_EXTERN ffi_type ffi_type_void; +FFI_EXTERN ffi_type ffi_type_uint8; +FFI_EXTERN ffi_type ffi_type_sint8; +FFI_EXTERN ffi_type ffi_type_uint16; +FFI_EXTERN ffi_type ffi_type_sint16; +FFI_EXTERN ffi_type ffi_type_uint32; +FFI_EXTERN ffi_type ffi_type_sint32; +FFI_EXTERN ffi_type ffi_type_uint64; +FFI_EXTERN ffi_type ffi_type_sint64; +FFI_EXTERN ffi_type ffi_type_float; +FFI_EXTERN ffi_type ffi_type_double; +FFI_EXTERN ffi_type ffi_type_pointer; + +#if 1 +FFI_EXTERN ffi_type ffi_type_longdouble; +#else +#define ffi_type_longdouble ffi_type_double +#endif + +#ifdef FFI_TARGET_HAS_COMPLEX_TYPE +FFI_EXTERN ffi_type ffi_type_complex_float; +FFI_EXTERN ffi_type ffi_type_complex_double; +#if 1 +FFI_EXTERN ffi_type ffi_type_complex_longdouble; +#else +#define ffi_type_complex_longdouble ffi_type_complex_double +#endif +#endif +#endif /* LIBFFI_HIDE_BASIC_TYPES */ + +typedef enum { + FFI_OK = 0, + FFI_BAD_TYPEDEF, + FFI_BAD_ABI +} ffi_status; + +typedef struct { + ffi_abi abi; + unsigned nargs; + ffi_type **arg_types; + ffi_type *rtype; + unsigned bytes; + unsigned flags; +#ifdef FFI_EXTRA_CIF_FIELDS + FFI_EXTRA_CIF_FIELDS; +#endif +} ffi_cif; + +/* ---- Definitions for the raw API -------------------------------------- */ + +#ifndef FFI_SIZEOF_ARG +# if LONG_MAX == 2147483647 +# define FFI_SIZEOF_ARG 4 +# elif LONG_MAX == FFI_64_BIT_MAX +# define FFI_SIZEOF_ARG 8 +# endif +#endif + +#ifndef FFI_SIZEOF_JAVA_RAW +# define FFI_SIZEOF_JAVA_RAW FFI_SIZEOF_ARG +#endif + +typedef union { + ffi_sarg sint; + ffi_arg uint; + float flt; + char data[FFI_SIZEOF_ARG]; + void* ptr; +} ffi_raw; + +#if FFI_SIZEOF_JAVA_RAW == 4 && FFI_SIZEOF_ARG == 8 +/* This is a special case for mips64/n32 ABI (and perhaps others) where + sizeof(void *) is 4 and FFI_SIZEOF_ARG is 8. */ +typedef union { + signed int sint; + unsigned int uint; + float flt; + char data[FFI_SIZEOF_JAVA_RAW]; + void* ptr; +} ffi_java_raw; +#else +typedef ffi_raw ffi_java_raw; +#endif + + +FFI_API +void ffi_raw_call (ffi_cif *cif, + void (*fn)(void), + void *rvalue, + ffi_raw *avalue); + +FFI_API void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); +FFI_API void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); +FFI_API size_t ffi_raw_size (ffi_cif *cif); + +/* This is analogous to the raw API, except it uses Java parameter + packing, even on 64-bit machines. I.e. on 64-bit machines longs + and doubles are followed by an empty 64-bit word. */ + +#if !FFI_NATIVE_RAW_API +FFI_API +void ffi_java_raw_call (ffi_cif *cif, + void (*fn)(void), + void *rvalue, + ffi_java_raw *avalue) __attribute__((deprecated)); +#endif + +FFI_API +void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) __attribute__((deprecated)); +FFI_API +void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args) __attribute__((deprecated)); +FFI_API +size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated)); + +/* ---- Definitions for closures ----------------------------------------- */ + +#if FFI_CLOSURES + +#ifdef _MSC_VER +__declspec(align(8)) +#endif +typedef struct { +#if 0 + void *trampoline_table; + void *trampoline_table_entry; +#else + char tramp[FFI_TRAMPOLINE_SIZE]; +#endif + ffi_cif *cif; + void (*fun)(ffi_cif*,void*,void**,void*); + void *user_data; +} ffi_closure +#ifdef __GNUC__ + __attribute__((aligned (8))) +#endif + ; + +#ifndef __GNUC__ +# ifdef __sgi +# pragma pack 0 +# endif +#endif + +FFI_API void *ffi_closure_alloc (size_t size, void **code); +FFI_API void ffi_closure_free (void *); + +FFI_API ffi_status +ffi_prep_closure (ffi_closure*, + ffi_cif *, + void (*fun)(ffi_cif*,void*,void**,void*), + void *user_data) +#if defined(__GNUC__) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 405) + __attribute__((deprecated ("use ffi_prep_closure_loc instead"))) +#elif defined(__GNUC__) && __GNUC__ >= 3 + __attribute__((deprecated)) +#endif + ; + +FFI_API ffi_status +ffi_prep_closure_loc (ffi_closure*, + ffi_cif *, + void (*fun)(ffi_cif*,void*,void**,void*), + void *user_data, + void*codeloc); + +#ifdef __sgi +# pragma pack 8 +#endif +typedef struct { +#if 0 + void *trampoline_table; + void *trampoline_table_entry; +#else + char tramp[FFI_TRAMPOLINE_SIZE]; +#endif + ffi_cif *cif; + +#if !FFI_NATIVE_RAW_API + + /* If this is enabled, then a raw closure has the same layout + as a regular closure. We use this to install an intermediate + handler to do the transaltion, void** -> ffi_raw*. */ + + void (*translate_args)(ffi_cif*,void*,void**,void*); + void *this_closure; + +#endif + + void (*fun)(ffi_cif*,void*,ffi_raw*,void*); + void *user_data; + +} ffi_raw_closure; + +typedef struct { +#if 0 + void *trampoline_table; + void *trampoline_table_entry; +#else + char tramp[FFI_TRAMPOLINE_SIZE]; +#endif + + ffi_cif *cif; + +#if !FFI_NATIVE_RAW_API + + /* If this is enabled, then a raw closure has the same layout + as a regular closure. We use this to install an intermediate + handler to do the translation, void** -> ffi_raw*. */ + + void (*translate_args)(ffi_cif*,void*,void**,void*); + void *this_closure; + +#endif + + void (*fun)(ffi_cif*,void*,ffi_java_raw*,void*); + void *user_data; + +} ffi_java_raw_closure; + +FFI_API ffi_status +ffi_prep_raw_closure (ffi_raw_closure*, + ffi_cif *cif, + void (*fun)(ffi_cif*,void*,ffi_raw*,void*), + void *user_data); + +FFI_API ffi_status +ffi_prep_raw_closure_loc (ffi_raw_closure*, + ffi_cif *cif, + void (*fun)(ffi_cif*,void*,ffi_raw*,void*), + void *user_data, + void *codeloc); + +#if !FFI_NATIVE_RAW_API +FFI_API ffi_status +ffi_prep_java_raw_closure (ffi_java_raw_closure*, + ffi_cif *cif, + void (*fun)(ffi_cif*,void*,ffi_java_raw*,void*), + void *user_data) __attribute__((deprecated)); + +FFI_API ffi_status +ffi_prep_java_raw_closure_loc (ffi_java_raw_closure*, + ffi_cif *cif, + void (*fun)(ffi_cif*,void*,ffi_java_raw*,void*), + void *user_data, + void *codeloc) __attribute__((deprecated)); +#endif + +#endif /* FFI_CLOSURES */ + +#if FFI_GO_CLOSURES + +typedef struct { + void *tramp; + ffi_cif *cif; + void (*fun)(ffi_cif*,void*,void**,void*); +} ffi_go_closure; + +FFI_API ffi_status ffi_prep_go_closure (ffi_go_closure*, ffi_cif *, + void (*fun)(ffi_cif*,void*,void**,void*)); + +FFI_API void ffi_call_go (ffi_cif *cif, void (*fn)(void), void *rvalue, + void **avalue, void *closure); + +#endif /* FFI_GO_CLOSURES */ + +/* ---- Public interface definition -------------------------------------- */ + +FFI_API +ffi_status ffi_prep_cif(ffi_cif *cif, + ffi_abi abi, + unsigned int nargs, + ffi_type *rtype, + ffi_type **atypes); + +FFI_API +ffi_status ffi_prep_cif_var(ffi_cif *cif, + ffi_abi abi, + unsigned int nfixedargs, + unsigned int ntotalargs, + ffi_type *rtype, + ffi_type **atypes); + +FFI_API +void ffi_call(ffi_cif *cif, + void (*fn)(void), + void *rvalue, + void **avalue); + +FFI_API +ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type *struct_type, + size_t *offsets); + +/* Useful for eliminating compiler warnings. */ +#define FFI_FN(f) ((void (*)(void))f) + +/* ---- Definitions shared with assembly code ---------------------------- */ + +#endif + +/* If these change, update src/mips/ffitarget.h. */ +#define FFI_TYPE_VOID 0 +#define FFI_TYPE_INT 1 +#define FFI_TYPE_FLOAT 2 +#define FFI_TYPE_DOUBLE 3 +#if 1 +#define FFI_TYPE_LONGDOUBLE 4 +#else +#define FFI_TYPE_LONGDOUBLE FFI_TYPE_DOUBLE +#endif +#define FFI_TYPE_UINT8 5 +#define FFI_TYPE_SINT8 6 +#define FFI_TYPE_UINT16 7 +#define FFI_TYPE_SINT16 8 +#define FFI_TYPE_UINT32 9 +#define FFI_TYPE_SINT32 10 +#define FFI_TYPE_UINT64 11 +#define FFI_TYPE_SINT64 12 +#define FFI_TYPE_STRUCT 13 +#define FFI_TYPE_POINTER 14 +#define FFI_TYPE_COMPLEX 15 + +/* This should always refer to the last type code (for sanity checks). */ +#define FFI_TYPE_LAST FFI_TYPE_COMPLEX + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffitarget.h b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffitarget.h new file mode 100644 index 0000000000..ecb6d2deae --- /dev/null +++ b/contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include/ffitarget.h @@ -0,0 +1,92 @@ +/* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +#ifndef LIBFFI_TARGET_H +#define LIBFFI_TARGET_H + +#ifndef LIBFFI_H +#error "Please do not include ffitarget.h directly into your source. Use ffi.h instead." +#endif + +#ifndef LIBFFI_ASM +#ifdef __ILP32__ +#define FFI_SIZEOF_ARG 8 +#define FFI_SIZEOF_JAVA_RAW 4 +typedef unsigned long long ffi_arg; +typedef signed long long ffi_sarg; +#elif defined(_M_ARM64) +#define FFI_SIZEOF_ARG 8 +typedef unsigned long long ffi_arg; +typedef signed long long ffi_sarg; +#else +typedef unsigned long ffi_arg; +typedef signed long ffi_sarg; +#endif + +typedef enum ffi_abi + { + FFI_FIRST_ABI = 0, + FFI_SYSV, + FFI_LAST_ABI, + FFI_DEFAULT_ABI = FFI_SYSV + } ffi_abi; +#endif + +/* ---- Definitions for closures ----------------------------------------- */ + +#define FFI_CLOSURES 1 +#define FFI_NATIVE_RAW_API 0 + +#if defined (FFI_EXEC_TRAMPOLINE_TABLE) && FFI_EXEC_TRAMPOLINE_TABLE + +#ifdef __MACH__ +#define FFI_TRAMPOLINE_SIZE 16 +#define FFI_TRAMPOLINE_CLOSURE_OFFSET 16 +#else +#error "No trampoline table implementation" +#endif + +#else +#define FFI_TRAMPOLINE_SIZE 24 +#define FFI_TRAMPOLINE_CLOSURE_OFFSET FFI_TRAMPOLINE_SIZE +#endif + +#ifdef _M_ARM64 +#define FFI_EXTRA_CIF_FIELDS unsigned is_variadic +#endif + +/* ---- Internal ---- */ + +#if defined (__APPLE__) +#define FFI_TARGET_SPECIFIC_VARIADIC +#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_nfixedargs +#elif !defined(_M_ARM64) +/* iOS and Windows reserve x18 for the system. Disable Go closures until + a new static chain is chosen. */ +#define FFI_GO_CLOSURES 1 +#endif + +#ifndef _M_ARM64 +/* No complex type on Windows */ +#define FFI_TARGET_HAS_COMPLEX_TYPE +#endif + +#endif diff --git a/contrib/restricted/libffi/src/aarch64/ffi.c b/contrib/restricted/libffi/src/aarch64/ffi.c new file mode 100644 index 0000000000..1ebf43c192 --- /dev/null +++ b/contrib/restricted/libffi/src/aarch64/ffi.c @@ -0,0 +1,1009 @@ +/* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +#if defined(__aarch64__) || defined(__arm64__)|| defined (_M_ARM64) +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> +#include <fficonfig.h> +#include <ffi.h> +#include <ffi_common.h> +#include "internal.h" +#ifdef _M_ARM64 +#include <windows.h> /* FlushInstructionCache */ +#endif + +/* Force FFI_TYPE_LONGDOUBLE to be different than FFI_TYPE_DOUBLE; + all further uses in this file will refer to the 128-bit type. */ +#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE +# if FFI_TYPE_LONGDOUBLE != 4 +# error FFI_TYPE_LONGDOUBLE out of date +# endif +#else +# undef FFI_TYPE_LONGDOUBLE +# define FFI_TYPE_LONGDOUBLE 4 +#endif + +union _d +{ + UINT64 d; + UINT32 s[2]; +}; + +struct _v +{ + union _d d[2] __attribute__((aligned(16))); +}; + +struct call_context +{ + struct _v v[N_V_ARG_REG]; + UINT64 x[N_X_ARG_REG]; +}; + +#if FFI_EXEC_TRAMPOLINE_TABLE + +#ifdef __MACH__ +#include <mach/vm_param.h> +#endif + +#else + +#if defined (__clang__) && defined (__APPLE__) +extern void sys_icache_invalidate (void *start, size_t len); +#endif + +static inline void +ffi_clear_cache (void *start, void *end) +{ +#if defined (__clang__) && defined (__APPLE__) + sys_icache_invalidate (start, (char *)end - (char *)start); +#elif defined (__GNUC__) + __builtin___clear_cache (start, end); +#elif defined (_M_ARM64) + FlushInstructionCache(GetCurrentProcess(), start, (char*)end - (char*)start); +#else +#error "Missing builtin to flush instruction cache" +#endif +} + +#endif + +/* A subroutine of is_vfp_type. Given a structure type, return the type code + of the first non-structure element. Recurse for structure elements. + Return -1 if the structure is in fact empty, i.e. no nested elements. */ + +static int +is_hfa0 (const ffi_type *ty) +{ + ffi_type **elements = ty->elements; + int i, ret = -1; + + if (elements != NULL) + for (i = 0; elements[i]; ++i) + { + ret = elements[i]->type; + if (ret == FFI_TYPE_STRUCT || ret == FFI_TYPE_COMPLEX) + { + ret = is_hfa0 (elements[i]); + if (ret < 0) + continue; + } + break; + } + + return ret; +} + +/* A subroutine of is_vfp_type. Given a structure type, return true if all + of the non-structure elements are the same as CANDIDATE. */ + +static int +is_hfa1 (const ffi_type *ty, int candidate) +{ + ffi_type **elements = ty->elements; + int i; + + if (elements != NULL) + for (i = 0; elements[i]; ++i) + { + int t = elements[i]->type; + if (t == FFI_TYPE_STRUCT || t == FFI_TYPE_COMPLEX) + { + if (!is_hfa1 (elements[i], candidate)) + return 0; + } + else if (t != candidate) + return 0; + } + + return 1; +} + +/* Determine if TY may be allocated to the FP registers. This is both an + fp scalar type as well as an homogenous floating point aggregate (HFA). + That is, a structure consisting of 1 to 4 members of all the same type, + where that type is an fp scalar. + + Returns non-zero iff TY is an HFA. The result is the AARCH64_RET_* + constant for the type. */ + +static int +is_vfp_type (const ffi_type *ty) +{ + ffi_type **elements; + int candidate, i; + size_t size, ele_count; + + /* Quickest tests first. */ + candidate = ty->type; + switch (candidate) + { + default: + return 0; + case FFI_TYPE_FLOAT: + case FFI_TYPE_DOUBLE: + case FFI_TYPE_LONGDOUBLE: + ele_count = 1; + goto done; + case FFI_TYPE_COMPLEX: + candidate = ty->elements[0]->type; + switch (candidate) + { + case FFI_TYPE_FLOAT: + case FFI_TYPE_DOUBLE: + case FFI_TYPE_LONGDOUBLE: + ele_count = 2; + goto done; + } + return 0; + case FFI_TYPE_STRUCT: + break; + } + + /* No HFA types are smaller than 4 bytes, or larger than 64 bytes. */ + size = ty->size; + if (size < 4 || size > 64) + return 0; + + /* Find the type of the first non-structure member. */ + elements = ty->elements; + candidate = elements[0]->type; + if (candidate == FFI_TYPE_STRUCT || candidate == FFI_TYPE_COMPLEX) + { + for (i = 0; ; ++i) + { + candidate = is_hfa0 (elements[i]); + if (candidate >= 0) + break; + } + } + + /* If the first member is not a floating point type, it's not an HFA. + Also quickly re-check the size of the structure. */ + switch (candidate) + { + case FFI_TYPE_FLOAT: + ele_count = size / sizeof(float); + if (size != ele_count * sizeof(float)) + return 0; + break; + case FFI_TYPE_DOUBLE: + ele_count = size / sizeof(double); + if (size != ele_count * sizeof(double)) + return 0; + break; + case FFI_TYPE_LONGDOUBLE: + ele_count = size / sizeof(long double); + if (size != ele_count * sizeof(long double)) + return 0; + break; + default: + return 0; + } + if (ele_count > 4) + return 0; + + /* Finally, make sure that all scalar elements are the same type. */ + for (i = 0; elements[i]; ++i) + { + int t = elements[i]->type; + if (t == FFI_TYPE_STRUCT || t == FFI_TYPE_COMPLEX) + { + if (!is_hfa1 (elements[i], candidate)) + return 0; + } + else if (t != candidate) + return 0; + } + + /* All tests succeeded. Encode the result. */ + done: + return candidate * 4 + (4 - (int)ele_count); +} + +/* Representation of the procedure call argument marshalling + state. + + The terse state variable names match the names used in the AARCH64 + PCS. */ + +struct arg_state +{ + unsigned ngrn; /* Next general-purpose register number. */ + unsigned nsrn; /* Next vector register number. */ + size_t nsaa; /* Next stack offset. */ + +#if defined (__APPLE__) + unsigned allocating_variadic; +#endif +}; + +/* Initialize a procedure call argument marshalling state. */ +static void +arg_init (struct arg_state *state) +{ + state->ngrn = 0; + state->nsrn = 0; + state->nsaa = 0; +#if defined (__APPLE__) + state->allocating_variadic = 0; +#endif +} + +/* Allocate an aligned slot on the stack and return a pointer to it. */ +static void * +allocate_to_stack (struct arg_state *state, void *stack, + size_t alignment, size_t size) +{ + size_t nsaa = state->nsaa; + + /* Round up the NSAA to the larger of 8 or the natural + alignment of the argument's type. */ +#if defined (__APPLE__) + if (state->allocating_variadic && alignment < 8) + alignment = 8; +#else + if (alignment < 8) + alignment = 8; +#endif + + nsaa = FFI_ALIGN (nsaa, alignment); + state->nsaa = nsaa + size; + + return (char *)stack + nsaa; +} + +static ffi_arg +extend_integer_type (void *source, int type) +{ + switch (type) + { + case FFI_TYPE_UINT8: + return *(UINT8 *) source; + case FFI_TYPE_SINT8: + return *(SINT8 *) source; + case FFI_TYPE_UINT16: + return *(UINT16 *) source; + case FFI_TYPE_SINT16: + return *(SINT16 *) source; + case FFI_TYPE_UINT32: + return *(UINT32 *) source; + case FFI_TYPE_INT: + case FFI_TYPE_SINT32: + return *(SINT32 *) source; + case FFI_TYPE_UINT64: + case FFI_TYPE_SINT64: + return *(UINT64 *) source; + break; + case FFI_TYPE_POINTER: + return *(uintptr_t *) source; + default: + abort(); + } +} + +#if defined(_MSC_VER) +void extend_hfa_type (void *dest, void *src, int h); +#else +static void +extend_hfa_type (void *dest, void *src, int h) +{ + ssize_t f = h - AARCH64_RET_S4; + void *x0; + + asm volatile ( + "adr %0, 0f\n" +" add %0, %0, %1\n" +" br %0\n" +"0: ldp s16, s17, [%3]\n" /* S4 */ +" ldp s18, s19, [%3, #8]\n" +" b 4f\n" +" ldp s16, s17, [%3]\n" /* S3 */ +" ldr s18, [%3, #8]\n" +" b 3f\n" +" ldp s16, s17, [%3]\n" /* S2 */ +" b 2f\n" +" nop\n" +" ldr s16, [%3]\n" /* S1 */ +" b 1f\n" +" nop\n" +" ldp d16, d17, [%3]\n" /* D4 */ +" ldp d18, d19, [%3, #16]\n" +" b 4f\n" +" ldp d16, d17, [%3]\n" /* D3 */ +" ldr d18, [%3, #16]\n" +" b 3f\n" +" ldp d16, d17, [%3]\n" /* D2 */ +" b 2f\n" +" nop\n" +" ldr d16, [%3]\n" /* D1 */ +" b 1f\n" +" nop\n" +" ldp q16, q17, [%3]\n" /* Q4 */ +" ldp q18, q19, [%3, #32]\n" +" b 4f\n" +" ldp q16, q17, [%3]\n" /* Q3 */ +" ldr q18, [%3, #32]\n" +" b 3f\n" +" ldp q16, q17, [%3]\n" /* Q2 */ +" b 2f\n" +" nop\n" +" ldr q16, [%3]\n" /* Q1 */ +" b 1f\n" +"4: str q19, [%2, #48]\n" +"3: str q18, [%2, #32]\n" +"2: str q17, [%2, #16]\n" +"1: str q16, [%2]" + : "=&r"(x0) + : "r"(f * 12), "r"(dest), "r"(src) + : "memory", "v16", "v17", "v18", "v19"); +} +#endif + +#if defined(_MSC_VER) +void* compress_hfa_type (void *dest, void *src, int h); +#else +static void * +compress_hfa_type (void *dest, void *reg, int h) +{ + switch (h) + { + case AARCH64_RET_S1: + if (dest == reg) + { +#ifdef __AARCH64EB__ + dest += 12; +#endif + } + else + *(float *)dest = *(float *)reg; + break; + case AARCH64_RET_S2: + asm ("ldp q16, q17, [%1]\n\t" + "st2 { v16.s, v17.s }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17"); + break; + case AARCH64_RET_S3: + asm ("ldp q16, q17, [%1]\n\t" + "ldr q18, [%1, #32]\n\t" + "st3 { v16.s, v17.s, v18.s }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17", "v18"); + break; + case AARCH64_RET_S4: + asm ("ldp q16, q17, [%1]\n\t" + "ldp q18, q19, [%1, #32]\n\t" + "st4 { v16.s, v17.s, v18.s, v19.s }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17", "v18", "v19"); + break; + + case AARCH64_RET_D1: + if (dest == reg) + { +#ifdef __AARCH64EB__ + dest += 8; +#endif + } + else + *(double *)dest = *(double *)reg; + break; + case AARCH64_RET_D2: + asm ("ldp q16, q17, [%1]\n\t" + "st2 { v16.d, v17.d }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17"); + break; + case AARCH64_RET_D3: + asm ("ldp q16, q17, [%1]\n\t" + "ldr q18, [%1, #32]\n\t" + "st3 { v16.d, v17.d, v18.d }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17", "v18"); + break; + case AARCH64_RET_D4: + asm ("ldp q16, q17, [%1]\n\t" + "ldp q18, q19, [%1, #32]\n\t" + "st4 { v16.d, v17.d, v18.d, v19.d }[0], [%0]" + : : "r"(dest), "r"(reg) : "memory", "v16", "v17", "v18", "v19"); + break; + + default: + if (dest != reg) + return memcpy (dest, reg, 16 * (4 - (h & 3))); + break; + } + return dest; +} +#endif + +/* Either allocate an appropriate register for the argument type, or if + none are available, allocate a stack slot and return a pointer + to the allocated space. */ + +static void * +allocate_int_to_reg_or_stack (struct call_context *context, + struct arg_state *state, + void *stack, size_t size) +{ + if (state->ngrn < N_X_ARG_REG) + return &context->x[state->ngrn++]; + + state->ngrn = N_X_ARG_REG; + return allocate_to_stack (state, stack, size, size); +} + +ffi_status FFI_HIDDEN +ffi_prep_cif_machdep (ffi_cif *cif) +{ + ffi_type *rtype = cif->rtype; + size_t bytes = cif->bytes; + int flags, i, n; + + switch (rtype->type) + { + case FFI_TYPE_VOID: + flags = AARCH64_RET_VOID; + break; + case FFI_TYPE_UINT8: + flags = AARCH64_RET_UINT8; + break; + case FFI_TYPE_UINT16: + flags = AARCH64_RET_UINT16; + break; + case FFI_TYPE_UINT32: + flags = AARCH64_RET_UINT32; + break; + case FFI_TYPE_SINT8: + flags = AARCH64_RET_SINT8; + break; + case FFI_TYPE_SINT16: + flags = AARCH64_RET_SINT16; + break; + case FFI_TYPE_INT: + case FFI_TYPE_SINT32: + flags = AARCH64_RET_SINT32; + break; + case FFI_TYPE_SINT64: + case FFI_TYPE_UINT64: + flags = AARCH64_RET_INT64; + break; + case FFI_TYPE_POINTER: + flags = (sizeof(void *) == 4 ? AARCH64_RET_UINT32 : AARCH64_RET_INT64); + break; + + case FFI_TYPE_FLOAT: + case FFI_TYPE_DOUBLE: + case FFI_TYPE_LONGDOUBLE: + case FFI_TYPE_STRUCT: + case FFI_TYPE_COMPLEX: + flags = is_vfp_type (rtype); + if (flags == 0) + { + size_t s = rtype->size; + if (s > 16) + { + flags = AARCH64_RET_VOID | AARCH64_RET_IN_MEM; + bytes += 8; + } + else if (s == 16) + flags = AARCH64_RET_INT128; + else if (s == 8) + flags = AARCH64_RET_INT64; + else + flags = AARCH64_RET_INT128 | AARCH64_RET_NEED_COPY; + } + break; + + default: + abort(); + } + + for (i = 0, n = cif->nargs; i < n; i++) + if (is_vfp_type (cif->arg_types[i])) + { + flags |= AARCH64_FLAG_ARG_V; + break; + } + + /* Round the stack up to a multiple of the stack alignment requirement. */ + cif->bytes = (unsigned) FFI_ALIGN(bytes, 16); + cif->flags = flags; +#if defined (__APPLE__) + cif->aarch64_nfixedargs = 0; +#endif + + return FFI_OK; +} + +#if defined (__APPLE__) +/* Perform Apple-specific cif processing for variadic calls */ +ffi_status FFI_HIDDEN +ffi_prep_cif_machdep_var(ffi_cif *cif, unsigned int nfixedargs, + unsigned int ntotalargs) +{ + ffi_status status = ffi_prep_cif_machdep (cif); + cif->aarch64_nfixedargs = nfixedargs; + return status; +} +#endif /* __APPLE__ */ + +extern void ffi_call_SYSV (struct call_context *context, void *frame, + void (*fn)(void), void *rvalue, int flags, + void *closure) FFI_HIDDEN; + +/* Call a function with the provided arguments and capture the return + value. */ +static void +ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue, + void **avalue, void *closure) +{ + struct call_context *context; + void *stack, *frame, *rvalue; + struct arg_state state; + size_t stack_bytes, rtype_size, rsize; + int i, nargs, flags; + ffi_type *rtype; + + flags = cif->flags; + rtype = cif->rtype; + rtype_size = rtype->size; + stack_bytes = cif->bytes; + + /* If the target function returns a structure via hidden pointer, + then we cannot allow a null rvalue. Otherwise, mash a null + rvalue to void return type. */ + rsize = 0; + if (flags & AARCH64_RET_IN_MEM) + { + if (orig_rvalue == NULL) + rsize = rtype_size; + } + else if (orig_rvalue == NULL) + flags &= AARCH64_FLAG_ARG_V; + else if (flags & AARCH64_RET_NEED_COPY) + rsize = 16; + + /* Allocate consectutive stack for everything we'll need. */ + context = alloca (sizeof(struct call_context) + stack_bytes + 32 + rsize); + stack = context + 1; + frame = (void*)((uintptr_t)stack + (uintptr_t)stack_bytes); + rvalue = (rsize ? (void*)((uintptr_t)frame + 32) : orig_rvalue); + + arg_init (&state); + for (i = 0, nargs = cif->nargs; i < nargs; i++) + { + ffi_type *ty = cif->arg_types[i]; + size_t s = ty->size; + void *a = avalue[i]; + int h, t; + + t = ty->type; + switch (t) + { + case FFI_TYPE_VOID: + FFI_ASSERT (0); + break; + + /* If the argument is a basic type the argument is allocated to an + appropriate register, or if none are available, to the stack. */ + case FFI_TYPE_INT: + case FFI_TYPE_UINT8: + case FFI_TYPE_SINT8: + case FFI_TYPE_UINT16: + case FFI_TYPE_SINT16: + case FFI_TYPE_UINT32: + case FFI_TYPE_SINT32: + case FFI_TYPE_UINT64: + case FFI_TYPE_SINT64: + case FFI_TYPE_POINTER: + do_pointer: + { + ffi_arg ext = extend_integer_type (a, t); + if (state.ngrn < N_X_ARG_REG) + context->x[state.ngrn++] = ext; + else + { + void *d = allocate_to_stack (&state, stack, ty->alignment, s); + state.ngrn = N_X_ARG_REG; + /* Note that the default abi extends each argument + to a full 64-bit slot, while the iOS abi allocates + only enough space. */ +#ifdef __APPLE__ + memcpy(d, a, s); +#else + *(ffi_arg *)d = ext; +#endif + } + } + break; + + case FFI_TYPE_FLOAT: + case FFI_TYPE_DOUBLE: + case FFI_TYPE_LONGDOUBLE: + case FFI_TYPE_STRUCT: + case FFI_TYPE_COMPLEX: + { + void *dest; + + h = is_vfp_type (ty); + if (h) + { + int elems = 4 - (h & 3); +#ifdef _M_ARM64 /* for handling armasm calling convention */ + if (cif->is_variadic) + { + if (state.ngrn + elems <= N_X_ARG_REG) + { + dest = &context->x[state.ngrn]; + state.ngrn += elems; + extend_hfa_type(dest, a, h); + break; + } + state.nsrn = N_X_ARG_REG; + dest = allocate_to_stack(&state, stack, ty->alignment, s); + } + else + { +#endif /* for handling armasm calling convention */ + if (state.nsrn + elems <= N_V_ARG_REG) + { + dest = &context->v[state.nsrn]; + state.nsrn += elems; + extend_hfa_type (dest, a, h); + break; + } + state.nsrn = N_V_ARG_REG; + dest = allocate_to_stack (&state, stack, ty->alignment, s); +#ifdef _M_ARM64 /* for handling armasm calling convention */ + } +#endif /* for handling armasm calling convention */ + } + else if (s > 16) + { + /* If the argument is a composite type that is larger than 16 + bytes, then the argument has been copied to memory, and + the argument is replaced by a pointer to the copy. */ + a = &avalue[i]; + t = FFI_TYPE_POINTER; + s = sizeof (void *); + goto do_pointer; + } + else + { + size_t n = (s + 7) / 8; + if (state.ngrn + n <= N_X_ARG_REG) + { + /* If the argument is a composite type and the size in + double-words is not more than the number of available + X registers, then the argument is copied into + consecutive X registers. */ + dest = &context->x[state.ngrn]; + state.ngrn += (unsigned int)n; + } + else + { + /* Otherwise, there are insufficient X registers. Further + X register allocations are prevented, the NSAA is + adjusted and the argument is copied to memory at the + adjusted NSAA. */ + state.ngrn = N_X_ARG_REG; + dest = allocate_to_stack (&state, stack, ty->alignment, s); + } + } + memcpy (dest, a, s); + } + break; + + default: + abort(); + } + +#if defined (__APPLE__) + if (i + 1 == cif->aarch64_nfixedargs) + { + state.ngrn = N_X_ARG_REG; + state.nsrn = N_V_ARG_REG; + state.allocating_variadic = 1; + } +#endif + } + + ffi_call_SYSV (context, frame, fn, rvalue, flags, closure); + + if (flags & AARCH64_RET_NEED_COPY) + memcpy (orig_rvalue, rvalue, rtype_size); +} + +void +ffi_call (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue) +{ + ffi_call_int (cif, fn, rvalue, avalue, NULL); +} + +#ifdef FFI_GO_CLOSURES +void +ffi_call_go (ffi_cif *cif, void (*fn) (void), void *rvalue, + void **avalue, void *closure) +{ + ffi_call_int (cif, fn, rvalue, avalue, closure); +} +#endif /* FFI_GO_CLOSURES */ + +/* Build a trampoline. */ + +extern void ffi_closure_SYSV (void) FFI_HIDDEN; +extern void ffi_closure_SYSV_V (void) FFI_HIDDEN; + +ffi_status +ffi_prep_closure_loc (ffi_closure *closure, + ffi_cif* cif, + void (*fun)(ffi_cif*,void*,void**,void*), + void *user_data, + void *codeloc) +{ + if (cif->abi != FFI_SYSV) + return FFI_BAD_ABI; + + void (*start)(void); + + if (cif->flags & AARCH64_FLAG_ARG_V) + start = ffi_closure_SYSV_V; + else + start = ffi_closure_SYSV; + +#if FFI_EXEC_TRAMPOLINE_TABLE +#ifdef __MACH__ + void **config = (void **)((uint8_t *)codeloc - PAGE_MAX_SIZE); + config[0] = closure; + config[1] = start; +#endif +#else + static const unsigned char trampoline[16] = { + 0x90, 0x00, 0x00, 0x58, /* ldr x16, tramp+16 */ + 0xf1, 0xff, 0xff, 0x10, /* adr x17, tramp+0 */ + 0x00, 0x02, 0x1f, 0xd6 /* br x16 */ + }; + char *tramp = closure->tramp; + + memcpy (tramp, trampoline, sizeof(trampoline)); + + *(UINT64 *)(tramp + 16) = (uintptr_t)start; + + ffi_clear_cache(tramp, tramp + FFI_TRAMPOLINE_SIZE); + + /* Also flush the cache for code mapping. */ +#ifdef _M_ARM64 + // Not using dlmalloc.c for Windows ARM64 builds + // so calling ffi_data_to_code_pointer() isn't necessary + unsigned char *tramp_code = tramp; + #else + unsigned char *tramp_code = ffi_data_to_code_pointer (tramp); + #endif + ffi_clear_cache (tramp_code, tramp_code + FFI_TRAMPOLINE_SIZE); +#endif + + closure->cif = cif; + closure->fun = fun; + closure->user_data = user_data; + + return FFI_OK; +} + +#ifdef FFI_GO_CLOSURES +extern void ffi_go_closure_SYSV (void) FFI_HIDDEN; +extern void ffi_go_closure_SYSV_V (void) FFI_HIDDEN; + +ffi_status +ffi_prep_go_closure (ffi_go_closure *closure, ffi_cif* cif, + void (*fun)(ffi_cif*,void*,void**,void*)) +{ + void (*start)(void); + + if (cif->abi != FFI_SYSV) + return FFI_BAD_ABI; + + if (cif->flags & AARCH64_FLAG_ARG_V) + start = ffi_go_closure_SYSV_V; + else + start = ffi_go_closure_SYSV; + + closure->tramp = start; + closure->cif = cif; + closure->fun = fun; + + return FFI_OK; +} +#endif /* FFI_GO_CLOSURES */ + +/* Primary handler to setup and invoke a function within a closure. + + A closure when invoked enters via the assembler wrapper + ffi_closure_SYSV(). The wrapper allocates a call context on the + stack, saves the interesting registers (from the perspective of + the calling convention) into the context then passes control to + ffi_closure_SYSV_inner() passing the saved context and a pointer to + the stack at the point ffi_closure_SYSV() was invoked. + + On the return path the assembler wrapper will reload call context + registers. + + ffi_closure_SYSV_inner() marshalls the call context into ffi value + descriptors, invokes the wrapped function, then marshalls the return + value back into the call context. */ + +int FFI_HIDDEN +ffi_closure_SYSV_inner (ffi_cif *cif, + void (*fun)(ffi_cif*,void*,void**,void*), + void *user_data, + struct call_context *context, + void *stack, void *rvalue, void *struct_rvalue) +{ + void **avalue = (void**) alloca (cif->nargs * sizeof (void*)); + int i, h, nargs, flags; + struct arg_state state; + + arg_init (&state); + + for (i = 0, nargs = cif->nargs; i < nargs; i++) + { + ffi_type *ty = cif->arg_types[i]; + int t = ty->type; + size_t n, s = ty->size; + + switch (t) + { + case FFI_TYPE_VOID: + FFI_ASSERT (0); + break; + + case FFI_TYPE_INT: + case FFI_TYPE_UINT8: + case FFI_TYPE_SINT8: + case FFI_TYPE_UINT16: + case FFI_TYPE_SINT16: + case FFI_TYPE_UINT32: + case FFI_TYPE_SINT32: + case FFI_TYPE_UINT64: + case FFI_TYPE_SINT64: + case FFI_TYPE_POINTER: + avalue[i] = allocate_int_to_reg_or_stack (context, &state, stack, s); + break; + + case FFI_TYPE_FLOAT: + case FFI_TYPE_DOUBLE: + case FFI_TYPE_LONGDOUBLE: + case FFI_TYPE_STRUCT: + case FFI_TYPE_COMPLEX: + h = is_vfp_type (ty); + if (h) + { + n = 4 - (h & 3); +#ifdef _M_ARM64 /* for handling armasm calling convention */ + if (cif->is_variadic) + { + if (state.ngrn + n <= N_X_ARG_REG) + { + void *reg = &context->x[state.ngrn]; + state.ngrn += (unsigned int)n; + + /* Eeek! We need a pointer to the structure, however the + homogeneous float elements are being passed in individual + registers, therefore for float and double the structure + is not represented as a contiguous sequence of bytes in + our saved register context. We don't need the original + contents of the register storage, so we reformat the + structure into the same memory. */ + avalue[i] = compress_hfa_type(reg, reg, h); + } + else + { + state.ngrn = N_X_ARG_REG; + state.nsrn = N_V_ARG_REG; + avalue[i] = allocate_to_stack(&state, stack, + ty->alignment, s); + } + } + else + { +#endif /* for handling armasm calling convention */ + if (state.nsrn + n <= N_V_ARG_REG) + { + void *reg = &context->v[state.nsrn]; + state.nsrn += (unsigned int)n; + avalue[i] = compress_hfa_type(reg, reg, h); + } + else + { + state.nsrn = N_V_ARG_REG; + avalue[i] = allocate_to_stack(&state, stack, + ty->alignment, s); + } +#ifdef _M_ARM64 /* for handling armasm calling convention */ + } +#endif /* for handling armasm calling convention */ + } + else if (s > 16) + { + /* Replace Composite type of size greater than 16 with a + pointer. */ + avalue[i] = *(void **) + allocate_int_to_reg_or_stack (context, &state, stack, + sizeof (void *)); + } + else + { + n = (s + 7) / 8; + if (state.ngrn + n <= N_X_ARG_REG) + { + avalue[i] = &context->x[state.ngrn]; + state.ngrn += (unsigned int)n; + } + else + { + state.ngrn = N_X_ARG_REG; + avalue[i] = allocate_to_stack(&state, stack, + ty->alignment, s); + } + } + break; + + default: + abort(); + } + +#if defined (__APPLE__) + if (i + 1 == cif->aarch64_nfixedargs) + { + state.ngrn = N_X_ARG_REG; + state.nsrn = N_V_ARG_REG; + state.allocating_variadic = 1; + } +#endif + } + + flags = cif->flags; + if (flags & AARCH64_RET_IN_MEM) + rvalue = struct_rvalue; + + fun (cif, rvalue, avalue, user_data); + + return flags; +} + +#endif /* (__aarch64__) || defined(__arm64__)|| defined (_M_ARM64)*/ diff --git a/contrib/restricted/libffi/src/aarch64/internal.h b/contrib/restricted/libffi/src/aarch64/internal.h new file mode 100644 index 0000000000..9c3e07725a --- /dev/null +++ b/contrib/restricted/libffi/src/aarch64/internal.h @@ -0,0 +1,67 @@ +/* +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +#define AARCH64_RET_VOID 0 +#define AARCH64_RET_INT64 1 +#define AARCH64_RET_INT128 2 + +#define AARCH64_RET_UNUSED3 3 +#define AARCH64_RET_UNUSED4 4 +#define AARCH64_RET_UNUSED5 5 +#define AARCH64_RET_UNUSED6 6 +#define AARCH64_RET_UNUSED7 7 + +/* Note that FFI_TYPE_FLOAT == 2, _DOUBLE == 3, _LONGDOUBLE == 4, + so _S4 through _Q1 are layed out as (TYPE * 4) + (4 - COUNT). */ +#define AARCH64_RET_S4 8 +#define AARCH64_RET_S3 9 +#define AARCH64_RET_S2 10 +#define AARCH64_RET_S1 11 + +#define AARCH64_RET_D4 12 +#define AARCH64_RET_D3 13 +#define AARCH64_RET_D2 14 +#define AARCH64_RET_D1 15 + +#define AARCH64_RET_Q4 16 +#define AARCH64_RET_Q3 17 +#define AARCH64_RET_Q2 18 +#define AARCH64_RET_Q1 19 + +/* Note that each of the sub-64-bit integers gets two entries. */ +#define AARCH64_RET_UINT8 20 +#define AARCH64_RET_UINT16 22 +#define AARCH64_RET_UINT32 24 + +#define AARCH64_RET_SINT8 26 +#define AARCH64_RET_SINT16 28 +#define AARCH64_RET_SINT32 30 + +#define AARCH64_RET_MASK 31 + +#define AARCH64_RET_IN_MEM (1 << 5) +#define AARCH64_RET_NEED_COPY (1 << 6) + +#define AARCH64_FLAG_ARG_V_BIT 7 +#define AARCH64_FLAG_ARG_V (1 << AARCH64_FLAG_ARG_V_BIT) + +#define N_X_ARG_REG 8 +#define N_V_ARG_REG 8 +#define CALL_CONTEXT_SIZE (N_V_ARG_REG * 16 + N_X_ARG_REG * 8) diff --git a/contrib/restricted/libffi/src/aarch64/sysv.S b/contrib/restricted/libffi/src/aarch64/sysv.S new file mode 100644 index 0000000000..6761ee1ea9 --- /dev/null +++ b/contrib/restricted/libffi/src/aarch64/sysv.S @@ -0,0 +1,440 @@ +/* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +#if defined(__aarch64__) || defined(__arm64__) +#define LIBFFI_ASM +#include <fficonfig.h> +#include <ffi.h> +#include <ffi_cfi.h> +#include "internal.h" + +#ifdef HAVE_MACHINE_ASM_H +#include <machine/asm.h> +#else +#ifdef __USER_LABEL_PREFIX__ +#define CONCAT1(a, b) CONCAT2(a, b) +#define CONCAT2(a, b) a ## b + +/* Use the right prefix for global labels. */ +#define CNAME(x) CONCAT1 (__USER_LABEL_PREFIX__, x) +#else +#define CNAME(x) x +#endif +#endif + +#ifdef __AARCH64EB__ +# define BE(X) X +#else +# define BE(X) 0 +#endif + +#ifdef __ILP32__ +#define PTR_REG(n) w##n +#else +#define PTR_REG(n) x##n +#endif + +#ifdef __ILP32__ +#define PTR_SIZE 4 +#else +#define PTR_SIZE 8 +#endif + + .text + .align 4 + +/* ffi_call_SYSV + extern void ffi_call_SYSV (void *stack, void *frame, + void (*fn)(void), void *rvalue, + int flags, void *closure); + + Therefore on entry we have: + + x0 stack + x1 frame + x2 fn + x3 rvalue + x4 flags + x5 closure +*/ + + cfi_startproc +CNAME(ffi_call_SYSV): + /* Use a stack frame allocated by our caller. */ + cfi_def_cfa(x1, 32); + stp x29, x30, [x1] + mov x29, x1 + mov sp, x0 + cfi_def_cfa_register(x29) + cfi_rel_offset (x29, 0) + cfi_rel_offset (x30, 8) + + mov x9, x2 /* save fn */ + mov x8, x3 /* install structure return */ +#ifdef FFI_GO_CLOSURES + mov x18, x5 /* install static chain */ +#endif + stp x3, x4, [x29, #16] /* save rvalue and flags */ + + /* Load the vector argument passing registers, if necessary. */ + tbz w4, #AARCH64_FLAG_ARG_V_BIT, 1f + ldp q0, q1, [sp, #0] + ldp q2, q3, [sp, #32] + ldp q4, q5, [sp, #64] + ldp q6, q7, [sp, #96] +1: + /* Load the core argument passing registers, including + the structure return pointer. */ + ldp x0, x1, [sp, #16*N_V_ARG_REG + 0] + ldp x2, x3, [sp, #16*N_V_ARG_REG + 16] + ldp x4, x5, [sp, #16*N_V_ARG_REG + 32] + ldp x6, x7, [sp, #16*N_V_ARG_REG + 48] + + /* Deallocate the context, leaving the stacked arguments. */ + add sp, sp, #CALL_CONTEXT_SIZE + + blr x9 /* call fn */ + + ldp x3, x4, [x29, #16] /* reload rvalue and flags */ + + /* Partially deconstruct the stack frame. */ + mov sp, x29 + cfi_def_cfa_register (sp) + ldp x29, x30, [x29] + + /* Save the return value as directed. */ + adr x5, 0f + and w4, w4, #AARCH64_RET_MASK + add x5, x5, x4, lsl #3 + br x5 + + /* Note that each table entry is 2 insns, and thus 8 bytes. + For integer data, note that we're storing into ffi_arg + and therefore we want to extend to 64 bits; these types + have two consecutive entries allocated for them. */ + .align 4 +0: ret /* VOID */ + nop +1: str x0, [x3] /* INT64 */ + ret +2: stp x0, x1, [x3] /* INT128 */ + ret +3: brk #1000 /* UNUSED */ + ret +4: brk #1000 /* UNUSED */ + ret +5: brk #1000 /* UNUSED */ + ret +6: brk #1000 /* UNUSED */ + ret +7: brk #1000 /* UNUSED */ + ret +8: st4 { v0.s, v1.s, v2.s, v3.s }[0], [x3] /* S4 */ + ret +9: st3 { v0.s, v1.s, v2.s }[0], [x3] /* S3 */ + ret +10: stp s0, s1, [x3] /* S2 */ + ret +11: str s0, [x3] /* S1 */ + ret +12: st4 { v0.d, v1.d, v2.d, v3.d }[0], [x3] /* D4 */ + ret +13: st3 { v0.d, v1.d, v2.d }[0], [x3] /* D3 */ + ret +14: stp d0, d1, [x3] /* D2 */ + ret +15: str d0, [x3] /* D1 */ + ret +16: str q3, [x3, #48] /* Q4 */ + nop +17: str q2, [x3, #32] /* Q3 */ + nop +18: stp q0, q1, [x3] /* Q2 */ + ret +19: str q0, [x3] /* Q1 */ + ret +20: uxtb w0, w0 /* UINT8 */ + str x0, [x3] +21: ret /* reserved */ + nop +22: uxth w0, w0 /* UINT16 */ + str x0, [x3] +23: ret /* reserved */ + nop +24: mov w0, w0 /* UINT32 */ + str x0, [x3] +25: ret /* reserved */ + nop +26: sxtb x0, w0 /* SINT8 */ + str x0, [x3] +27: ret /* reserved */ + nop +28: sxth x0, w0 /* SINT16 */ + str x0, [x3] +29: ret /* reserved */ + nop +30: sxtw x0, w0 /* SINT32 */ + str x0, [x3] +31: ret /* reserved */ + nop + + cfi_endproc + + .globl CNAME(ffi_call_SYSV) + FFI_HIDDEN(CNAME(ffi_call_SYSV)) +#ifdef __ELF__ + .type CNAME(ffi_call_SYSV), #function + .size CNAME(ffi_call_SYSV), .-CNAME(ffi_call_SYSV) +#endif + +/* ffi_closure_SYSV + + Closure invocation glue. This is the low level code invoked directly by + the closure trampoline to setup and call a closure. + + On entry x17 points to a struct ffi_closure, x16 has been clobbered + all other registers are preserved. + + We allocate a call context and save the argument passing registers, + then invoked the generic C ffi_closure_SYSV_inner() function to do all + the real work, on return we load the result passing registers back from + the call context. +*/ + +#define ffi_closure_SYSV_FS (8*2 + CALL_CONTEXT_SIZE + 64) + + .align 4 +CNAME(ffi_closure_SYSV_V): + cfi_startproc + stp x29, x30, [sp, #-ffi_closure_SYSV_FS]! + cfi_adjust_cfa_offset (ffi_closure_SYSV_FS) + cfi_rel_offset (x29, 0) + cfi_rel_offset (x30, 8) + + /* Save the argument passing vector registers. */ + stp q0, q1, [sp, #16 + 0] + stp q2, q3, [sp, #16 + 32] + stp q4, q5, [sp, #16 + 64] + stp q6, q7, [sp, #16 + 96] + b 0f + cfi_endproc + + .globl CNAME(ffi_closure_SYSV_V) + FFI_HIDDEN(CNAME(ffi_closure_SYSV_V)) +#ifdef __ELF__ + .type CNAME(ffi_closure_SYSV_V), #function + .size CNAME(ffi_closure_SYSV_V), . - CNAME(ffi_closure_SYSV_V) +#endif + + .align 4 + cfi_startproc +CNAME(ffi_closure_SYSV): + stp x29, x30, [sp, #-ffi_closure_SYSV_FS]! + cfi_adjust_cfa_offset (ffi_closure_SYSV_FS) + cfi_rel_offset (x29, 0) + cfi_rel_offset (x30, 8) +0: + mov x29, sp + + /* Save the argument passing core registers. */ + stp x0, x1, [sp, #16 + 16*N_V_ARG_REG + 0] + stp x2, x3, [sp, #16 + 16*N_V_ARG_REG + 16] + stp x4, x5, [sp, #16 + 16*N_V_ARG_REG + 32] + stp x6, x7, [sp, #16 + 16*N_V_ARG_REG + 48] + + /* Load ffi_closure_inner arguments. */ + ldp PTR_REG(0), PTR_REG(1), [x17, #FFI_TRAMPOLINE_CLOSURE_OFFSET] /* load cif, fn */ + ldr PTR_REG(2), [x17, #FFI_TRAMPOLINE_CLOSURE_OFFSET+PTR_SIZE*2] /* load user_data */ +.Ldo_closure: + add x3, sp, #16 /* load context */ + add x4, sp, #ffi_closure_SYSV_FS /* load stack */ + add x5, sp, #16+CALL_CONTEXT_SIZE /* load rvalue */ + mov x6, x8 /* load struct_rval */ + bl CNAME(ffi_closure_SYSV_inner) + + /* Load the return value as directed. */ + adr x1, 0f + and w0, w0, #AARCH64_RET_MASK + add x1, x1, x0, lsl #3 + add x3, sp, #16+CALL_CONTEXT_SIZE + br x1 + + /* Note that each table entry is 2 insns, and thus 8 bytes. */ + .align 4 +0: b 99f /* VOID */ + nop +1: ldr x0, [x3] /* INT64 */ + b 99f +2: ldp x0, x1, [x3] /* INT128 */ + b 99f +3: brk #1000 /* UNUSED */ + nop +4: brk #1000 /* UNUSED */ + nop +5: brk #1000 /* UNUSED */ + nop +6: brk #1000 /* UNUSED */ + nop +7: brk #1000 /* UNUSED */ + nop +8: ldr s3, [x3, #12] /* S4 */ + nop +9: ldr s2, [x3, #8] /* S3 */ + nop +10: ldp s0, s1, [x3] /* S2 */ + b 99f +11: ldr s0, [x3] /* S1 */ + b 99f +12: ldr d3, [x3, #24] /* D4 */ + nop +13: ldr d2, [x3, #16] /* D3 */ + nop +14: ldp d0, d1, [x3] /* D2 */ + b 99f +15: ldr d0, [x3] /* D1 */ + b 99f +16: ldr q3, [x3, #48] /* Q4 */ + nop +17: ldr q2, [x3, #32] /* Q3 */ + nop +18: ldp q0, q1, [x3] /* Q2 */ + b 99f +19: ldr q0, [x3] /* Q1 */ + b 99f +20: ldrb w0, [x3, #BE(7)] /* UINT8 */ + b 99f +21: brk #1000 /* reserved */ + nop +22: ldrh w0, [x3, #BE(6)] /* UINT16 */ + b 99f +23: brk #1000 /* reserved */ + nop +24: ldr w0, [x3, #BE(4)] /* UINT32 */ + b 99f +25: brk #1000 /* reserved */ + nop +26: ldrsb x0, [x3, #BE(7)] /* SINT8 */ + b 99f +27: brk #1000 /* reserved */ + nop +28: ldrsh x0, [x3, #BE(6)] /* SINT16 */ + b 99f +29: brk #1000 /* reserved */ + nop +30: ldrsw x0, [x3, #BE(4)] /* SINT32 */ + nop +31: /* reserved */ +99: ldp x29, x30, [sp], #ffi_closure_SYSV_FS + cfi_adjust_cfa_offset (-ffi_closure_SYSV_FS) + cfi_restore (x29) + cfi_restore (x30) + ret + cfi_endproc + + .globl CNAME(ffi_closure_SYSV) + FFI_HIDDEN(CNAME(ffi_closure_SYSV)) +#ifdef __ELF__ + .type CNAME(ffi_closure_SYSV), #function + .size CNAME(ffi_closure_SYSV), . - CNAME(ffi_closure_SYSV) +#endif + +#if FFI_EXEC_TRAMPOLINE_TABLE + +#ifdef __MACH__ +#include <mach/machine/vm_param.h> + .align PAGE_MAX_SHIFT +CNAME(ffi_closure_trampoline_table_page): + .rept PAGE_MAX_SIZE / FFI_TRAMPOLINE_SIZE + adr x16, -PAGE_MAX_SIZE + ldp x17, x16, [x16] + br x16 + nop /* each entry in the trampoline config page is 2*sizeof(void*) so the trampoline itself cannot be smaller that 16 bytes */ + .endr + + .globl CNAME(ffi_closure_trampoline_table_page) + FFI_HIDDEN(CNAME(ffi_closure_trampoline_table_page)) + #ifdef __ELF__ + .type CNAME(ffi_closure_trampoline_table_page), #function + .size CNAME(ffi_closure_trampoline_table_page), . - CNAME(ffi_closure_trampoline_table_page) + #endif +#endif + +#endif /* FFI_EXEC_TRAMPOLINE_TABLE */ + +#ifdef FFI_GO_CLOSURES + .align 4 +CNAME(ffi_go_closure_SYSV_V): + cfi_startproc + stp x29, x30, [sp, #-ffi_closure_SYSV_FS]! + cfi_adjust_cfa_offset (ffi_closure_SYSV_FS) + cfi_rel_offset (x29, 0) + cfi_rel_offset (x30, 8) + + /* Save the argument passing vector registers. */ + stp q0, q1, [sp, #16 + 0] + stp q2, q3, [sp, #16 + 32] + stp q4, q5, [sp, #16 + 64] + stp q6, q7, [sp, #16 + 96] + b 0f + cfi_endproc + + .globl CNAME(ffi_go_closure_SYSV_V) + FFI_HIDDEN(CNAME(ffi_go_closure_SYSV_V)) +#ifdef __ELF__ + .type CNAME(ffi_go_closure_SYSV_V), #function + .size CNAME(ffi_go_closure_SYSV_V), . - CNAME(ffi_go_closure_SYSV_V) +#endif + + .align 4 + cfi_startproc +CNAME(ffi_go_closure_SYSV): + stp x29, x30, [sp, #-ffi_closure_SYSV_FS]! + cfi_adjust_cfa_offset (ffi_closure_SYSV_FS) + cfi_rel_offset (x29, 0) + cfi_rel_offset (x30, 8) +0: + mov x29, sp + + /* Save the argument passing core registers. */ + stp x0, x1, [sp, #16 + 16*N_V_ARG_REG + 0] + stp x2, x3, [sp, #16 + 16*N_V_ARG_REG + 16] + stp x4, x5, [sp, #16 + 16*N_V_ARG_REG + 32] + stp x6, x7, [sp, #16 + 16*N_V_ARG_REG + 48] + + /* Load ffi_closure_inner arguments. */ + ldp PTR_REG(0), PTR_REG(1), [x18, #PTR_SIZE]/* load cif, fn */ + mov x2, x18 /* load user_data */ + b .Ldo_closure + cfi_endproc + + .globl CNAME(ffi_go_closure_SYSV) + FFI_HIDDEN(CNAME(ffi_go_closure_SYSV)) +#ifdef __ELF__ + .type CNAME(ffi_go_closure_SYSV), #function + .size CNAME(ffi_go_closure_SYSV), . - CNAME(ffi_go_closure_SYSV) +#endif +#endif /* FFI_GO_CLOSURES */ +#endif /* __arm64__ */ + +#if defined __ELF__ && defined __linux__ + .section .note.GNU-stack,"",%progbits +#endif + diff --git a/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..5bb72ed477 --- /dev/null +++ b/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt @@ -0,0 +1,33 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(protoc) +target_compile_options(protoc PRIVATE + -Wno-everything +) +target_link_libraries(protoc PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + contrib-libs-protoc +) +target_link_options(protoc PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(protoc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/protoc/src/google/protobuf/compiler/main.cc +) +vcs_info(protoc) diff --git a/contrib/tools/protoc/bin/CMakeLists.txt b/contrib/tools/protoc/bin/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/bin/CMakeLists.txt +++ b/contrib/tools/protoc/bin/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..bdbe8b7934 --- /dev/null +++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt @@ -0,0 +1,33 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(cpp_styleguide) +target_compile_options(cpp_styleguide PRIVATE + -Wno-everything +) +target_link_libraries(cpp_styleguide PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + contrib-libs-protoc +) +target_link_options(cpp_styleguide PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(cpp_styleguide PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp +) +vcs_info(cpp_styleguide) diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..92bbb54766 --- /dev/null +++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt @@ -0,0 +1,38 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(grpc_cpp) +target_compile_options(grpc_cpp PRIVATE + -DGRPC_USE_ABSL=0 + -Wno-everything +) +target_include_directories(grpc_cpp PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/include +) +target_link_libraries(grpc_cpp PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + src-compiler-grpc_plugin_support +) +target_link_options(grpc_cpp PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(grpc_cpp PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/src/compiler/cpp_plugin.cc +) +vcs_info(grpc_cpp) diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) |