nir: Add test file for vars related passes
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 29 Aug 2018 23:30:09 +0000 (16:30 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 16 Oct 2018 00:29:46 +0000 (17:29 -0700)
commitbbda2a17f76113b9a6d5b4e3ecc91cdfa9e136a1
treedff84e0f8dbe7a903123022b0d6ae1655da1e7ee
parentc869646b7dae59d5f5d0bb718029713a85f95c6f
nir: Add test file for vars related passes

Add basic helpers for doing tests on the vars related optimization
passes.  The main goal is to lower the barrier to create tests during
development and debugging of the passes.  Full coverage is not a
requirement.

v2: Make find_next_intrinsic() skip blocks before 'after'. (Jason)
    Move nir_imm_ivec2() to nir_builder.h. (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/Makefile.nir.am
src/compiler/nir/meson.build
src/compiler/nir/tests/vars_tests.cpp [new file with mode: 0644]