diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-10-21 17:26:59 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-10-21 17:46:54 +0200 |
| commit | 6281ad91dfc0d799bfabced68009dfb4971545d7 (patch) | |
| tree | 51720234f60229b009045489366fdf41961753b1 /src/codegen/spirv/Module.zig | |
| parent | 6e955af8c84e1f9f75fef7f1a5820ab1b5bcff94 (diff) | |
| download | zig-6281ad91dfc0d799bfabced68009dfb4971545d7.tar.gz zig-6281ad91dfc0d799bfabced68009dfb4971545d7.zip | |
spirv: self-referential pointers via new fwd_ptr_type
Its a little ugly but it works.
Diffstat (limited to 'src/codegen/spirv/Module.zig')
| -rw-r--r-- | src/codegen/spirv/Module.zig | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/codegen/spirv/Module.zig b/src/codegen/spirv/Module.zig index 1936b78826..4ecbc8d7a0 100644 --- a/src/codegen/spirv/Module.zig +++ b/src/codegen/spirv/Module.zig @@ -507,17 +507,6 @@ pub fn arrayType(self: *Module, len: u32, elem_ty_ref: CacheRef) !CacheRef { } }); } -pub fn ptrType( - self: *Module, - child: CacheRef, - storage_class: spec.StorageClass, -) !CacheRef { - return try self.resolve(.{ .ptr_type = .{ - .storage_class = storage_class, - .child_type = child, - } }); -} - pub fn constInt(self: *Module, ty_ref: CacheRef, value: anytype) !IdRef { const ty = self.cache.lookup(ty_ref).int_type; const Value = Cache.Key.Int.Value; |
