nir: Add an interface for the builder to insert instructions before.
authorEric Anholt <eric@anholt.net>
Fri, 27 Mar 2015 21:18:54 +0000 (14:18 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 3 Apr 2015 18:50:18 +0000 (11:50 -0700)
commitec029702054ddc4e098ebb96e76c7451190d649f
tree7b88c051db503085ca7948fbb7b03801b3d3b010
parent328375d2742a3394dc481fc5fae6c4a5d797b4e7
nir: Add an interface for the builder to insert instructions before.

So far we'd only used nir_builder to build brand new programs.  But if
we're doing modifications to instructions (like in a lowering pass), then
we want to generate new stuff before the instruction we're modifying.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_builder.h