Header generator: Check enumerant ordering
authorDavid Neto <dneto@google.com>
Wed, 20 Jan 2021 02:20:44 +0000 (21:20 -0500)
committerDavid Neto <dneto@google.com>
Wed, 27 Jan 2021 20:46:02 +0000 (15:46 -0500)
commite50154dbd6a3fef9b7d79c9d45243917914ee23a
tree06e5f95f7ffc77960a71f689f0b61fa56f99195a
parentfaa570afbc91ac73d594d787486bcf8f2df1ace0
Header generator: Check enumerant ordering

In the grammar, enforce ordering rules:
- Instructions must appear in order of their opcode
- Non-instructions: each successive enumerant within a single kind must
  appear in order

- Reorder enumerants Subgroup*MaskKHR enums to satisfy the rule.
include/spirv/unified1/spirv.core.grammar.json
include/spirv/unified1/spirv.cs
include/spirv/unified1/spirv.h
include/spirv/unified1/spirv.hpp
tools/buildHeaders/jsonToSpirv.cpp