From d026d4ef001de34d13539d0add20f52ce3e563e0 Mon Sep 17 00:00:00 2001 From: Emil J Date: Wed, 13 Apr 2022 10:26:06 +0200 Subject: [PATCH] Add MIR --- Glossary.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Glossary.md b/Glossary.md index fe28f63..5eb0516 100644 --- a/Glossary.md +++ b/Glossary.md @@ -22,7 +22,7 @@ Intermediate representation. Typically represented as instructions that referenc * ZIR * AIR - * MIR (proposed) + * MIR (stage2 only) 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`. +### 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 Zig Intermediate Representation. `src/Astgen.zig` converts AST nodes to these