0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Target
Ali Cheraghi 3a48f4bb40 spirv: drive capability and extension emission from target features
- Emitting `OpCapability` and `OpExtension` from assembly is no longer allowed (tbh it never was because we silently ignored them).
  They now `fail` with a message pointing users at `-mcpu`.

- `tools/gen_spirv_spec.zig` now also emits `Extension` and the `Capability.dependencies()`.
  Also To keep the feature set a reasonable size, the generator filters to an allowlist of `KHR` and `EXT` entries.
  We can decide which vendors to allow later if a use-case is found.

- `tools/update_cpu_features.zig` now uses the generated `spec.zig` and emits a  feature for every
  capability and extension, with the capability's `.deps` populated from `Capability.dependencies()`.

- `Module.finalize`, `Module.entryPoints`, `Module.addCapability`, `Module.addExtension`
  and `sections.capabilities`/`sections.extensions` are deleted.

- Linker now verifies that an `.spv` object declares the `Linkage` capability
History 2026-06-20 09:38:20 +02:00
..
aarch64.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
alpha.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
amdgcn.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
arc.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
arm.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
avr.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
bpf.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
csky.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
generic.zig std.Target: Introduce Cpu convenience functions for feature tests. 2025-06-05 06:12:00 +02:00
hexagon.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
hppa.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
kvx.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
lanai.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
loongarch.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
m68k.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
mips.zig std.Target: add PSX 2026-06-19 04:22:55 +02:00
msp430.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
nvptx.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
powerpc.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
propeller.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
Query.zig maker: finish porting over run step 2026-05-25 18:54:34 -07:00
riscv.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
s390x.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
sparc.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
spirv.zig spirv: drive capability and extension emission from target features 2026-06-20 09:38:20 +02:00
ve.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
wasm.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
x86.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
xcore.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
xtensa.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00