Skip to content

Commit 3d5721d

Browse files
committed
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`.
1 parent 3bffa58 commit 3d5721d

File tree

2 files changed

+251
-81
lines changed

2 files changed

+251
-81
lines changed

0 commit comments

Comments
 (0)