diff options
author | Paul Berry <[email protected]> | 2013-11-28 10:42:01 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-12-09 10:54:13 -0800 |
commit | 2e060551bdfb3f5019f64696f268675a3550927c (patch) | |
tree | 7597ef10ade32bacee5b8a6302e80e0f74d86a10 /src/glsl/loop_analysis.h | |
parent | 69c44d65c8f2846ede6733765508c2b4702173de (diff) |
glsl: Extract functions from loop_analysis::visit(ir_dereference_variable *).
This function is about to get more complex.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/loop_analysis.h')
-rw-r--r-- | src/glsl/loop_analysis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h index 98414b3c614..4fae829c3ab 100644 --- a/src/glsl/loop_analysis.h +++ b/src/glsl/loop_analysis.h @@ -67,6 +67,7 @@ class loop_variable_state : public exec_node { public: class loop_variable *get(const ir_variable *); class loop_variable *insert(ir_variable *); + class loop_variable *get_or_insert(ir_variable *, bool in_assignee); class loop_terminator *insert(ir_if *); @@ -212,6 +213,9 @@ public: return is_const; } + + void record_reference(bool in_assignee, bool in_conditional_code, + ir_assignment *current_assignment); }; |