SPIRV-Tools/source
David Neto 39fa148234 OpDecorate should not accept any number of literal operands.
This is a grammar fix.  The Decoration operand of OpDecorate (and
OpMemberDecorate) determines the remaining operands.  Don't just
allow any number of literal numbers as operands.

(The OperandVariableLiterals operand class as the last member
of the OpDecorate and OpMemberDecorate entries in in opcode.inc is
an artifact of how the spec generates the opcode descriptions. It's
not suitable for parsing those instructions.)

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/34
2015-12-01 15:38:32 -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 spvBinaryParse: fix overruns, handle image format 2015-11-30 10:44:23 -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 spvBinaryParse: fix overruns, handle image format 2015-11-30 10:44:23 -05:00
endian.cpp Aliasing through a union member is valid. 2015-11-23 15:35:00 -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 OpDecorate should not accept any number of literal operands. 2015-12-01 15:38:32 -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 spvBinaryParse: fix overruns, handle image format 2015-11-30 10:44:23 -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 spvBinaryParse: fix overruns, handle image format 2015-11-30 10:44:23 -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