File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -775,6 +775,11 @@ endif ()
775775if (WAMR_BUILD_LIME1 EQUAL 1)
776776 message (" Lime1 enabled" )
777777endif ()
778+ if (WAMR_BUILD_BRANCH_HINTS EQUAL 1)
779+ message (" Branch hints enabled" )
780+ add_definitions (-DWASM_ENABLE_BRANCH_HINTS=1 )
781+ endif ()
782+
778783########################################
779784# Show Phase4 Wasm proposals status.
780785########################################
@@ -787,8 +792,8 @@ message (
787792" \" Non-trapping float-to-int Conversions\"\n "
788793" \" Sign-extension Operators\"\n "
789794" \" WebAssembly C and C++ API\"\n "
790- " \" Branch Hinting\"\n "
791795" Configurable. 0 is OFF. 1 is ON:\n "
796+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
792797" \" Bulk Memory Operation\" via WAMR_BUILD_BULK_MEMORY: ${WAMR_BUILD_BULK_MEMORY} \n "
793798" \" Bulk-memory-opt\" via WAMR_BUILD_BULK_MEMORY_OPT: ${WAMR_BUILD_BULK_MEMORY_OPT} \n "
794799" \" Call-indirect-overlong\" via WAMR_BUILD_CALL_INDIRECT_OVERLONG: ${WAMR_BUILD_CALL_INDIRECT_OVERLONG} \n "
Original file line number Diff line number Diff line change @@ -616,6 +616,15 @@ SIMDE (SIMD Everywhere) implements SIMD operations in fast interpreter mode.
616616> [!WARNING]
617617> This is only supported in classic interpreter mode.
618618
619+ ## **Branch hints**
620+
621+ - **WAMR_BUILD_BRANCH_HINTS**=1/0, default to disable if not set
622+
623+ > [!NOTE]
624+ > Enabling this feature allows the runtime to utilize branch hints for better performance during aot/jit execution.
625+
626+ ## **Combination of configurations:**
627+
619628### **Invoke general FFI**
620629
621630- **WAMR_BUILD_INVOKE_NATIVE_GENERAL**=1/0, default to off.
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ This tier indicates experimental features with foundational support levels. Thes
165165| GC (Garbage Collection) | [ WAMR_BUILD_GC] ( ./build_wamr.md#garbage-collection ) | Wasm Proposal |
166166| Legacy Exception Handling | [ WAMR_BUILD_EXCE_HANDLING] ( ./build_wamr.md#exception-handling ) | Wasm Proposal |
167167| Multi-memory | [ WAMR_BUILD_MULTI_MEMORY] ( ./build_wamr.md#multi-memory ) | Wasm Proposal |
168+ | Branch Hints | [ WAMR_BUILD_BRANCH_HINTS] ( ./build_wamr.md#branch-hints-feature ) | Wasm Proposal |
168169| Fast JIT | [ WAMR_BUILD_FAST_JIT] ( ./build_wamr.md#configure-fast-jit ) | Running mode |
169170| Multi-tier JIT | [ Combination of flags] ( ./build_wamr.md#configure-multi-tier-jit ) | Running mode |
170171| AoT Validator | [ WAMR_BUILD_AOT_VALIDATOR] ( ./build_wamr.md#aot-validator ) | Runtime Extensions |
You can’t perform that action at this time.
0 commit comments