SPIRV-Tools/utils
Lei Zhang 1ef6b19260 Migrate to use unified grammar tables
Previously we keep a separate static grammar table for opcodes/
operands per SPIR-V version. This commit changes that to use a
single unified static grammar table for opcodes/operands.

This essentially changes how grammar facts are queried against
a certain target environment. There are only limited filtering
according to the desired target environment; a symbol is
considered as available as long as:

1. The target environment satisfies the minimal requirement of
   the symbol; or
2. There is at least one extension enabling this symbol.

Note that the second rule assumes the extension enabling the
symbol is indeed requested in the SPIR-V code; checking that
should be the validator's work.

Also fixed a few grammar related issues:
* Rounding mode capability requirements are moved to client APIs.
* Reserved symbols not available in any extension is no longer
  recognized by assembler.
2018-03-17 15:25:26 -04:00
..
check_code_format.sh Travis CI: add clang-format check 2017-12-05 08:02:33 -05:00
check_copyright.py Initial implementation of if conversion 2018-01-25 09:42:00 -08:00
check_symbol_exports.py Test for pollution of the global namespace 2017-11-23 21:27:21 -05:00
generate_grammar_tables.py Migrate to use unified grammar tables 2018-03-17 15:25:26 -04:00
generate_language_headers.py Add asm, dis support for DebugInfo extended instruction set 2017-12-22 09:39:36 -05:00
generate_registry_tables.py Get vendor tool info from the SPIR-V registry file 2016-12-09 14:01:43 -05:00
generate_vim_syntax.py Fix generation of Vim syntax file 2018-02-09 17:47:51 -05:00
update_build_version.py Do nothing if trying to make the current dir 2017-03-20 11:23:35 -04:00