explore-mir
Installation
SKILL.md
Plan Feature Lowering (SV -> HIR -> MIR)
Guide for implementing a SystemVerilog feature end-to-end, starting from LRM semantics and ending with passing JIT backend tests.
Prerequisites
Read before starting:
docs/pipeline-contract.md- what each layer is responsible fordocs/mir-design.md- MIR semantics + purity/effects modeldocs/hir-design.md- HIR node taxonomy + typing rulesdocs/error-handling.md- error types, when to use eachdocs/type-system.md- type interning, type kinds, 4-state representation
Mental Model
The LRM defines semantics. HIR makes semantics explicit and typed. MIR is the semantic endpoint -- the lowest IR before code generation. The LLVM backend is a translation target, not a semantic decision-maker.