}
}
-vec4_live_variables::vec4_live_variables(const simple_allocator &alloc,
- cfg_t *cfg)
- : alloc(alloc), cfg(cfg)
+vec4_live_variables::vec4_live_variables(const backend_shader *s)
+ : alloc(s->alloc), cfg(s->cfg)
{
mem_ctx = ralloc_context(NULL);
* The control flow-aware analysis was done at a channel level, while at
* this point we're distilling it down to vgrfs.
*/
- this->live_intervals = new(mem_ctx) vec4_live_variables(alloc, cfg);
+ this->live_intervals = new(mem_ctx) vec4_live_variables(this);
}
void
#include "brw_ir_vec4.h"
#include "util/bitset.h"
+struct backend_shader;
+
namespace brw {
class vec4_live_variables {
DECLARE_RALLOC_CXX_OPERATORS(vec4_live_variables)
- vec4_live_variables(const simple_allocator &alloc, cfg_t *cfg);
+ vec4_live_variables(const backend_shader *s);
~vec4_live_variables();
int num_vars;