FreeTensor
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1#ifndef FREE_TENSOR_DEBUG_H
2#define FREE_TENSOR_DEBUG_H
3
4#include <string>
5
6// Include minimal headers
7
8#include <ast.h>
9#include <debug/logger.h>
10
11namespace freetensor {
12
13// Explicitly declare some functions, but not include their headers
14
15std::string toString(const AST &op);
16std::string toString(const AST &op, bool pretty);
17std::string toString(const AST &op, bool pretty, bool printAllId);
18
19std::ostream &operator<<(std::ostream &os, const AST &op);
20
21bool match(const Stmt &pattern, const Stmt &instance);
22
23void checkConflictId(const Stmt &ast);
24
25} // namespace freetensor
26
27#endif // FREE_TENSOR_DEBUG_H
Definition: allocator.h:9
std::string toString(const AST &op)
Definition: print_ast.cc:784
Ref< ASTNode > AST
Definition: ast.h:149
void checkConflictId(const Stmt &ast)
Definition: check_conflict_id.cc:29
bool match(const Stmt &pattern, const Stmt &instance)
Definition: match_ast.cc:596
Ref< StmtNode > Stmt
Definition: ast.h:152
std::ostream & operator<<(std::ostream &os, const Dependence &dep)
Definition: deps.cc:1404