CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
Context Class Reference

This class provides a thread-safe interface to access the analysis results. More...

Collaboration diagram for Context:
Collaboration graph
[legend]

Public Member Functions

 Context (igraph::InstanceGraph *instanceGraph, const LongestPathAnalysisOption &option)
 
void notifyStart (StringAttr name)
 
void notifyEnd (StringAttr name)
 
const LocalVisitorgetLocalVisitor (StringAttr name) const
 
const LocalVisitorgetAndWaitLocalVisitor (StringAttr name) const
 
LocalVisitorgetLocalVisitorMutable (StringAttr name) const
 
bool doTraceDebugPoints () const
 
bool doIncremental () const
 

Public Attributes

llvm::MapVector< StringAttr, std::unique_ptr< LocalVisitor > > localVisitors
 
circt::igraph::InstanceGraphinstanceGraph = nullptr
 

Private Attributes

llvm::sys::SmartMutex< true > mutex
 
llvm::SetVector< StringAttr > running
 
LongestPathAnalysisOption option
 

Detailed Description

This class provides a thread-safe interface to access the analysis results.

Definition at line 394 of file LongestPathAnalysis.cpp.

Constructor & Destructor Documentation

◆ Context()

Context::Context ( igraph::InstanceGraph instanceGraph,
const LongestPathAnalysisOption &  option 
)
inline

Definition at line 396 of file LongestPathAnalysis.cpp.

Member Function Documentation

◆ doIncremental()

bool Context::doIncremental ( ) const
inline

◆ doTraceDebugPoints()

bool Context::doTraceDebugPoints ( ) const
inline

Definition at line 432 of file LongestPathAnalysis.cpp.

◆ getAndWaitLocalVisitor()

const LocalVisitor * Context::getAndWaitLocalVisitor ( StringAttr  name) const

Definition at line 1258 of file LongestPathAnalysis.cpp.

References getLocalVisitor().

◆ getLocalVisitor()

const LocalVisitor * Context::getLocalVisitor ( StringAttr  name) const

◆ getLocalVisitorMutable()

LocalVisitor * Context::getLocalVisitorMutable ( StringAttr  name) const

Definition at line 1266 of file LongestPathAnalysis.cpp.

References localVisitors.

Referenced by aig.LongestPathAnalysis::Impl::getOrComputePaths().

◆ notifyEnd()

void Context::notifyEnd ( StringAttr  name)
inline

Definition at line 408 of file LongestPathAnalysis.cpp.

◆ notifyStart()

void Context::notifyStart ( StringAttr  name)
inline

Definition at line 399 of file LongestPathAnalysis.cpp.

Member Data Documentation

◆ instanceGraph

circt::igraph::InstanceGraph* Context::instanceGraph = nullptr

◆ localVisitors

llvm::MapVector<StringAttr, std::unique_ptr<LocalVisitor> > Context::localVisitors

◆ mutex

llvm::sys::SmartMutex<true> Context::mutex
private

Definition at line 436 of file LongestPathAnalysis.cpp.

◆ option

LongestPathAnalysisOption Context::option
private

Definition at line 438 of file LongestPathAnalysis.cpp.

◆ running

llvm::SetVector<StringAttr> Context::running
private

Definition at line 437 of file LongestPathAnalysis.cpp.


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