MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_ConfigureCompilerSetOptimizationLevel

Function WasmEdge_ConfigureCompilerSetOptimizationLevel

lib/api/wasmedge.cpp:1044–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044WASMEDGE_CAPI_EXPORT void WasmEdge_ConfigureCompilerSetOptimizationLevel(
1045 WasmEdge_ConfigureContext *Cxt,
1046 const enum WasmEdge_CompilerOptimizationLevel Level) noexcept {
1047 if (Cxt) {
1048 Cxt->Conf.getCompilerConfigure().setOptimizationLevel(
1049 static_cast<WasmEdge::CompilerConfigure::OptimizationLevel>(Level));
1050 }
1051}
1052
1053WASMEDGE_CAPI_EXPORT enum WasmEdge_CompilerOptimizationLevel
1054WasmEdge_ConfigureCompilerGetOptimizationLevel(

Callers 2

TestContextMethod · 0.85
TESTFunction · 0.85

Calls 1

setOptimizationLevelMethod · 0.80

Tested by 2

TestContextMethod · 0.68
TESTFunction · 0.68