Generator word now has two 16-bit components
authorDavid Neto <dneto@google.com>
Thu, 12 Nov 2015 23:33:47 +0000 (18:33 -0500)
committerDavid Neto <dneto@google.com>
Fri, 13 Nov 2015 18:35:29 +0000 (12:35 -0600)
commit14b93e49ed7638c2ac6dc17a3a95aeb4d7d9506b
treee105124461d7a50aa4d9b5a44b20ec7d6916ba1f
parent5f7ed91e18472f3508734dd09f0f4e75551fe52d
Generator word now has two 16-bit components

The high 16-bits are a registered generator tool.
These are registered at
https://www.khronos.org/registry/spir-v/api/spir-v.xml

The low 16-bits are tool-specific.  It might be a version number,
for example, but is not constrained by the spec or by the registration
process.

The disassembler prints the tool name when we know it.
If we don't, print "Unknown" and then the numeric tool number
in parentheses.
In all cases, the disassembler prints lower 16-bit number on the
same line but after the tool name.

Also add newly registered generators:
  6: Khronos LLVM/SPIR-V Translator
  7: Khronos SPIR-V Tools Assembler
source/disassemble.cpp
source/opcode.cpp
source/spirv_constant.h
source/text.cpp
test/BinaryToText.cpp
test/ExtInstGLSLstd450.cpp
test/GeneratorMagicNumber.cpp