ziglang/zig
259
6.0k
Fork
You've already forked zig
771

WIP: SPIR-V backend fixes encountered while targeting Vulkan compute #35174

Closed
quint wants to merge 13 commits from quint/zig-gpu:spirv-fixes into master
pull from: quint/zig-gpu:spirv-fixes
merge into: ziglang:master
ziglang:master
ziglang:elfv2
ziglang:spork8
ziglang:restricted
ziglang:0.16.x
ziglang:panic-rewrite
ziglang:parking-futex-lockfree
ziglang:windows-Io-cleanup
ziglang:Io-watch
ziglang:ParseCommandLineOptions
ziglang:windows-async-files
ziglang:poll-ring
ziglang:debug-file-leaks-differently
ziglang:debug-file-leaks
ziglang:ProcessPrng
ziglang:elfv2-dyn
ziglang:jobserver
ziglang:threadtheft
ziglang:io-threaded-no-queue
ziglang:0.15.x
ziglang:Io.net
ziglang:comptime-allocator
ziglang:restricted-function-pointers
ziglang:cli
ziglang:wasm-linker-writer
ziglang:wrangle-writer-buffering
ziglang:sha1-stream
ziglang:async-await-demo
ziglang:fixes
ziglang:0.14.x
ziglang:ast-node-methods
ziglang:macos-debug-info
ziglang:make-vs-configure
ziglang:fuzz-macos
ziglang:sans-aro
ziglang:ArrayList-reserve
ziglang:incr-bug
ziglang:llvm-ir-nosanitize-metadata
ziglang:ci-tarballs
ziglang:ci-scripts
ziglang:threadpool
ziglang:0.12.x
ziglang:new-pkg-hash
ziglang:json-diagnostics
ziglang:more-doctests
ziglang:rework-comptime-mutation
ziglang:0.11.x
ziglang:ci-perf-comment
ziglang:stage2-async
ziglang:0.10.x
ziglang:autofix
ziglang:0.9.x
ziglang:aro
ziglang:hcs
ziglang:0.8.x
ziglang:0.7.x
Contributor
Copy link

These commits are fixes I hit while using the self-hosted SPIR-V backend to build Vulkan compute kernels for molten-zig, a small project that lowers Zig kernels to SPIR-V and dispatches them on Apple Silicon GPUs through MoltenVK.
Nothing exotic on the kernel side: storage buffers in set 0, a main entry point, the kind of thing every compute pipeline needs.

Each commit is small and scoped to one issue. Without these, the kernels either failed validation, failed to assemble, or crashed the compiler before emitting SPIR-V.

A few caveats worth stating up front:

  • I am not a compiler engineer or a SPIR-V expert. These are pragmatic fixes that unblocked my use case and pass validation against the kernels I'm exercising. They may not be the right shape for upstream, and I'd defer to anyone who actually owns this backend on naming, structure, or whether a given fix belongs somewhere else entirely.
  • Happy to rewrite, split, squash, or cherry-pick any subset. If only some of these are landable as-is, just say which and I'll reshape the rest.
  • I'll likely keep pushing further fixes to this branch as I run into them. The molten-zig project doesn't have an explicit direction yet, so the patch set is still growing organically. If you'd prefer I freeze the branch for review, let me know.

Mainly opening this to start the conversation and see whether any of it is useful upstream.

These commits are fixes I hit while using the self-hosted SPIR-V backend to build Vulkan compute kernels for [molten-zig](https://codeberg.org/quint/molten-zig), a small project that lowers Zig kernels to SPIR-V and dispatches them on Apple Silicon GPUs through MoltenVK. Nothing exotic on the kernel side: storage buffers in set 0, a main entry point, the kind of thing every compute pipeline needs. **Each commit is small and scoped to one issue**. Without these, the kernels either failed validation, failed to assemble, or crashed the compiler before emitting SPIR-V. A few caveats worth stating up front: - **I am not a compiler engineer or a SPIR-V expert**. These are pragmatic fixes that unblocked my use case and pass validation against the kernels I'm exercising. They may not be the right shape for upstream, and I'd defer to anyone who actually owns this backend on naming, structure, or whether a given fix belongs somewhere else entirely. - **Happy to rewrite, split, squash, or cherry-pick any subset**. If only some of these are landable as-is, just say which and I'll reshape the rest. - **I'll likely keep pushing further fixes to this branch as I run into them**. The `molten-zig` project doesn't have an explicit direction yet, so the patch set is still growing organically. If you'd prefer I freeze the branch for review, let me know. Mainly opening this to start the conversation and see whether any of it is useful upstream.
refactor(spirv): defer ArrayStride to buffer-backed pointer emission
Some checks failed
ci / aarch64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-netbsd-debug (pull_request) Has been cancelled
ci / aarch64-netbsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
8eccdbe073
Author
Contributor
Copy link

Also, I'd greatly appreciate any feedback to improve the quality of these commits.

Also, I'd greatly appreciate any feedback to improve the quality of these commits.
std.gpu: add Scope, MemorySemantics, and barrier primitives
Some checks failed
ci / aarch64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-netbsd-debug (pull_request) Has been cancelled
ci / aarch64-netbsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
b7362982b9
Exposes OpControlBarrier and OpMemoryBarrier so compute kernels do not
need to hand-roll inline asm for workgroup synchronisation. Scope and
MemorySemantics mirror the SPIRV-Headers unified1 grammar bit-for-bit;
workgroupBarrier() matches the semantics of GLSL barrier().
Contributor
Copy link

fixes #31925

fixes https://codeberg.org/ziglang/zig/issues/31925
std.gpu: add storageBuffer, uniformBuffer, pushConstant helpers
Some checks failed
ci / aarch64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-netbsd-debug (pull_request) Has been cancelled
ci / aarch64-netbsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
4364360d0d
Author
Contributor
Copy link

IRT #31925, we probably want to cherry-pick 8eccdbe073.

IRT #31925, we probably want to cherry-pick 8eccdbe073.
fix(std.Target/spirv): correct variable_pointers feature description
Some checks failed
ci / aarch64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-netbsd-debug (pull_request) Has been cancelled
ci / aarch64-netbsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
9a9d4d129d
feat(spirv): lower buffer multi-pointers as OpTypeRuntimeArray
Some checks failed
ci / aarch64-freebsd-debug (pull_request) Has been cancelled
ci / aarch64-freebsd-release (pull_request) Has been cancelled
ci / aarch64-linux-debug (pull_request) Has been cancelled
ci / aarch64-linux-release (pull_request) Has been cancelled
ci / aarch64-netbsd-debug (pull_request) Has been cancelled
ci / aarch64-netbsd-release (pull_request) Has been cancelled
ci / aarch64-macos-debug (pull_request) Has been cancelled
ci / aarch64-macos-release (pull_request) Has been cancelled
ci / loongarch64-linux-debug (pull_request) Has been cancelled
ci / loongarch64-linux-release (pull_request) Has been cancelled
ci / powerpc64le-linux-debug (pull_request) Has been cancelled
ci / powerpc64le-linux-release (pull_request) Has been cancelled
ci / riscv64-linux-debug (pull_request) Has been cancelled
ci / riscv64-linux-release (pull_request) Has been cancelled
ci / s390x-linux-debug (pull_request) Has been cancelled
ci / s390x-linux-release (pull_request) Has been cancelled
ci / x86_64-freebsd-debug (pull_request) Has been cancelled
ci / x86_64-freebsd-release (pull_request) Has been cancelled
ci / x86_64-linux-debug (pull_request) Has been cancelled
ci / x86_64-linux-debug-llvm (pull_request) Has been cancelled
ci / x86_64-linux-release (pull_request) Has been cancelled
ci / x86_64-netbsd-debug (pull_request) Has been cancelled
ci / x86_64-netbsd-release (pull_request) Has been cancelled
ci / x86_64-openbsd-debug (pull_request) Has been cancelled
ci / x86_64-openbsd-release (pull_request) Has been cancelled
ci / x86_64-windows-debug (pull_request) Has been cancelled
ci / x86_64-windows-release (pull_request) Has been cancelled
ed4b959ddd
Struct fields typed `[*]T` / `[*c]T` in `.storage_buffer` or `.uniform`
on Vulkan now lower to `OpTypeRuntimeArray` instead of a plain pointer,
matching how SSBOs are described in SPIR-V for Vulkan.
Author
Contributor
Copy link

Reorder/squash notes:
Hard internal dep: 8eccdbe0 -> ed4b959d (ArrayStride path). Everything else is independent fixes that could land in any order.

9a9d4d129d -> 76b001ed3b belong together.

Reorder/squash notes: Hard internal dep: 8eccdbe0 -> ed4b959d (ArrayStride path). Everything else is independent fixes that could land in any order. 9a9d4d129d -> 76b001ed3b belong together.
@ -124,3 +124,3 @@
result[@intFromEnum(Feature.variable_pointers)]=.{
.llvm_name=null,
.description="Enable SPV_KHR_physical_storage_buffer extension and the PhysicalStorageBufferAddresses capability",
.description="Enable SPV_KHR_variable_pointers extension and the VariablePointers capability",
Contributor
Copy link

This is auto-generated by updating and running tools/update_cpu_features.zig. How you run it is a mystery though - no matter how and what kind of arguments I pass, I can't get it to work.

This is auto-generated by updating and running `tools/update_cpu_features.zig`. How you run it is a mystery though - no matter how and what kind of arguments I pass, I can't get it to work.
Author
Contributor
Copy link

Whoops, missed the comment that the file is auto-generated --', probably need to revert this since this is a manual edit.

Whoops, missed the comment that the file is auto-generated --', probably need to revert this since this is a manual edit.
Author
Contributor
Copy link

Thanks again for flagging this @neoto!
I found how to run the regen: quint/molten-zig@19aaaf0a75 (76b001ed3b now also properly fixes stuff).

Thanks again for flagging this @neoto! I found how to run the regen: https://codeberg.org/quint/molten-zig/commit/19aaaf0a7528f3913fd871b71c4f7ff310069410 (76b001ed3b now also properly fixes stuff).
quint marked this conversation as resolved
fix(tools/update_cpu_features): correct variable_pointers source description
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-netbsd-release (pull_request) Successful in 47m2s
ci / x86_64-freebsd-release (pull_request) Successful in 52m28s
ci / x86_64-netbsd-debug (pull_request) Successful in 1h0m57s
ci / x86_64-freebsd-debug (pull_request) Successful in 1h5m13s
ci / aarch64-macos-debug (pull_request) Successful in 2h20m11s
ci / x86_64-openbsd-release (pull_request) Successful in 1h1m25s
ci / x86_64-openbsd-debug (pull_request) Successful in 1h15m9s
ci / x86_64-windows-debug (pull_request) Successful in 1h9m52s
ci / x86_64-windows-release (pull_request) Successful in 1h5m11s
ci / aarch64-linux-release (pull_request) Successful in 1h42m6s
ci / powerpc64le-linux-release (pull_request) Successful in 2h12m15s
ci / aarch64-linux-debug (pull_request) Successful in 2h26m44s
ci / x86_64-linux-debug (pull_request) Successful in 1h46m1s
ci / powerpc64le-linux-debug (pull_request) Successful in 3h25m53s
ci / x86_64-linux-release (pull_request) Successful in 3h24m54s
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h49m5s
ci / aarch64-macos-release (pull_request) Successful in 1h35m9s
ci / loongarch64-linux-release (pull_request) Successful in 2h9m56s
ci / s390x-linux-release (pull_request) Successful in 2h0m37s
ci / loongarch64-linux-debug (pull_request) Successful in 3h42m27s
ci / s390x-linux-debug (pull_request) Successful in 3h12m45s
ci / aarch64-freebsd-release (pull_request) Successful in 3h0m56s
ci / aarch64-freebsd-debug (pull_request) Successful in 3h50m17s
ci / aarch64-netbsd-debug (pull_request) Successful in 4h34m4s
ci / aarch64-netbsd-release (pull_request) Successful in 3h35m30s
76b001ed3b
@ -173,0 +178,4 @@
fncontainsLogicalIncompatible(zcu:*constZcu,ty:Type)bool{
constip=&zcu.intern_pool;
returnswitch(ip.indexToKey(ty.toIntern())){
.ptr_type=>|p|switch(p.flags.size){
First-time contributor
Copy link

Shouldn't ptr_type be unconditionally true? According to the SPIR-V Spec

OpVariable must not allocate an object whose type is or contains a logical pointer type.
Pointers can only be operands to a very restricted set of instructions
Pointers can only be the result of a very restricted set of instructions

Also wonder if func_type and anyframe_type fit above rules.

Shouldn't ptr_type be unconditionally true? According to the [SPIR-V Spec](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_universal_validation_rules) > OpVariable must not allocate an object whose type is or contains a logical pointer type. > Pointers can only be operands to a very restricted set of instructions > Pointers can only be the result of a very restricted set of instructions Also wonder if `func_type` and `anyframe_type` fit above rules.
Author
Contributor
Copy link

Thanks for taking the time to look into this! You're right, this is too lenient. I started reading the spec recently so I've likely missed nuance here.

Concretely, I think .one should also return true under strict Logical addressing. Nothing in the surrounding lowering rewrites single-pointee *T into a non-pointer form, so an OpVariable containing one is just as invalid as one containing a slice.

Proposed next step: flatten the arm to .ptr_type => true and leave func_type / anyframe_type as-is for now (function types lower to OpTypeFunction, not a pointer afaik; anyframe shouldn't reach SPIR-V codegen at all?).

Thanks for taking the time to look into this! You're right, this is too lenient. I started reading the spec recently so I've likely missed nuance here. Concretely, I think `.one` should also return true under strict Logical addressing. Nothing in the surrounding lowering rewrites single-pointee `*T` into a non-pointer form, so an OpVariable containing one is just as invalid as one containing a slice. Proposed next step: flatten the arm to .`ptr_type => true` and leave `func_type` / `anyframe_type` as-is for now (function types lower to OpTypeFunction, not a pointer afaik; anyframe shouldn't reach SPIR-V codegen at all?).
Author
Contributor
Copy link

Moved to: #35273

Moved to: #35273
quint changed title from (削除) SPIR-V backend fixes encountered while targeting Vulkan compute (削除ここまで) to WIP: SPIR-V backend fixes encountered while targeting Vulkan compute 2026年05月08日 15:25:17 +02:00
Author
Contributor
Copy link

Will keep this open until I have split all the commit in separate PRs, already done:

#35265
#35266

Rest is for tomorrow, or another day.


#35273
#35274

Will keep this open until I have split all the commit in separate PRs, already done: #35265 #35266 Rest is for tomorrow, or another day. --- #35273 #35274

Thank You!
Co-Authored in #35777

Thank You! Co-Authored in #35777
All checks were successful
ci / riscv64-linux-debug (pull_request) Has been skipped
ci / riscv64-linux-release (pull_request) Has been skipped
ci / x86_64-netbsd-release (pull_request) Successful in 47m2s
Required
Details
ci / x86_64-freebsd-release (pull_request) Successful in 52m28s
Required
Details
ci / x86_64-netbsd-debug (pull_request) Successful in 1h0m57s
Required
Details
ci / x86_64-freebsd-debug (pull_request) Successful in 1h5m13s
Required
Details
ci / aarch64-macos-debug (pull_request) Successful in 2h20m11s
Required
Details
ci / x86_64-openbsd-release (pull_request) Successful in 1h1m25s
Required
Details
ci / x86_64-openbsd-debug (pull_request) Successful in 1h15m9s
Required
Details
ci / x86_64-windows-debug (pull_request) Successful in 1h9m52s
Required
Details
ci / x86_64-windows-release (pull_request) Successful in 1h5m11s
Required
Details
ci / aarch64-linux-release (pull_request) Successful in 1h42m6s
Required
Details
ci / powerpc64le-linux-release (pull_request) Successful in 2h12m15s
Required
Details
ci / aarch64-linux-debug (pull_request) Successful in 2h26m44s
Required
Details
ci / x86_64-linux-debug (pull_request) Successful in 1h46m1s
Required
Details
ci / powerpc64le-linux-debug (pull_request) Successful in 3h25m53s
Required
Details
ci / x86_64-linux-release (pull_request) Successful in 3h24m54s
Required
Details
ci / x86_64-linux-debug-llvm (pull_request) Successful in 3h49m5s
Required
Details
ci / aarch64-macos-release (pull_request) Successful in 1h35m9s
Required
Details
ci / loongarch64-linux-release (pull_request) Successful in 2h9m56s
ci / s390x-linux-release (pull_request) Successful in 2h0m37s
Required
Details
ci / loongarch64-linux-debug (pull_request) Successful in 3h42m27s
ci / s390x-linux-debug (pull_request) Successful in 3h12m45s
Required
Details
ci / aarch64-freebsd-release (pull_request) Successful in 3h0m56s
ci / aarch64-freebsd-debug (pull_request) Successful in 3h50m17s
ci / aarch64-netbsd-debug (pull_request) Successful in 4h34m4s
ci / aarch64-netbsd-release (pull_request) Successful in 3h35m30s

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
abi/f32
abi/ilp32
abi/sf
accepted
This proposal is planned.
arch/21k
arch/6502
arch/aarch64
arch/alpha
arch/amdgcn
arch/arc
arch/arc32
arch/arc64
arch/arm
arch/avr
arch/bfin
arch/bpf
arch/colossus
arch/cris
arch/csky
arch/dlx
arch/epiphany
arch/fr30
arch/frv
arch/hexagon
arch/hppa
arch/hppa64
arch/ia64
arch/kalimba
arch/kvx
arch/lanai
arch/lm32
arch/loongarch32
arch/loongarch64
arch/m32r
arch/m68k
arch/m88k
arch/mcore
arch/microblaze
arch/mips
arch/mips64
arch/mmix
arch/moxie
arch/mrisc32
arch/msp430
arch/nds32
arch/ns32k
arch/nvptx
arch/or1k
arch/powerpc
arch/powerpc64
arch/propeller
arch/riscv32
arch/riscv64
arch/rl78
arch/rx
arch/s390x
arch/sh
arch/sparc
arch/sparc64
arch/spirv
arch/spu
arch/tricore
arch/v850
arch/vax
arch/vc4
arch/ve
arch/wasm
arch/x86
arch/x86_64
arch/xcore
arch/xtensa
autodoc
The web application for interactive documentation and generation of its assets.
backend/c
The C backend outputs C source code.
backend/llvm
The LLVM backend outputs an LLVM bitcode module.
backend/self-hosted
The self-hosted backends produce machine code directly.
binutils
Zig's included binary utilities: zig ar, zig dlltool, zig lib, zig ranlib, zig objcopy, and zig rc.
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
build system
The Zig build system - zig build, std.Build, the build runner, and package management.
debug info
An issue related to debug information (e.g. DWARF) produced by the Zig compiler.
docs
An issue with documentation, e.g. the language reference or standard library doc comments.
error message
This issue points out an error message that is unhelpful and should be improved.
frontend
Tokenization, parsing, AstGen, ZonGen, Sema, Legalize, and Liveness.
fuzzing
An issue related to Zig's integrated fuzz testing.
incremental
Reuse of internal compiler state for faster compilation.
lib/c
This issue relates to Zig's libc implementation and/or vendored libcs.
lib/compiler-rt
This issue relates to Zig's compiler-rt library.
lib/cxx
This issue relates to Zig's vendored libc++ and/or libc++abi.
lib/std
This issue relates to Zig's standard library.
lib/tsan
This issue relates to Zig's vendored libtsan.
lib/ubsan-rt
This issue relates to Zig's ubsan-rt library.
lib/unwind
This issue relates to Zig's vendored libunwind.
linking
Zig's integrated object file and incremental linker.
miscompilation
The compiler reports success but produces semantically incorrect code.
os/android
os/contiki
os/dragonfly
os/driverkit
os/emscripten
os/freebsd
os/fuchsia
os/haiku
os/hermit
os/hurd
os/illumos
os/ios
os/linux
os/maccatalyst
os/macos
os/managarm
os/netbsd
os/ohos
os/openbsd
os/plan9
os/redox
os/rtems
os/serenity
os/tvos
os/uefi
os/visionos
os/wasi
os/watchos
os/windows
proposal
This issue suggests language modifications. If it also has the "accepted" label then it is planned.
release notes
This issue or pull request should be mentioned in the release notes.
testing
This issue is related to testing the compiler, standard library, or other parts of Zig.
zig cc
Zig as a drop-in C-family compiler.
zig fmt
The Zig source code formatter.
zig reduce
The Zig source code reduction tool.
bounty
https://ziglang.org/news/announcing-donor-bounties
bug
Observed behavior contradicts documented or intended behavior.
contributor-friendly
This issue is limited in scope and/or knowledge of project internals.
downstream
An issue with a third-party project that uses this project.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
infra
An issue related to project infrastructure, e.g. continuous integration.
optimization
A task to improve performance and/or resource usage.
question
No questions on the issue tracker; use a community space instead.
regression
Something that used to work in a previous version stopped working
upstream
An issue with a third-party project that this project uses.
use case
Describes a real use case that is difficult or impossible, but does not propose a solution.
No labels
abi/f32
abi/ilp32
abi/sf
accepted
arch/21k
arch/6502
arch/aarch64
arch/alpha
arch/amdgcn
arch/arc
arch/arc32
arch/arc64
arch/arm
arch/avr
arch/bfin
arch/bpf
arch/colossus
arch/cris
arch/csky
arch/dlx
arch/epiphany
arch/fr30
arch/frv
arch/hexagon
arch/hppa
arch/hppa64
arch/ia64
arch/kalimba
arch/kvx
arch/lanai
arch/lm32
arch/loongarch32
arch/loongarch64
arch/m32r
arch/m68k
arch/m88k
arch/mcore
arch/microblaze
arch/mips
arch/mips64
arch/mmix
arch/moxie
arch/mrisc32
arch/msp430
arch/nds32
arch/ns32k
arch/nvptx
arch/or1k
arch/powerpc
arch/powerpc64
arch/propeller
arch/riscv32
arch/riscv64
arch/rl78
arch/rx
arch/s390x
arch/sh
arch/sparc
arch/sparc64
arch/spirv
arch/spu
arch/tricore
arch/v850
arch/vax
arch/vc4
arch/ve
arch/wasm
arch/x86
arch/x86_64
arch/xcore
arch/xtensa
autodoc
backend/c
backend/llvm
backend/self-hosted
binutils
breaking
build system
debug info
docs
error message
frontend
fuzzing
incremental
lib/c
lib/compiler-rt
lib/cxx
lib/std
lib/tsan
lib/ubsan-rt
lib/unwind
linking
miscompilation
os/android
os/contiki
os/dragonfly
os/driverkit
os/emscripten
os/freebsd
os/fuchsia
os/haiku
os/hermit
os/hurd
os/illumos
os/ios
os/linux
os/maccatalyst
os/macos
os/managarm
os/netbsd
os/ohos
os/openbsd
os/plan9
os/redox
os/rtems
os/serenity
os/tvos
os/uefi
os/visionos
os/wasi
os/watchos
os/windows
proposal
release notes
testing
zig cc
zig fmt
zig reduce
bounty
bug
contributor-friendly
downstream
enhancement
infra
optimization
question
regression
upstream
use case
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/zig!35174
Reference in a new issue
ziglang/zig
No description provided.
Delete branch "quint/zig-gpu:spirv-fixes"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?