|
FreeTensor
|
#include <ast.h>
Public Member Functions | |
| StmtOrExprID () | |
| StmtOrExprID (const ID &stmtId) | |
| StmtOrExprID (const Expr &expr, const ID &stmtId) | |
| template<std::convertible_to< Stmt > T> | |
| StmtOrExprID (const Expr &expr, T &&parent) | |
| const ID & | stmtId () const |
| const Expr & | expr () const |
| bool | isValid () const |
Friends | |
| struct | ::std::hash< StmtOrExprID > |
| std::ostream & | operator<< (std::ostream &os, const StmtOrExprID &id) |
| bool | operator== (const StmtOrExprID &lhs, const StmtOrExprID &rhs) |
Identify an Stmt or Expr acrossing passes, so we do not need to pass pointers
An Expr is identified by the hash of itself, combined with the string-typed ID of the Stmt its in, so that any identical Expr in the same Stmt is treated as the same node
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |