nir: Add a pass for selectively lowering variables to scratch space
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Dec 2016 19:36:42 +0000 (11:36 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2019 22:59:31 +0000 (15:59 -0700)
commit18ed82b084c79bf63666f2da22e5d675fb01aa26
treedfb02920970472c7158b2bba889ad05a8ab10c0e
parent8a2d91e1248e31426ff656c02d3e598f9e117422
nir: Add a pass for selectively lowering variables to scratch space

This commit adds new nir_load/store_scratch opcodes which read and write
a virtual scratch space.  It's up to the back-end to figure out what to
do with it and where to put the actual scratch data.

v2: Drop const_index comments (by anholt)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_io.c
src/compiler/nir/nir_lower_scratch.c [new file with mode: 0644]
src/compiler/nir/nir_print.c
src/compiler/nir/nir_serialize.c