Four IRs Deep: How skalp Compiles Hardware
skalp compiles hardware descriptions through four intermediate representations — HIR preserves intent, MIR models cycle-accurate RTL, LIR maps to technology primitives, and SIR optimizes for GPU simulation. How each IR serves a different purpose, what gets lowered at each stage, and why the synthesis and simulation paths diverge at LIR.