Loading [MathJax]/extensions/tex2jax.js
CIRCT 22.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 382 of file LongestPathAnalysis.cpp.

Constructor & Destructor Documentation

◆ Context()

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

Definition at line 384 of file LongestPathAnalysis.cpp.

Member Function Documentation

◆ doTraceDebugPoints()

bool Context::doTraceDebugPoints ( ) const
inline

Definition at line 417 of file LongestPathAnalysis.cpp.

◆ getAndWaitLocalVisitor()

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

Definition at line 1112 of file LongestPathAnalysis.cpp.

References getLocalVisitor().

◆ getLocalVisitor()

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

◆ notifyEnd()

void Context::notifyEnd ( StringAttr  name)
inline

Definition at line 396 of file LongestPathAnalysis.cpp.

◆ notifyStart()

void Context::notifyStart ( StringAttr  name)
inline

Definition at line 387 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 420 of file LongestPathAnalysis.cpp.

◆ option

const LongestPathAnalysisOption& Context::option
private

Definition at line 422 of file LongestPathAnalysis.cpp.

◆ running

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

Definition at line 421 of file LongestPathAnalysis.cpp.


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