ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
nnc::ArtifactRet Class Reference

Just represents return from function statement. More...

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactRet:

Public Member Functions

 ArtifactRet (std::shared_ptr< ArtifactExpr > expr)
 
void accept (IArtifactGenerator *g) const override
 This is the core function of each artifact entity and is implemented by all concrete classes in the hierarchy.
 
std::shared_ptr< ArtifactExprexpr () const
 
- Public Member Functions inherited from nnc::ArtifactEntity
virtual ~ArtifactEntity ()=default
 
virtual bool isBlock () const
 If this entity represents something containing a block of instructions.
 

Additional Inherited Members

- Protected Member Functions inherited from nnc::ArtifactEntity
 ArtifactEntity ()=default
 

Detailed Description

Just represents return from function statement.

Definition at line 291 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactRet()

nnc::ArtifactRet::ArtifactRet ( std::shared_ptr< ArtifactExpr expr)
inlineexplicit

Definition at line 294 of file ArtifactModel.h.

294: _expr(std::move(expr)) {}
std::shared_ptr< ArtifactExpr > expr() const

Member Function Documentation

◆ accept()

void nnc::ArtifactRet::accept ( IArtifactGenerator g) const
inlineoverridevirtual

This is the core function of each artifact entity and is implemented by all concrete classes in the hierarchy.

Implements nnc::ArtifactEntity.

Definition at line 296 of file ArtifactModel.h.

296{ g->visit(this); }

Referenced by TEST().

◆ expr()

std::shared_ptr< ArtifactExpr > nnc::ArtifactRet::expr ( ) const
inline

Definition at line 298 of file ArtifactModel.h.

298{ return _expr; }

Referenced by nnc::ArtifactGeneratorCppCode::visit().


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