Loading [MathJax]/extensions/tex2jax.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
bool doTraceDebugPoints () 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
 
const LongestPathAnalysisOption & option
 

Detailed Description

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

Definition at line 372 of file LongestPathAnalysis.cpp.

Constructor & Destructor Documentation

◆ Context()

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

Definition at line 374 of file LongestPathAnalysis.cpp.

Member Function Documentation

◆ doTraceDebugPoints()

bool Context::doTraceDebugPoints ( ) const
inline

Definition at line 407 of file LongestPathAnalysis.cpp.

References option.

◆ getAndWaitLocalVisitor()

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

Definition at line 1102 of file LongestPathAnalysis.cpp.

References getLocalVisitor().

◆ getLocalVisitor()

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

◆ notifyEnd()

void Context::notifyEnd ( StringAttr  name)
inline

Definition at line 386 of file LongestPathAnalysis.cpp.

References mutex, and running.

◆ notifyStart()

void Context::notifyStart ( StringAttr  name)
inline

Definition at line 377 of file LongestPathAnalysis.cpp.

References mutex, and running.

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 410 of file LongestPathAnalysis.cpp.

Referenced by notifyEnd(), and notifyStart().

◆ option

const LongestPathAnalysisOption& Context::option
private

Definition at line 412 of file LongestPathAnalysis.cpp.

Referenced by doTraceDebugPoints().

◆ running

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

Definition at line 411 of file LongestPathAnalysis.cpp.

Referenced by notifyEnd(), and notifyStart().


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