summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2019-01-16 11:34:35 -0800
committerIan Romanick <[email protected]>2019-02-08 10:37:06 -0800
commit4d65d2b12ee261a3e37f197bcf5c4ac1807fc9d1 (patch)
treed76126cd20aabaf07c8aef545c9c624a3c12a80a
parent28ef5bb74ce1da9beff61b6b9b4a6f6cb41f4435 (diff)
nir: Document some fields of nir_loop_terminator
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/compiler/nir/nir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 8e0d285e2f2..264e8cfee83 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1904,11 +1904,16 @@ typedef struct nir_if {
typedef struct {
nir_if *nif;
+ /** Instruction that generates nif::condition. */
nir_instr *conditional_instr;
+ /** Block within ::nif that has the break instruction. */
nir_block *break_block;
+
+ /** Last block for the then- or else-path that does not contain the break. */
nir_block *continue_from_block;
+ /** True when ::break_block is in the else-path of ::nif. */
bool continue_from_then;
struct list_head loop_terminator_link;