nir: add a helper for iterating over blocks in a cf node
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 8 May 2015 18:40:58 +0000 (14:40 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Sep 2015 07:58:17 +0000 (00:58 -0700)
commit019eea1c4fadaa86ce88ab81ac2f14613381738b
tree42fcb27563328311e57dd3e4b29d58034d93bbc5
parent89dc0626bd71343312049bdca291704cb2f7fffe
nir: add a helper for iterating over blocks in a cf node

We were already doing this internally for iterating over a function
implementation, so just expose it directly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.c
src/glsl/nir/nir.h