Add MIR

Emil J 2022-04-13 10:26:06 +02:00
parent c5830aa452
commit d026d4ef00

@ -22,7 +22,7 @@ Intermediate representation. Typically represented as instructions that referenc
* ZIR * ZIR
* AIR * AIR
* MIR (proposed) * MIR (stage2 only)
There is also LLVM IR. There is also LLVM IR.
@ -45,6 +45,10 @@ Does type checking, comptime control flow, and safety-check generation. This is
See `src/Sema.zig`. See `src/Sema.zig`.
### MIR
Machine Intermediate Representation, lowered to from AIR. Each instruction set architecture will have its own MIR dialect as it is designed to closely match available instructions. Designed for stage2+, since LLVM and C backends don't need MIR. Partially implemented. See [the design issue](https://github.com/ziglang/zig/issues/9514).
### ZIR ### ZIR
Zig Intermediate Representation. `src/Astgen.zig` converts AST nodes to these Zig Intermediate Representation. `src/Astgen.zig` converts AST nodes to these