0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/tools
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
..
crc std.hash.crc: simplify api 2024-04-28 21:12:01 +12:00
spirv spirv: snake-case the spec 2025-07-14 15:16:17 +02:00
check_mingw.zig mingw: Only preprocess .def.in files 2026-06-17 20:07:43 -07:00
compiler_gdb_pretty_printers.py tools: rename stage2 to compiler 2026-04-22 16:11:02 -07:00
docgen.zig docgen: better error message on failure to read output 2026-05-25 18:54:35 -07:00
doctest.zig doctest: update to newer std.zig API 2026-05-25 18:54:35 -07:00
dump-cov.zig Replace usages of AutoArrayHashMapUnmanaged with array_hash_map.Auto 2026-06-10 16:14:58 +02:00
fetch_them_macos_headers.zig remove uses of array multiplication 2026-04-30 08:57:51 +01:00
gen_macos_headers_c.zig test-standalone: update the rest of the cases to new API 2026-01-04 00:27:08 -08:00
gen_outline_atomics.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
gen_spirv_spec.zig spirv: drive capability and extension emission from target features 2026-06-20 09:38:20 +02:00
gen_stubs.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
generate_c_size_and_align_checks.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
generate_JSONTestSuite.zig remove uses of array multiplication 2026-04-30 08:57:51 +01:00
generate_linux_syscalls.zig std.os.linux: generate syscalls for hppa, microblaze, sh 2026-06-04 15:15:14 +02:00
incr-check.zig fix incr-check tests 2026-05-25 18:54:36 -07:00
macos-headers.c libc: Add mach-o/getsect.h and mach/exception.h macOS headers 2025-11-04 21:51:48 +00:00
migrate_langref.zig delete @cImport from the language 2026-04-15 17:43:53 -07:00
process_headers.zig libc: update NetBSD headers to 11.0 2026-05-26 15:40:40 +02:00
update-linux-headers.zig std: remove managed array hash map variants 2026-04-10 17:39:45 +02:00
update_clang_options.zig all: update to use new std.lang.Type definitions 2026-05-27 10:03:51 +01:00
update_cpu_features.zig spirv: drive capability and extension emission from target features 2026-06-20 09:38:20 +02:00
update_crc_catalog.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_freebsd_libc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_glibc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_mingw.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_netbsd_libc.zig test-standalone: update more cases to new main API 2026-01-04 00:27:08 -08:00
update_openbsd_libc.zig update_openbsd_libc: add tool for updating openbsd libc startup code 2026-01-05 16:50:44 +01:00