[BACKEND][CODE_GEN] eviction policies now also apply to L2 (#501)

This commit is contained in:
Philippe Tillet
2022-04-21 23:56:01 -07:00
committed by GitHub
parent 7d6c504e8d
commit 0cc3b1129b
2 changed files with 27 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#define _TRITON_SELECTION_GENERATOR_H_
#include "triton/ir/visitor.h"
#include "triton/ir/instructions.h"
#include "triton/codegen/analysis/layout.h"
#include <functional>
@@ -261,6 +262,9 @@ private:
/// Record prefetch instrs that needs to be moved
std::map<ir::value*, std::vector<Value*>> prefetch_latch_to_bb_;
// Eviction policies
std::map<ir::load_inst::EVICTION_POLICY, Value*> policies_;
};
}