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

Method DriverCompilerOptions

include/driver/compiler.h:24–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23struct DriverCompilerOptions {
24 DriverCompilerOptions()
25 : WasmName(PO::Description("Wasm file"sv), PO::MetaVar("WASM"sv)),
26 SoName(PO::Description("Wasm so file"sv), PO::MetaVar("WASM_SO"sv)),
27 ConfGenericBinary(PO::Description("Generate a generic binary"sv)),
28 ConfDumpIR(
29 PO::Description("Dump LLVM IR to `wasm.ll` and `wasm-opt.ll`."sv)),
30 ConfInterruptible(PO::Description("Generate a interruptible binary"sv)),
31 ConfEnableInstructionCounting(PO::Description(
32 "Enable generating code for counting Wasm instructions executed."sv)),
33 ConfEnableGasMeasuring(PO::Description(
34 "Enable generating code for counting gas burned during execution."sv)),
35 ConfEnableTimeMeasuring(PO::Description(
36 "Enable generating code for counting time during execution."sv)),
37 ConfEnableAllStatistics(PO::Description(
38 "Enable generating code for all statistics options include "
39 "instruction counting, gas measuring, and execution time."sv)),
40 PropWASM1(PO::Description("Set as WASM 1.0 standard."sv)),
41 PropWASM2(PO::Description("Set as WASM 2.0 standard."sv)),
42 PropWASM3(PO::Description("Set as WASM 3.0 standard (default)."sv)),
43 PropMutGlobals(PO::Description(
44 "Disable Import/Export of mutable globals proposal"sv)),
45 PropNonTrapF2IConvs(PO::Description(
46 "Disable Non-trapping float-to-int conversions proposal"sv)),
47 PropSignExtendOps(
48 PO::Description("Disable Sign-extension operators proposal"sv)),
49 PropMultiValue(PO::Description("Disable Multi-value proposal"sv)),
50 PropBulkMemOps(
51 PO::Description("Disable Bulk memory operations proposal"sv)),
52 PropRefTypes(PO::Description("Disable Reference types proposal"sv)),
53 PropSIMD(PO::Description("Disable SIMD proposal"sv)),
54 PropTailCall(PO::Description("Disable Tail-call proposal"sv)),
55 PropExtendConst(PO::Description("Disable Extended-const proposal"sv)),
56 PropFunctionReference(
57 PO::Description("Disable Function Reference proposal"sv)),
58 PropGC(PO::Description("Disable GC proposal"sv)),
59 PropMultiMem(PO::Description("Disable Multiple memories proposal"sv)),
60 PropRelaxedSIMD(PO::Description("Disable Relaxed SIMD proposal"sv)),
61 PropTailCallDeprecated(PO::Description(
62 "(DEPRECATED) Enable Tail-call proposal. WASM 3.0 includes this "
63 "proposal, and this option will be removed in the future."sv)),
64 PropExtendConstDeprecated(PO::Description(
65 "(DEPRECATED) Enable Extended-const proposal. WASM 3.0 includes "
66 "this proposal, and this option will be removed in the future."sv)),
67 PropFunctionReferenceDeprecated(PO::Description(
68 "(DEPRECATED) Enable Function Reference proposal. WASM 3.0 "
69 "includes this proposal, and this option will be removed in the "
70 "future."sv)),
71 PropGCDeprecated(PO::Description(
72 "(DEPRECATED) Enable GC proposal. WASM 3.0 includes this proposal, "
73 "and this option will be removed in the future."sv)),
74 PropMultiMemDeprecated(PO::Description(
75 "(DEPRECATED) Enable Multiple memories proposal. WASM 3.0 includes "
76 "this proposal, and this option will be removed in the future."sv)),
77 PropRelaxedSIMDDeprecated(PO::Description(
78 "(DEPRECATED) Enable Relaxed SIMD proposal. WASM 3.0 includes this "
79 "proposal, and this option will be removed in the future."sv)),
80 // TODO: EXCEPTION - enable the option.
81 // PropExceptionHandling(

Callers

nothing calls this directly

Calls 3

DescriptionClass · 0.85
MetaVarClass · 0.85
DefaultValueClass · 0.85

Tested by

no test coverage detected