Rname grammar.json to spirv.core.grammar.json and add version info.

This commit is contained in:
Lei Zhang 2016-04-04 14:03:35 -04:00
parent 3fb2676d23
commit 9ca2d6dcd2
2 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,7 @@ add_custom_target(spirv-tools-build-version
add_custom_target(spirv-tools-build-tables
${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/utils/generate_grammar_tables.py
${spirv-tools_SOURCE_DIR}/source/grammar.json
${spirv-tools_SOURCE_DIR}/source/spirv.core.grammar.json
--opcode-file=${spirv-tools_BINARY_DIR}/opcode.inc
--operand-file=${spirv-tools_BINARY_DIR}/operand.inc
COMMENT "Generate info tables for SPIR-V instructions and operands.")

View File

@ -24,6 +24,9 @@
"FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS",
"IN THE MATERIALS."
],
"magic_number" : "0x07230203",
"version" : "0x00010000",
"revision" : 4,
"instructions" : [
{
"opname" : "OpNop",