[codegen] cleaning-up / formalizing shared-memory passes

This commit is contained in:
Philippe Tillet
2019-09-20 16:01:12 -04:00
parent e35be1ddcf
commit 43d88154bd
26 changed files with 229 additions and 117 deletions

View File

@@ -7,7 +7,7 @@
#include "triton/ir/instructions.h"
#include "triton/ir/module.h"
#include "triton/codegen/analysis/layout.h"
#include "triton/codegen/analysis/meminfo.h"
#include "triton/codegen/transform/cts.h"
#include "triton/codegen/analysis/align.h"
#include "triton/codegen/transform/coalesce.h"
@@ -15,7 +15,7 @@ namespace triton {
namespace codegen{
namespace transform{
coalesce::coalesce(analysis::align* align, analysis::layout *layouts, analysis::meminfo *mem)
coalesce::coalesce(analysis::align* align, analysis::layout *layouts, analysis::cts *mem)
: align_(align), layout_(layouts), mem_(mem) { }
// Find all values that are used as pointer operands in LD/ST
@@ -102,9 +102,6 @@ void coalesce::run(ir::module &mod) {
r->replace_all_uses_with(cts);
cts->replace_uses_of_with(cts, r);
}
else{
}
}
}