diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-06-03 22:42:10 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-06-12 13:55:40 +0100 |
| commit | 89ba8859704486d526a75434f18d5a25ff89d57b (patch) | |
| tree | da2ee8131619f320818ae99778d270c8589f17cb /src/codegen | |
| parent | c0df70706695a67089d4e691d3d3a0f77b90298f (diff) | |
| download | zig-89ba8859704486d526a75434f18d5a25ff89d57b.tar.gz zig-89ba8859704486d526a75434f18d5a25ff89d57b.zip | |
spirv: make the backend compile again
Unfortunately, the self-hosted SPIR-V backend is quite tightly coupled
with the self-hosted SPIR-V linker through its `Object` concept (which
is much like `llvm.Object`). Reworking this would be too much work for
this branch. So, for now, I have introduced a special case (similar to
the LLVM backend's special case) to the codegen logic when using this
backend. We will want to delete this special case at some point, but it
need not block this work.
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/spirv.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig index e6c06d9f20..b9eb56dd23 100644 --- a/src/codegen/spirv.zig +++ b/src/codegen/spirv.zig @@ -250,12 +250,12 @@ pub const Object = struct { self: *Object, pt: Zcu.PerThread, func_index: InternPool.Index, - air: Air, - liveness: Air.Liveness, + air: *const Air, + liveness: *const Air.Liveness, ) !void { const nav = pt.zcu.funcInfo(func_index).owner_nav; // TODO: Separate types for generating decls and functions? - try self.genNav(pt, nav, air, liveness, true); + try self.genNav(pt, nav, air.*, liveness.*, true); } pub fn updateNav( |
