Skip to content

Commit

Permalink
Add "aliases" fields to the grammar and remove duplicated (#447)
Browse files Browse the repository at this point in the history
* Add "aliases" fields to the grammar

Promotion of extensions lead to duplicated entries.
The patch introduce a new entry "aliases" to the grammar.
It is a list of strings, where each string is an alternative name for the token,
and applies on instructions and operand kind's enumerants.
The grammar is updated to use the fields and all duplicated were removed.

The header generator now processes the aliases when generating the headers to account for the change.
This ensure the generated headers doesn't change.

* Update grammar for SPV_EXT_optnone / SPV_INTEL_optnone
  • Loading branch information
Naghasan authored Oct 9, 2024
1 parent a62b032 commit d92cf88
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 823 deletions.
Loading

0 comments on commit d92cf88

Please sign in to comment.