pub struct EmitterConfig {
pub wasm_memory_base: i32,
pub param_overflow_base: i32,
pub register_cache_enabled: bool,
pub constant_propagation_enabled: bool,
pub icmp_fusion_enabled: bool,
pub shrink_wrap_enabled: bool,
pub cross_block_cache_enabled: bool,
pub register_allocation_enabled: bool,
pub fallthrough_jumps_enabled: bool,
pub lazy_spill_enabled: bool,
}Expand description
Per-function configuration for the PVM emitter.
These fields are set once when lowering begins and are never mutated during codegen. Separating them from mutable state makes it clear what’s fixed vs what changes.
Fields§
§wasm_memory_base: i32WASM memory base address (for converting WASM addresses to PVM addresses).
param_overflow_base: i32Base address for the parameter overflow area (5th+ args for call_indirect).
register_cache_enabled: boolWhether the register cache (store-load forwarding) is enabled.
constant_propagation_enabled: boolWhether constant propagation (redundant LoadImm elimination) is enabled.
icmp_fusion_enabled: boolWhether ICmp+Branch fusion is enabled.
shrink_wrap_enabled: boolWhether callee-save shrink wrapping is enabled.
cross_block_cache_enabled: boolWhether cross-block register cache propagation is enabled.
register_allocation_enabled: boolWhether register allocation (long-lived values in allocatable regs) is enabled.
fallthrough_jumps_enabled: boolWhether fallthrough jump elimination is enabled.
lazy_spill_enabled: boolWhether lazy spill is enabled (skip stack stores for register-allocated values).