i965/cfg: Document cur_* variables.
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Dec 2013 18:29:49 +0000 (10:29 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Dec 2013 04:05:42 +0000 (20:05 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_cfg.cpp

index 3213e03a480ba2778ae963e30cd65a2b600931ef..32ba4a4cdcc5b0a8e1791b065fbdf26bd4b1dcd2 100644 (file)
@@ -88,8 +88,11 @@ cfg_t::cfg_t(exec_list *instructions)
    int ip = 0;
 
    bblock_t *entry = new_block();
-   bblock_t *cur_if = NULL, *cur_else = NULL, *cur_endif = NULL;
-   bblock_t *cur_do = NULL, *cur_while = NULL;
+   bblock_t *cur_if = NULL;    /**< BB ending with IF. */
+   bblock_t *cur_else = NULL;  /**< BB ending with ELSE. */
+   bblock_t *cur_endif = NULL; /**< BB starting with ENDIF. */
+   bblock_t *cur_do = NULL;    /**< BB ending with DO. */
+   bblock_t *cur_while = NULL; /**< BB immediately following WHILE. */
    exec_list if_stack, else_stack, do_stack, while_stack;
    bblock_t *next;