spirv: Handle instruction aliases in spirv_info_c.py
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 3 Apr 2019 19:45:22 +0000 (12:45 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 21 May 2019 18:50:47 +0000 (11:50 -0700)
commit4b474e2e8a43bd53656754ea284db9c97e3bf948
treed0ac9dbc58a23bfb8aa53188cc9b15ecd58be7ff
parent810b95e02c50eb991e22d0772cf283d25adf7dc4
spirv: Handle instruction aliases in spirv_info_c.py

Choose the first we see in the grammar file as the main one.  This is
needed to parse SPIR-V 1.4 because it introduced opcode aliases.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_info_c.py