nir: Document some fields of nir_loop_terminator
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 16 Jan 2019 19:34:35 +0000 (11:34 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Feb 2019 18:37:06 +0000 (10:37 -0800)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir.h

index 8e0d285e2f274e8458b5d4f770af76cf6332e618..264e8cfee8342456cb10ead170da10fe19e12309 100644 (file)
@@ -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;