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

pass manager class. This class manages running of passes More...

#include <PassManager.h>

Public Types

using Passes = std::vector< std::unique_ptr< Pass > >
 get all registered passes in order in which they were registered
 

Public Member Functions

 PassManager ()
 
 ~PassManager ()
 
void registerPass (std::unique_ptr< Pass > pass)
 register pass in pass manager
 
const PassesgetPasses () const
 

Detailed Description

pass manager class. This class manages running of passes

Definition at line 32 of file PassManager.h.

Member Typedef Documentation

◆ Passes

using nnc::PassManager::Passes = std::vector<std::unique_ptr<Pass> >

get all registered passes in order in which they were registered

Definition at line 47 of file PassManager.h.

Constructor & Destructor Documentation

◆ PassManager()

nnc::PassManager::PassManager ( )
default

◆ ~PassManager()

nnc::PassManager::~PassManager ( )

Definition at line 25 of file PassManager.cpp.

26{
27 for (auto &pass : _passes)
28 pass->cleanup();
29}

Member Function Documentation

◆ getPasses()

const Passes & nnc::PassManager::getPasses ( ) const
inline

Definition at line 48 of file PassManager.h.

48{ return _passes; }

◆ registerPass()

void nnc::PassManager::registerPass ( std::unique_ptr< Pass pass)

register pass in pass manager

Parameters
pass- registered pass

Definition at line 31 of file PassManager.cpp.

32{
33 _passes.push_back(std::move(pass));
34} // registerPass

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