nir: check NIR_SKIP to skip passes by name
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 17 Jan 2019 21:06:04 +0000 (13:06 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 18 Jan 2019 20:31:49 +0000 (12:31 -0800)
commitcd56d79b59f367ef0c52d76fc5d37ecc87d0e84b
treede65d3d92fa4af45e2ba98663cbc459e90144836
parent1952fd8d2ce90586bc20c0f24593b00604eb1592
nir: check NIR_SKIP to skip passes by name

Passes' function names, separated by comma, listed in NIR_SKIP
environment variable will be skipped in debug mode.  The mechanism is
hooked into the _PASS macro, like NIR_PRINT.

The extra macro NIR_SKIP is available as a developer convenience, to
skip at pointer other than the passes entry points.

v2: Fix typo in NIR_SKIP macro. (Bas)

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir.h
src/util/debug.c
src/util/debug.h