SPIRV-Tools/source
David Neto 7bff3eb6f9 spv_parsed_instruction_t cleanup
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
2015-11-23 09:52:38 -05:00
..
assembly_grammar.cpp Use opaque context object to hold SPIR-V info tables. 2015-11-12 16:27:51 -05:00
assembly_grammar.h Fix many typos. 2015-11-13 12:35:43 -06:00
binary.cpp spv_parsed_instruction_t cleanup 2015-11-23 09:52:38 -05:00
binary.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
diagnostic.cpp Put DiagnosticStream and clr exports in libspirv namespace 2015-11-20 10:46:42 -05:00
diagnostic.h Put DiagnosticStream and clr exports in libspirv namespace 2015-11-20 10:46:42 -05:00
disassemble.cpp spv_parsed_instruction_t cleanup 2015-11-23 09:52:38 -05:00
endian.cpp spv_parsed_instruction_t cleanup 2015-11-23 09:52:38 -05:00
endian.h spv_parsed_instruction_t cleanup 2015-11-23 09:52:38 -05:00
ext_inst.cpp Add missing copyright. 2015-11-12 09:43:03 -05:00
ext_inst.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
instruction.h Object files should depend on spirv.h and friends 2015-11-17 18:04:12 -05:00
opcode.cpp Remove old names for enums: memory semantics, scope ID 2015-11-18 15:56:38 -05:00
opcode.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
opcode.inc Update to 1.0 Rev 2 work-in-progress headers 2015-11-12 09:43:12 -05:00
opencl_std_ext_inst.inc Update to 1.0 Rev 2 work-in-progress headers 2015-11-12 09:43:12 -05:00
operand.cpp Remove old names for enums: memory semantics, scope ID 2015-11-18 15:56:38 -05:00
operand.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
print.cpp Merge pull request #23. 2015-11-23 01:42:46 -05:00
print.h Put DiagnosticStream and clr exports in libspirv namespace 2015-11-20 10:46:42 -05:00
spirv_constant.h Bottom byte of version header word should be 0 2015-11-18 15:19:43 -05:00
spirv_definition.h Support capabilities StorageImageReadWithoutFormat 2015-11-12 16:27:51 -05:00
spirv_operands.h libspirv.h doesn't depend on spirv_operands.hpp anymore. 2015-11-12 09:43:26 -05:00
syntax_tables.patch Add OpenCL extended instructions. 2015-10-26 12:55:33 -04:00
table.cpp Use opaque context object to hold SPIR-V info tables. 2015-11-12 16:27:51 -05:00
table.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
text_handler.cpp Merge pull request #23. 2015-11-23 01:42:46 -05:00
text_handler.h Fix many typos. 2015-11-13 12:35:43 -06:00
text.cpp Merge pull request #23. 2015-11-23 01:42:46 -05:00
text.h Use Google comment style and fix typos. 2015-11-16 17:25:43 -05:00
validate_id.cpp Merge pull request #23. 2015-11-23 01:42:46 -05:00
validate.cpp Remove old names for enums: memory semantics, scope ID 2015-11-18 15:56:38 -05:00
validate.h Use quotation for libspirv.h and sort headers. 2015-11-12 09:43:01 -05:00