Import SIMD feature and add some workload samples (#438)
This commit is contained in:
@ -27,6 +27,7 @@ add_definitions(-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
add_definitions(-DWASM_ENABLE_SHARED_MEMORY=1)
|
||||
add_definitions(-DWASM_ENABLE_THREAD_MGR=1)
|
||||
add_definitions(-DWASM_ENABLE_TAIL_CALL=1)
|
||||
add_definitions(-DWASM_ENABLE_SIMD=1)
|
||||
|
||||
# Set WAMR_BUILD_TARGET, currently values supported:
|
||||
# "X86_64", "AMD_64", "X86_32", "ARM_32", "MIPS_32", "XTENSA_32"
|
||||
|
||||
@ -43,6 +43,7 @@ print_help()
|
||||
printf(" --enable-multi-thread Enable multi-thread feature, the dependent features bulk-memory and\n");
|
||||
printf(" --enable-tail-call Enable the post-MVP tail call feature\n");
|
||||
printf(" thread-mgr will be enabled automatically\n");
|
||||
printf(" --enable-simd Enable the post-MVP 128-bit SIMD feature\n");
|
||||
printf(" -v=n Set log verbose level (0 to 5, default is 2), larger with more log\n");
|
||||
printf("Examples: wamrc -o test.aot test.wasm\n");
|
||||
printf(" wamrc --target=i386 -o test.aot test.wasm\n");
|
||||
@ -70,6 +71,7 @@ main(int argc, char *argv[])
|
||||
option.output_format = AOT_FORMAT_FILE;
|
||||
/* default value, enable or disable depends on the platform */
|
||||
option.bounds_checks = 2;
|
||||
option.enable_simd = false;
|
||||
|
||||
/* Process options. */
|
||||
for (argc--, argv++; argc > 0 && argv[0][0] == '-'; argc--, argv++) {
|
||||
@ -150,6 +152,9 @@ main(int argc, char *argv[])
|
||||
else if (!strcmp(argv[0], "--enable-tail-call")) {
|
||||
option.enable_tail_call = true;
|
||||
}
|
||||
else if (!strcmp(argv[0], "--enable-simd")) {
|
||||
option.enable_simd = true;
|
||||
}
|
||||
else
|
||||
return print_help();
|
||||
}
|
||||
@ -158,8 +163,8 @@ main(int argc, char *argv[])
|
||||
return print_help();
|
||||
|
||||
if (sgx_mode) {
|
||||
option.size_level = 1;
|
||||
option.is_sgx_platform = true;
|
||||
option.size_level = 1;
|
||||
option.is_sgx_platform = true;
|
||||
}
|
||||
|
||||
wasm_file_name = argv[0];
|
||||
|
||||
Reference in New Issue
Block a user