wasm-micro-runtime/build-scripts
Wenyong Huang 8d88471c46
Implement AOT static PGO (#2243)
LLVM PGO (Profile-Guided Optimization) allows the compiler to better optimize code
for how it actually runs. This PR implements the AOT static PGO, and is tested on
Linux x86-64 and x86-32. The basic steps are:

1. Use `wamrc --enable-llvm-pgo -o <aot_file_of_pgo> <wasm_file>`
   to generate an instrumented aot file.
2. Compile iwasm with `cmake -DWAMR_BUILD_STATIC_PGO=1` and run
      `iwasm --gen-prof-file=<raw_profile_file> <aot_file_of_pgo>`
    to generate the raw profile file.
3. Run `llvm-profdata merge -output=<profile_file> <raw_profile_file>`
    to merge the raw profile file into the profile file.
4. Run `wamrc --use-prof-file=<profile_file> -o <aot_file> <wasm_file>`
    to generate the optimized aot file.
5. Run the optimized aot_file: `iwasm <aot_file>`.

The test scripts are also added for each benchmark, run `test_pgo.sh` under
each benchmark's folder to test the AOT static pgo.
2023-06-05 09:17:39 +08:00
..
esp-idf Enable platform support for esp-idf v5.0.1 (#2050) 2023-03-23 17:29:57 +08:00
build_llvm.py Implement AOT static PGO (#2243) 2023-06-05 09:17:39 +08:00
config_common.cmake Implement AOT static PGO (#2243) 2023-06-05 09:17:39 +08:00
involve_boringssl.cmake Use boringssl instead of openssl to implement wasm cache loading (#1804) 2022-12-20 14:37:07 +08:00
lldb-wasm.patch Add CIs to release new version and publish binary files (#1648) 2022-10-28 13:55:41 +08:00
requirements.txt Bump requests from 2.28.2 to 2.31.0 in /build-scripts (#2229) 2023-05-24 08:52:45 +08:00
runtime_lib.cmake Avoid re-installing if Tensorflow is already installed for WASI-NN (#2148) 2023-04-27 08:19:18 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
SConscript_config Add control for the native stack check with hardware trap (#1682) 2022-11-07 18:26:33 +08:00