nir: Move nir_cursor to nir.h.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Aug 2015 17:01:31 +0000 (10:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Aug 2015 20:36:57 +0000 (13:36 -0700)
commitf90c6b1ce0d96c7dbdd32ab913d5c88913700ba2
tree94d3ffea7363d2a7edaa2d1f0ed2d0e662e8caeb
parentc44d50775209266b5c8bad0ab7a7c4ccd7db14a4
nir: Move nir_cursor to nir.h.

We want to use this for normal instruction insertion too, not just
control flow.  Generally these functions are going to be extremely
useful when working with NIR, so I want them to be widely available
without having to include a separate file.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Acked-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_control_flow.h