mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-24 20:40:13 +00:00
7bff3eb6f9
Add members: - words: a pointer to an array of words in the instruction, in host native endianness. - num_words: sizes the words member Remove member: - offset This simplifies clients of spvBinaryParse, because they don't have to handle endianness translation. Also, it makes the binary parse API more composable, allowing for easy chaining of binary parse clients. A binary parse client is handed the array of words directly instead of having to reference some external array of all the words in the SPIR-V binary. It also allows a binary parse client to mutate the instruction stream before handing off to a downstream consumer. TODO(dneto): Still need to write the unit tests for spvBinaryParse Fixes: https://github.com/KhronosGroup/SPIRV-Tools/issues/1 |
||
---|---|---|
.. | ||
assembly_grammar.cpp | ||
assembly_grammar.h | ||
binary.cpp | ||
binary.h | ||
diagnostic.cpp | ||
diagnostic.h | ||
disassemble.cpp | ||
endian.cpp | ||
endian.h | ||
ext_inst.cpp | ||
ext_inst.h | ||
instruction.h | ||
opcode.cpp | ||
opcode.h | ||
opcode.inc | ||
opencl_std_ext_inst.inc | ||
operand.cpp | ||
operand.h | ||
print.cpp | ||
print.h | ||
spirv_constant.h | ||
spirv_definition.h | ||
spirv_operands.h | ||
syntax_tables.patch | ||
table.cpp | ||
table.h | ||
text_handler.cpp | ||
text_handler.h | ||
text.cpp | ||
text.h | ||
validate_id.cpp | ||
validate.cpp | ||
validate.h |