CompilePipelineConfig class final

Configuration for the compilation pipeline.

Controls which passes are enabled, what output format to produce, and whether debug information is included.

Constructors

CompilePipelineConfig({bool stripDebug = false, bool dumpIr = false, bool enableAnalyzer = false, bool enableConstantFolding = false, bool enableConstPropagation = false, bool enableTypeNarrowing = false, bool enableMetatableFolding = false, bool enablePeephole = false, bool enableBytecodePeephole = false, bool enableSsaDeadCodeElimination = false, bool enableSsaGlobalValueNumbering = false, bool enableSsaSccp = false, bool enableSsaLicm = false, bool enableSsaCoalesce = false, bool enableSsaEscape = false, bool enableFunctionInlining = false, bool enableLoopUnrolling = false, bool enableBundling = false, List<String> bundleSearchPaths = const ['.'], bool enableDeadCodeElimination = false, CompileBackend target = CompileBackend.luaBytecode})
const
CompilePipelineConfig.luaBytecodeOptimized({bool stripDebug = false, bool dumpIr = false, bool enableLoopUnrolling = false, bool enableBundling = false, List<String> bundleSearchPaths = const ['.'], bool enableBytecodePeephole = true})
Production configuration for compiling source to real Lua bytecode.
factory

Properties

bundleSearchPaths → List<String>
Search paths for the bundler when resolving require("path").
final
dumpIr → bool
Whether to print the IR instruction dump to stderr.
final
enableAnalyzer → bool
Whether to run the analyzer pass (type inference for locals).
final
enableBundling → bool
Whether to run the bundler pass (require() resolution).
final
enableBytecodePeephole → bool
Whether to run peephole optimization on lowered bytecode.
final
enableConstantFolding → bool
Whether to run the ConstantFoldingPass before IR emission.
final
enableConstPropagation → bool
Whether to run constant propagation (single-assignment locals).
final
enableDeadCodeElimination → bool
Whether to tree-shake unused module exports after bundling.
final
enableFunctionInlining → bool
Whether to run Function Inlining on the IR.
final
enableLoopUnrolling → bool
Whether to unroll constant-bounded for-loops in the IR compiler.
final
enableMetatableFolding → bool
Whether to run the reserved metatable-folding extension point.
final
enablePeephole → bool
Whether to run peephole optimization on emitted IR.
final
enableSsaCoalesce → bool
Whether to run Register Coalescing on the IR.
final
enableSsaDeadCodeElimination → bool
Whether to run SSA-based dead code elimination on the IR.
final
enableSsaEscape → bool
Whether to run Escape Analysis + Scalar Replacement on the IR.
final
enableSsaGlobalValueNumbering → bool
Whether to run SSA Global Value Numbering on the IR.
final
enableSsaLicm → bool
Whether to run Loop Invariant Code Motion on the IR.
final
enableSsaSccp → bool
Whether to run Sparse Conditional Constant Propagation on the IR.
final
enableTypeNarrowing → bool
Whether to narrow types through type() equality checks.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stripDebug → bool
Whether to omit debug line information from the bytecode.
final
target → CompileBackend
Target backend for bytecode emission.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited