intel/compiler: Pass single backend_shader argument to the fs_live_variables constructor
This removes the dependency of fs_live_variables on fs_visitor. The IR analysis framework requires the analysis result to be constructible with a single argument -- The second argument was redundant anyway. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
This commit is contained in:

committed by
Matt Turner

parent
d7e84cbb0f
commit
d0433971f9
@@ -32,7 +32,7 @@
|
||||
#include "util/bitset.h"
|
||||
|
||||
struct cfg_t;
|
||||
class fs_visitor;
|
||||
struct backend_shader;
|
||||
|
||||
namespace brw {
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
|
||||
DECLARE_RALLOC_CXX_OPERATORS(fs_live_variables)
|
||||
|
||||
fs_live_variables(fs_visitor *v, const cfg_t *cfg);
|
||||
fs_live_variables(const backend_shader *s);
|
||||
~fs_live_variables();
|
||||
|
||||
bool vars_interfere(int a, int b) const;
|
||||
@@ -130,10 +130,9 @@ protected:
|
||||
void compute_live_variables();
|
||||
void compute_start_end();
|
||||
|
||||
fs_visitor *v;
|
||||
const struct gen_device_info *devinfo;
|
||||
const cfg_t *cfg;
|
||||
void *mem_ctx;
|
||||
|
||||
};
|
||||
|
||||
} /* namespace brw */
|
||||
|
Reference in New Issue
Block a user