FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
freetensor::AllocNode Class Reference

#include <stmt.h>

Inheritance diagram for freetensor::AllocNode:
Inheritance graph
[legend]
Collaboration diagram for freetensor::AllocNode:
Collaboration graph
[legend]

Public Member Functions

void compHash () override
 
 DEFINE_NODE_TRAIT (Alloc)
 
- Public Member Functions inherited from freetensor::StmtNode
void setId (const ID &id=ID::make())
 
ID id () const
 
const Metadatametadata () const
 
Metadatametadata ()
 
bool isStmt () const override
 
virtual bool isCtrlFlow () const
 
virtual std::vector< Ref< StmtNode > > children () const
 
Ref< StmtNodeprevLeafStmtInDFSOrder () const
 
Ref< StmtNodenextLeafStmtInDFSOrder () const
 
Ref< StmtNodeprevStmtInDFSPostOrder () const
 
Ref< StmtNodenextStmtInDFSPreOrder () const
 
Ref< StmtNodeancestorById (const ID &lookup) const
 
bool isAncestorOf (const Stmt &other) const
 
bool isBefore (const Stmt &other) const
 
 DEFINE_NODE_ACCESS (Stmt)
 
Ref< StmtNodeparentStmt () const
 
Ref< StmtNodeparentStmtByFilter (const std::function< bool(const Stmt &)> &filter) const
 
Ref< StmtNodeprevStmt () const
 
Ref< StmtNodenextStmt () const
 
Ref< StmtNodeparentCtrlFlow () const
 
Ref< StmtNodeprevInCtrlFlow () const
 
Ref< StmtNodenextInCtrlFlow () const
 
- Public Member Functions inherited from freetensor::ASTNode
virtual ~ASTNode ()
 
virtual ASTNodeType nodeType () const =0
 
bool isAST () const override
 
virtual bool isFunc () const
 
virtual bool isStmt () const
 
virtual bool isExpr () const
 
Ref< ASTNodeparentAST () const
 
std::source_location debugBlame () const
 
void setDebugBlame (std::source_location loc)
 
 DEFINE_NODE_ACCESS (AST)
 
- Public Member Functions inherited from freetensor::ASTPart
virtual ~ASTPart ()
 
 ASTPart (ASTPart &&other)
 
 ASTPart (const ASTPart &other)
 
ASTPartoperator= (ASTPart &&)
 
ASTPartoperator= (const ASTPart &)
 
bool trySetParent (const Ref< ASTPart > &parent)
 
void resetParent ()
 
Ref< ASTPartparent () const
 
bool isSubTree () const
 
int depth () const
 
virtual void modifiedHook ()
 
size_t hash ()
 
virtual bool isAST () const
 
- Public Member Functions inherited from freetensor::EnableSelf< ASTPart >
Ref< ASTPartself () const
 

Public Attributes

std::string var_
 

Additional Inherited Members

- Public Types inherited from freetensor::EnableSelf< ASTPart >
typedef ASTPart Self
 
- Protected Member Functions inherited from freetensor::ASTPart
void lock ()
 
void unlock ()
 
virtual void compHash ()=0
 
void resetHash ()
 
- Protected Attributes inherited from freetensor::ASTPart
size_t hash_ = ~0ull
 
std::atomic_flag lock_ = ATOMIC_FLAG_INIT
 

Detailed Description

Explicit memory allocation

Only used for variables with .../heap memory types

Member Function Documentation

◆ compHash()

void freetensor::AllocNode::compHash ( )
overridevirtual

Implements freetensor::ASTPart.

◆ DEFINE_NODE_TRAIT()

freetensor::AllocNode::DEFINE_NODE_TRAIT ( Alloc  )

Member Data Documentation

◆ var_

std::string freetensor::AllocNode::var_

The documentation for this class was generated from the following files: