FreeTensor
Loading...
Searching...
No Matches
clear_mark_version.h
Go to the documentation of this file.
1#ifndef FREE_TENSOR_CLEAR_MARK_VERSION_H
2#define FREE_TENSOR_CLEAR_MARK_VERSION_H
3
4#include <func.h>
5#include <mutator.h>
7
8namespace freetensor {
9
10class ClearMarkVersion : public Mutator {
11 protected:
12 Stmt visit(const MarkVersion &op) { return makeStmtSeq({}); }
13};
14
15inline Stmt clearMarkVersion(const Stmt &op) {
16 return flattenStmtSeq(ClearMarkVersion{}(op));
17}
18
20
21} // namespace freetensor
22
23#endif // FREE_TENSOR_CLEAR_MARK_VERSION_H
Definition: clear_mark_version.h:10
Stmt visit(const MarkVersion &op)
Definition: clear_mark_version.h:12
Definition: mutator.h:11
#define DEFINE_PASS_FOR_FUNC(pass)
Definition: func.h:88
Definition: allocator.h:9
Stmt flattenStmtSeq(const Stmt &op)
Definition: flatten_stmt_seq.h:29
Stmt makeStmtSeq(Tstmts &&stmts, const Metadata &metadata=nullptr, const ID &id={}, std::source_location loc=std::source_location::current())
Definition: stmt.h:51
Stmt clearMarkVersion(const Stmt &op)
Definition: clear_mark_version.h:15