Handle capabilities larger than value 63
authorDavid Neto <dneto@google.com>
Mon, 29 Aug 2016 18:49:00 +0000 (14:49 -0400)
committerDavid Neto <dneto@google.com>
Tue, 30 Aug 2016 19:41:39 +0000 (15:41 -0400)
commit273920c55407751940195393e0152d8155aa5b7a
tree5b702c4e38d49bf8820c4fc5dd695af0570440b8
parent47f2a1414bf39de531f764e08faefafc91efd7d9
Handle capabilities larger than value 63

Use libspirv::CapabilitySet instead of a 64-bit mask.

Remove dead function spvOpcodeRequiresCapability and its tests.

The JSON grammar parser is simplified since it just writes the
list of capabilities as a braced list, and takes advantage of
the CapabilitySet intializer-list constructor.
12 files changed:
source/opcode.cpp
source/opcode.h
source/spirv_definition.h
source/table.h
source/val/ValidationState.cpp
source/val/ValidationState.h
source/validate_cfg.cpp
source/validate_instruction.cpp
test/OpcodeRequiresCapabilities.cpp
test/OperandCapabilities.cpp
test/ValidationState.cpp
utils/generate_grammar_tables.py