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

#include <func.h>

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

Public Member Functions

bool isFunc () const override
 
void compHash () override
 
 DEFINE_NODE_TRAIT (Func)
 
- 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 name_
 
std::vector< FuncParamparams_
 
std::vector< FuncRetreturns_
 
SubTree< StmtNodebody_ = ChildOf{this}
 

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
 

Member Function Documentation

◆ compHash()

void freetensor::FuncNode::compHash ( )
inlineoverridevirtual

Implements freetensor::ASTPart.

◆ DEFINE_NODE_TRAIT()

freetensor::FuncNode::DEFINE_NODE_TRAIT ( Func  )

◆ isFunc()

bool freetensor::FuncNode::isFunc ( ) const
inlineoverridevirtual

Reimplemented from freetensor::ASTNode.

Member Data Documentation

◆ body_

SubTree<StmtNode> freetensor::FuncNode::body_ = ChildOf{this}

◆ name_

std::string freetensor::FuncNode::name_

◆ params_

std::vector<FuncParam> freetensor::FuncNode::params_

◆ returns_

std::vector<FuncRet> freetensor::FuncNode::returns_

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