1#ifndef FREE_TENSOR_SPLIT_H
2#define FREE_TENSOR_SPLIT_H
14 ID src_, dst0_, dst1_;
15 int factor_ = -1, nparts_ = -1, shift_ = 0;
17 std::string iterFrom_;
23 Splitter(
const ID &
id,
int factor = -1,
int nparts = -1,
int shift = 0)
24 : src_(id), factor_(factor), nparts_(nparts), shift_(shift) {}
28 bool found()
const {
return found_; }
36std::pair<Stmt, std::pair<ID, ID>>
split(
const Stmt &ast,
const ID &
id,
37 int factor,
int nparts,
int shift = 0);
Splitter(const ID &id, int factor=-1, int nparts=-1, int shift=0)
Definition: split.h:23
const ID & innerId() const
Definition: split.h:27
const ID & outerId() const
Definition: split.h:26
Stmt visit(const For &op) override
Definition: split.cc:13
bool found() const
Definition: split.h:28
Definition: symbol_table.h:122
BaseClass::StmtRetType visit(const VarDef &op) override
Definition: symbol_table.h:167
Definition: allocator.h:9
Ref< StmtNode > Stmt
Definition: ast.h:152
std::pair< Stmt, std::pair< ID, ID > > split(const Stmt &ast, const ID &id, int factor, int nparts, int shift=0)
Definition: split.cc:90