diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-07 20:55:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 20:55:50 -0700 |
| commit | 3fb86841cc65437c65a6d599117833e260ea797c (patch) | |
| tree | 2f4df8b5da41e8df00ba0989ca72beb26566b6c1 /src/Zcu/PerThread.zig | |
| parent | 5998a8cebe3973d70c258b2a1440c5c3252d3539 (diff) | |
| parent | cd4b03c5ed1bc5b48ad9c353679b309ead75551d (diff) | |
| download | zig-3fb86841cc65437c65a6d599117833e260ea797c.tar.gz zig-3fb86841cc65437c65a6d599117833e260ea797c.zip | |
Merge pull request #24661 from alichraghi/spv4
spirv: refactor and remove deduplication ISel
Diffstat (limited to 'src/Zcu/PerThread.zig')
| -rw-r--r-- | src/Zcu/PerThread.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 79ad9f14e9..7c2961b6ae 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -4459,13 +4459,10 @@ fn runCodegenInner(pt: Zcu.PerThread, func_index: InternPool.Index, air: *Air) e const lf = comp.bin_file orelse return error.NoLinkFile; - // TODO: self-hosted codegen should always have a type of MIR; codegen should produce that MIR, - // and the linker should consume it. However, our SPIR-V backend is currently tightly coupled - // with our SPIR-V linker, so needs to work more like the LLVM backend. This should be fixed to - // unblock threaded codegen for SPIR-V. + // Just like LLVM, the SPIR-V backend can't multi-threaded due to SPIR-V design limitations. if (lf.cast(.spirv)) |spirv_file| { assert(pt.tid == .main); // SPIR-V has a lot of shared state - spirv_file.object.updateFunc(pt, func_index, air, &liveness) catch |err| { + spirv_file.updateFunc(pt, func_index, air, &liveness) catch |err| { switch (err) { error.OutOfMemory => comp.link_diags.setAllocFailure(), } |
