#ifndef BRW_FS_LIVE_VARIABLES_H
#define BRW_FS_LIVE_VARIABLES_H
+#include "brw_ir_analysis.h"
#include "brw_ir_fs.h"
#include "util/bitset.h"
BITSET_WORD flag_liveout[1];
};
- DECLARE_RALLOC_CXX_OPERATORS(fs_live_variables)
-
fs_live_variables(const backend_shader *s);
~fs_live_variables();
+ bool validate(const backend_shader *s) const;
+
+ analysis_dependency_class
+ dependency_class() const
+ {
+ return (DEPENDENCY_INSTRUCTION_IDENTITY |
+ DEPENDENCY_INSTRUCTION_DATA_FLOW |
+ DEPENDENCY_VARIABLES);
+ }
+
bool vars_interfere(int a, int b) const;
bool vgrfs_interfere(int a, int b) const;
int var_from_reg(const fs_reg ®) const
protected:
void setup_def_use();
- void setup_one_read(struct block_data *bd, fs_inst *inst, int ip,
- const fs_reg ®);
+ void setup_one_read(struct block_data *bd, int ip, const fs_reg ®);
void setup_one_write(struct block_data *bd, fs_inst *inst, int ip,
const fs_reg ®);
void compute_live_variables();