glsl: Extract functions from loop_analysis::visit(ir_dereference_variable *).

This function is about to get more complex.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Paul Berry
2013-11-28 10:42:01 -08:00
parent 69c44d65c8
commit 2e060551bd
2 changed files with 71 additions and 25 deletions

View File

@@ -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);
};