i965/cfg: Keep pointers to IF/ELSE/ENDIF instructions in the cfg.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_cfg.h
index e667d2271b6ac773e43b4c5be1ca186ff5f82672..ad54f869883140102c09c85a0d2e75d61a988395 100644 (file)
@@ -57,6 +57,16 @@ public:
    exec_list parents;
    exec_list children;
    int block_num;
+
+   /* If the current basic block ends in an IF, ELSE, or ENDIF instruction,
+    * these pointers will hold the locations of the other associated control
+    * flow instructions.
+    *
+    * Otherwise they are NULL.
+    */
+   backend_instruction *if_inst;
+   backend_instruction *else_inst;
+   backend_instruction *endif_inst;
 };
 
 class cfg_t {