wasm-micro-runtime/product-mini/platforms
Wenyong Huang 76be848ec3
Implement the segue optimization for LLVM AOT/JIT (#2230)
Segue is an optimization technology which uses x86 segment register to store
the WebAssembly linear memory base address, so as to remove most of the cost
of SFI (Software-based Fault Isolation) base addition and free up a general
purpose register, by this way it may:
- Improve the performance of JIT/AOT
- Reduce the footprint of JIT/AOT, the JIT/AOT code generated is smaller
- Reduce the compilation time of JIT/AOT

This PR uses the x86-64 GS segment register to apply the optimization, currently
it supports linux and linux-sgx platforms on x86-64 target. By default it is disabled,
developer can use the option below to enable it for wamrc and iwasm(with LLVM
JIT enabled):
```bash
wamrc --enable-segue=[<flags>] -o output_file wasm_file
iwasm --enable-segue=[<flags>] wasm_file [args...]
```
`flags` can be:
    i32.load, i64.load, f32.load, f64.load, v128.load,
    i32.store, i64.store, f32.store, f64.store, v128.store
Use comma to separate them, e.g. `--enable-segue=i32.load,i64.store`,
and `--enable-segue` means all flags are added.

Acknowledgement:
Many thanks to Intel Labs, UC San Diego and UT Austin teams for introducing this
technology and the great support and guidance!

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
Co-authored-by: Vahldiek-oberwagner, Anjo Lucas <anjo.lucas.vahldiek-oberwagner@intel.com>
2023-05-26 10:13:33 +08:00
..
alios-things Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
android Fix several issues in CI binary releasing (#2064) 2023-03-26 12:19:45 +08:00
darwin Fix several issues in CI binary releasing (#2064) 2023-03-26 12:19:45 +08:00
esp-idf Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
freebsd Fix several issues in CI binary releasing (#2064) 2023-03-26 12:19:45 +08:00
ios Add ios support for product-mini (#1602) 2022-10-18 07:52:38 +08:00
linux Add asan and ubsan to WAMR CI (#2161) 2023-05-26 09:45:37 +08:00
linux-sgx Update cmake files and wamr-test-suites to support collect code coverage (#1992) 2023-02-28 17:38:18 +08:00
nuttx Support dump call stack on exception and dump call stack on nuttx (#2042) 2023-03-22 18:11:53 +08:00
posix Implement the segue optimization for LLVM AOT/JIT (#2230) 2023-05-26 10:13:33 +08:00
riot Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
rt-thread Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
vxworks Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
windows Fix compile warnings on windows platform (#2208) 2023-05-15 13:48:48 +08:00
zephyr/simple Fix zephyr sample build errors (#1757) 2022-11-28 11:23:51 +08:00