summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index ba500dc773..d899fb1d09 100644
--- a/ast.h
+++ b/ast.h
@@ -572,6 +572,15 @@ public:
ast_expression *rest_expression;
ast_node *body;
+
+private:
+ /**
+ * Generate IR from the condition of a loop
+ *
+ * This is factored out of ::hir because some loops have the condition
+ * test at the top (for and while), and others have it at the end (do-while).
+ */
+ void condition_to_hir(class ir_loop *, struct _mesa_glsl_parse_state *);
};