Implement SIMD latest opcodes and update LLVM to 13.0 (#758)
Implement the latest SIMD opcodes and update LLVM 13.0, update the llvm build scripts, update the sample workloads‘ build scripts, and build customized wasi-sdk to build some workloads. Also refine the CI rules. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -5,8 +5,10 @@ cmake_minimum_required (VERSION 2.8...3.16)
|
||||
|
||||
project(testavx)
|
||||
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/preparation.cmake)
|
||||
|
||||
# a workaround to let aom find our non-public headers
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include/libc)
|
||||
include_directories(${WASI_SDK_HOME}/share/wasi-sysroot/include/libc/musl)
|
||||
|
||||
################ AOM ################
|
||||
set(ENABLE_CCACHE ON)
|
||||
@ -58,15 +60,6 @@ target_link_libraries(${PROJECT_NAME}
|
||||
|
||||
add_dependencies(${PROJECT_NAME} aom)
|
||||
|
||||
find_program(WASM_OPT
|
||||
NAMES wasm-opt
|
||||
PATHS /opt/binaryen-version_97/bin /opt/binaryen/bin
|
||||
)
|
||||
|
||||
if (NOT WASM_OPT)
|
||||
message(WARNING "can not find wasm-opt and will not optimize any wasm module")
|
||||
endif()
|
||||
|
||||
add_custom_target(${PROJECT_NAME}_opt ALL
|
||||
COMMAND
|
||||
${WASM_OPT} -Oz --enable-simd -o ${PROJECT_NAME}.opt.wasm ${PROJECT_NAME}.wasm
|
||||
|
||||
Reference in New Issue
Block a user