ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnc::ArtifactUnaryExpr Class Reference

#include <ArtifactModel.h>

Collaboration diagram for nnc::ArtifactUnaryExpr:

Public Member Functions

 ArtifactUnaryExpr (ArtifactUnOp op, 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.
 
ArtifactUnOp getOp () const
 
std::shared_ptr< ArtifactExprgetExpr () 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

Definition at line 203 of file ArtifactModel.h.

Constructor & Destructor Documentation

◆ ArtifactUnaryExpr()

nnc::ArtifactUnaryExpr::ArtifactUnaryExpr ( ArtifactUnOp  op,
std::shared_ptr< ArtifactExpr expr 
)
inline

Definition at line 206 of file ArtifactModel.h.

207 : _op(op), _expr(std::move(expr))
208 {
209 }

Member Function Documentation

◆ accept()

void nnc::ArtifactUnaryExpr::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 211 of file ArtifactModel.h.

211{ g->visit(this); }

◆ getExpr()

std::shared_ptr< ArtifactExpr > nnc::ArtifactUnaryExpr::getExpr ( ) const
inline

Definition at line 214 of file ArtifactModel.h.

214{ return _expr; }

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

◆ getOp()

ArtifactUnOp nnc::ArtifactUnaryExpr::getOp ( ) const
inline

Definition at line 213 of file ArtifactModel.h.

213{ return _op; }

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


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