diff options
| author | Robin Voetter <robin@voetter.nl> | 2024-03-09 12:00:34 +0100 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2024-03-18 19:13:46 +0100 |
| commit | 3d5721da239502a23cb7b3629111f40b54455ddf (patch) | |
| tree | 93ffa28225bb5edbb2badf1295fbf071ec05d9bb /test/behavior/basic.zig | |
| parent | 3bffa58012bbe298c1f99f27e55d6f088d5d2078 (diff) | |
| download | zig-3d5721da239502a23cb7b3629111f40b54455ddf.tar.gz zig-3d5721da239502a23cb7b3629111f40b54455ddf.zip | |
spirv: update spec generator
For module parsing and assembling, we will also need to know
all of the SPIR-V extensions and their instructions. This commit
updates the generator to generate those. Because there are
multiple instruction sets that each have a separate list of Opcodes,
no separate enum is generated for these opcodes. Additionally, the
previous mechanism for runtime instruction information, `Opcode`'s
`fn operands()`, has been removed in favor for
`InstructionSet.core.instructions()`.
Any mapping from operand to instruction is to be done at runtime.
Using a runtime populated hashmap should also be more efficient
than the previous mechanism using `stringToEnum`.
Diffstat (limited to 'test/behavior/basic.zig')
0 files changed, 0 insertions, 0 deletions
