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

Function WasmEdge_ConfigureCompilerGetOptimizationLevel

lib/api/wasmedge.cpp:1053–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053WASMEDGE_CAPI_EXPORT enum WasmEdge_CompilerOptimizationLevel
1054WasmEdge_ConfigureCompilerGetOptimizationLevel(
1055 const WasmEdge_ConfigureContext *Cxt) noexcept {
1056 if (Cxt) {
1057 return static_cast<WasmEdge_CompilerOptimizationLevel>(
1058 Cxt->Conf.getCompilerConfigure().getOptimizationLevel());
1059 }
1060 return WasmEdge_CompilerOptimizationLevel_O0;
1061}
1062
1063WASMEDGE_CAPI_EXPORT void WasmEdge_ConfigureCompilerSetOutputFormat(
1064 WasmEdge_ConfigureContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 1

getOptimizationLevelMethod · 0.80

Tested by 1

TESTFunction · 0.68