ONE - On-device Neural Engine
|
Represents for loops. More...
#include <ArtifactModel.h>
Public Member Functions | |
ArtifactForLoop (std::shared_ptr< ArtifactVariable > init=nullptr, std::shared_ptr< ArtifactExpr > cond=nullptr, std::shared_ptr< ArtifactExpr > iter=nullptr) | |
bool | isBlock () const override |
If this entity represents something containing a block of instructions. | |
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< ArtifactVariable > | getInit () const |
std::shared_ptr< ArtifactExpr > | getCond () const |
std::shared_ptr< ArtifactExpr > | getIter () const |
const ArtifactBlock * | getBlock () const |
ArtifactBlock * | getBlock () |
Public Member Functions inherited from nnc::ArtifactEntity | |
virtual | ~ArtifactEntity ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from nnc::ArtifactEntity | |
ArtifactEntity ()=default | |
Represents for loops.
Definition at line 466 of file ArtifactModel.h.
|
inlineexplicit |
Definition at line 469 of file ArtifactModel.h.
|
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 478 of file ArtifactModel.h.
Referenced by TEST().
|
inline |
Definition at line 484 of file ArtifactModel.h.
|
inline |
Definition at line 483 of file ArtifactModel.h.
Referenced by TEST(), and nnc::ArtifactGeneratorCppCode::visit().
|
inline |
Definition at line 481 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit().
|
inline |
Definition at line 480 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit().
|
inline |
Definition at line 482 of file ArtifactModel.h.
Referenced by nnc::ArtifactGeneratorCppCode::visit().
|
inlineoverridevirtual |
If this entity represents something containing a block of instructions.
Reimplemented from nnc::ArtifactEntity.
Definition at line 476 of file ArtifactModel.h.