Remove dependency on SPIR-V headers in libspirv.h.
authorLei Zhang <antiagainst@google.com>
Thu, 31 Mar 2016 21:26:31 +0000 (17:26 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 4 Apr 2016 14:34:28 +0000 (10:34 -0400)
commit6fa3f8aad99931a69d5c1f20077076e22b479f5f
tree4fe91b5ffc88ce8bb54d764365c4d2d54aa411f4
parentd03c0a11533310e8b5ade72568588c53d7fb243f
Remove dependency on SPIR-V headers in libspirv.h.

For fulfilling this purpose, the |opcode| field in the
|spv_parsed_instruction_t| struct is changed to of type uint16_t.

Also add functions to query the information of a given SPIR-V
target environment.
31 files changed:
CMakeLists.txt
include/spirv-tools/libspirv.h
source/CMakeLists.txt
source/assembly_grammar.h
source/binary.cpp
source/disassemble.cpp
source/ext_inst.cpp
source/opcode.cpp
source/opcode.h
source/spirv_constant.h
source/spirv_definition.h
source/spirv_target_env.cpp [moved from test/Version.cpp with 57% similarity]
source/table.cpp
source/table.h
source/text.cpp
source/validate.cpp
source/validate_cfg.cpp
source/validate_id.cpp
source/validate_instruction.cpp
source/validate_layout.cpp
source/validate_ssa.cpp
test/BinaryParse.cpp
test/BinaryToText.cpp
test/CMakeLists.txt
test/ExtInst.OpenCL.std.cpp
test/ExtInstGLSLstd450.cpp
test/OpcodeSplit.cpp
test/TextToBinary.Extension.cpp
tools/as/as.cpp
tools/dis/dis.cpp
tools/val/val.cpp