aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-08 20:42:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-20 12:18:14 -0700
commit5d6f7b44c19b064a543b0c1eecb6ef5c671b612e (patch)
tree394376c930ddafef6d5455d9b80baff5abbae4b4 /src/codegen
parentbfe20051673e285d3b1788cd637fab9ca84d1cb1 (diff)
downloadzig-5d6f7b44c19b064a543b0c1eecb6ef5c671b612e.tar.gz
zig-5d6f7b44c19b064a543b0c1eecb6ef5c671b612e.zip
stage2: rework AIR memory layout
This commit changes the AIR file and the documentation of the memory layout. The actual work of modifying the surrounding code (in Sema and codegen) is not yet done.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/c.zig3
-rw-r--r--src/codegen/llvm.zig2
-rw-r--r--src/codegen/spirv.zig3
-rw-r--r--src/codegen/wasm.zig3
4 files changed, 4 insertions, 7 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 391375c709..e3f2423746 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -6,8 +6,7 @@ const log = std.log.scoped(.c);
const link = @import("../link.zig");
const Module = @import("../Module.zig");
const Compilation = @import("../Compilation.zig");
-const ir = @import("../air.zig");
-const Inst = ir.Inst;
+const Air = @import("../Air.zig");
const Value = @import("../value.zig").Value;
const Type = @import("../type.zig").Type;
const TypedValue = @import("../TypedValue.zig");
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index b8f96891f4..45ee2d9bb8 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -9,7 +9,7 @@ const math = std.math;
const Module = @import("../Module.zig");
const TypedValue = @import("../TypedValue.zig");
-const ir = @import("../air.zig");
+const Air = @import("../Air.zig");
const Inst = ir.Inst;
const Value = @import("../value.zig").Value;
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index 7fa813e565..60e9a96275 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -12,8 +12,7 @@ const Decl = Module.Decl;
const Type = @import("../type.zig").Type;
const Value = @import("../value.zig").Value;
const LazySrcLoc = Module.LazySrcLoc;
-const ir = @import("../air.zig");
-const Inst = ir.Inst;
+const Air = @import("../Air.zig");
pub const Word = u32;
pub const ResultId = u32;
diff --git a/src/codegen/wasm.zig b/src/codegen/wasm.zig
index 3476ab2ce6..45b00ddfad 100644
--- a/src/codegen/wasm.zig
+++ b/src/codegen/wasm.zig
@@ -9,8 +9,7 @@ const wasm = std.wasm;
const Module = @import("../Module.zig");
const Decl = Module.Decl;
-const ir = @import("../air.zig");
-const Inst = ir.Inst;
+const Air = @import("../Air.zig");
const Type = @import("../type.zig").Type;
const Value = @import("../value.zig").Value;
const Compilation = @import("../Compilation.zig");