Description
Purpose
Move modules, types, values, blocks, declarations, globals, instructions and terminators into internal Wave source modules. Preserve current IR semantics and fallible builder behavior. Use only the small internal data bridge needed by remaining Rust components.
Completion criteria
- Cover the current instruction/type inventory and identity rules, including calls, function pointers, storage, casts and volatile operations.
- Failed builder operations leave the module unchanged; check node/depth/work limits before allocation or copying.
- Round-trip representative modules across the internal bridge. Rust models may remain explicit reference/compatibility implementations; no public extension handle API is required.
Delivery
Batch 3/8 — Wave IR model, parsing, verification and frontend in #335. Complete preceding batches first. Exactly one DCO commit per batch and one PR for all eight batches.
Scope correction from the maintainer: targets are source contributions like kernel architectures/drivers. Adding a target may update explicit core definitions, dispatch and Meson lists. Do not introduce an SDK, generic plugin system, automatic module registration or an out-of-tree no-core-change guarantee.
Wave-owned algorithms must execute in Wave; Rust may retain file/OS/CLI/object/link bridges and explicit test/reference implementations. Do not modify the separately owned Wave checkout or take over #100. Preserve existing supported behavior and limits.
Activity