1#ifndef FREE_TENSOR_NORMALIZE_LOOPS_H
2#define FREE_TENSOR_NORMALIZE_LOOPS_H
5#include <unordered_set>
15 std::function<bool(
const For &)> filter_;
16 std::unordered_set<For> filteredIn_;
34 const std::function<
bool(
const For &)> &
filter =
nullptr);
Definition: normalize_loops.h:12
NormalizeLoops(const std::function< bool(const For &)> &filter=nullptr)
Definition: normalize_loops.h:19
Expr visit(const Var &op) override
Definition: normalize_loops.cc:6
Definition: symbol_table.h:122
BaseClass::StmtRetType visit(const VarDef &op) override
Definition: symbol_table.h:167
Definition: allocator.h:9
Ref< ForNode > For
Definition: stmt.h:308
std::vector< T > filter(const std::vector< T > &vec, const U &callback)
Definition: container_utils.h:131
Ref< StmtNode > Stmt
Definition: ast.h:152
Stmt normalizeLoops(const Stmt &op, const std::function< bool(const For &)> &filter=nullptr)
Definition: normalize_loops.cc:31