Use the JSON grammar file to generate various info tables.
authorLei Zhang <antiagainst@google.com>
Mon, 21 Mar 2016 20:36:14 +0000 (16:36 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 1 Apr 2016 17:18:42 +0000 (13:18 -0400)
commit4f293b7139002bd417d7153d886b2fae22d6b7ed
treeb109042d8bfbb0dde490bcc454ca8699de22fc9a
parenta1de2b37c7dfb77c75112414e436dbfe9736d788
Use the JSON grammar file to generate various info tables.

This patch uses a Python script to parse the JSON grammar file to
generate the opcode table and operand kind tables.

Now we don't need to do the post-processing (from OperandClass
to spv_operand_type_t) and copying of the opcode info table is
not required anymore!
CMakeLists.txt
source/CMakeLists.txt
source/grammar.json [new file with mode: 0644]
source/opcode.cpp
source/opcode.inc [deleted file]
source/operand.cpp
source/spirv_operands.h [deleted file]
source/table.cpp
source/table.h
test/OpcodeRequiresCapabilities.cpp
utils/generate_grammar_tables.py [new file with mode: 0755]