CGRAOmp  0.1
Public Member Functions | Private Attributes | List of all members
CGRAOmp::ModelManager Class Reference

An interface for each LLVM pass to get the target CGRAModel. It can be obtained as an analysis result of ModelManagerPass. More...

#include <CGRAOmpPass.hpp>

Public Member Functions

 ModelManager ()=delete
 
 ModelManager (CGRAModel *CM)
 Construct a new ModelManager object. More...
 
 ModelManager (const ModelManager &)=default
 copy constructor More...
 
 ModelManager (ModelManager &&)=default
 move constructor More...
 
CGRAModelgetModel () const
 Get the CGRAModel object. More...
 
template<typename IRUnitT , typename InvT >
bool invalidate (IRUnitT &IR, const PreservedAnalyses &PA, InvT &Inv)
 implemented for enabling getCacheResult from inner modules More...
 

Private Attributes

CGRAModelmodel
 

Detailed Description

An interface for each LLVM pass to get the target CGRAModel. It can be obtained as an analysis result of ModelManagerPass.

Constructor & Destructor Documentation

◆ ModelManager() [1/4]

CGRAOmp::ModelManager::ModelManager ( )
delete

◆ ModelManager() [2/4]

CGRAOmp::ModelManager::ModelManager ( CGRAModel CM)
inlineexplicit

Construct a new ModelManager object.

Parameters
CMa generated CGRAModel

◆ ModelManager() [3/4]

CGRAOmp::ModelManager::ModelManager ( const ModelManager )
default

copy constructor

◆ ModelManager() [4/4]

CGRAOmp::ModelManager::ModelManager ( ModelManager &&  )
default

move constructor

Member Function Documentation

◆ getModel()

CGRAModel* CGRAOmp::ModelManager::getModel ( ) const
inline

Get the CGRAModel object.

Returns
CGRAModel* this manger contains

◆ invalidate()

template<typename IRUnitT , typename InvT >
bool ModelManager::invalidate ( IRUnitT &  IR,
const PreservedAnalyses &  PA,
InvT &  Inv 
)

implemented for enabling getCacheResult from inner modules

Member Data Documentation

◆ model

CGRAModel* CGRAOmp::ModelManager::model
private

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