ONE - On-device Neural Engine
|
The ACL C++ artifact source code producer. More...
#include <ArtifactGeneratorCppCode.h>
Public Member Functions | |
ArtifactGeneratorCppCode (std::ostream &out) | |
void | visit (const ArtifactLiteral *node) override |
void | visit (const ArtifactId *node) override |
void | visit (const ArtifactRef *node) override |
void | visit (const ArtifactDeref *node) override |
void | visit (const ArtifactVariable *node) override |
void | visit (const ArtifactFunctionCall *node) override |
void | visit (const ArtifactUnaryExpr *node) override |
void | visit (const ArtifactBinaryExpr *node) override |
void | visit (const ArtifactIndex *node) override |
void | visit (const ArtifactRet *node) override |
void | visit (const ArtifactBreak *node) override |
void | visit (const ArtifactCont *node) override |
void | visit (const ArtifactBlock *node) override |
void | visit (const ArtifactForLoop *node) override |
void | visit (const ArtifactIf *node) override |
void | visit (const ArtifactFunction *node) override |
void | visit (const ArtifactClass *node) override |
void | visit (const ArtifactClassVariable *node) override |
void | visit (const ArtifactClassFunction *node) override |
void | visit (const ArtifactModule *node) override |
Public Member Functions inherited from nnc::IArtifactGenerator | |
virtual | ~IArtifactGenerator ()=default |
The ACL C++ artifact source code producer.
Definition at line 31 of file ArtifactGeneratorCppCode.h.
|
explicit |
Definition at line 29 of file ArtifactGeneratorCppCode.cpp.
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 119 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBinaryExpr::getLeft(), nnc::ArtifactBinaryExpr::getOp(), and nnc::ArtifactBinaryExpr::getRight().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 146 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBlock::getStatements().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 142 of file ArtifactGeneratorCppCode.cpp.
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 204 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBlock::accept(), nnc::ArtifactClass::getConstrBlock(), nnc::ArtifactNamed::name(), nnc::ArtifactClass::privateFunctions(), nnc::ArtifactClass::privateVariables(), and nnc::ArtifactClass::publicFunctions().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 255 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBlock::accept(), nnc::ArtifactFunction::getBlock(), nnc::ArtifactFunction::getParameters(), nnc::ArtifactFunction::getRetTypeName(), nnc::ArtifactNamed::name(), and nnc::ArtifactClassMember::owner().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 238 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactVariable::getInitializers(), and nnc::ArtifactNamed::name().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 144 of file ArtifactGeneratorCppCode.cpp.
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 41 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactDeref::obj().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 164 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBlock::accept(), nnc::ArtifactForLoop::getBlock(), nnc::ArtifactForLoop::getCond(), nnc::ArtifactForLoop::getInit(), and nnc::ArtifactForLoop::getIter().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 199 of file ArtifactGeneratorCppCode.cpp.
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 76 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactFunctionCall::callType(), nnc::ArtifactFunctionCall::funcName(), nnc::ArtifactFunctionCall::on(), and nnc::ArtifactFunctionCall::paramList().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 33 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactId::name().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 185 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactBlock::accept(), nnc::ArtifactIf::getBlock(), nnc::ArtifactIf::getCond(), nnc::ArtifactIf::getElseBlock(), and nnc::ArtifactBlock::getStatements().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 128 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactIndex::getExpr(), and nnc::ArtifactIndex::getInd().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 31 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactLiteral::getValue().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 279 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactModule::entities(), nnc::ArtifactModule::name(), nnc::ArtifactModule::sourceIncludes(), and nnc::ArtifactModule::sourceSysIncludes().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 35 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactRef::obj().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 136 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactRet::expr().
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 102 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactUnaryExpr::getExpr(), nnc::ArtifactUnaryExpr::getOp(), and nnc::postIncr.
|
overridevirtual |
Implements nnc::IArtifactGenerator.
Definition at line 47 of file ArtifactGeneratorCppCode.cpp.
References nnc::ArtifactVariable::getDimensions(), nnc::ArtifactVariable::getInitializers(), nnc::ArtifactNamed::name(), and nnc::ArtifactVariable::typeName().