spirv: Add a prepass to set types on vtn_values
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Dec 2017 06:31:02 +0000 (22:31 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Dec 2017 06:28:34 +0000 (22:28 -0800)
commitbb1e6ff161c9a438243392ca2cbebac781293658
tree550b04c7a8ff34e4fc4eaa2304422829d23cb512
parent2c84b49ddff2c03a9a1f2d1e132d4002fd7c070b
spirv: Add a prepass to set types on vtn_values

This autogenerated pass will automatically find and set the type field
on all vtn_values.  This way we always have the type and can use it for
validation and other checks.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/Makefile.nir.am
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_gather_types_c.py [new file with mode: 0644]
src/compiler/spirv/vtn_private.h