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

RAII helper for creating a pass header and footer automatically. More...

#include <Debug.h>

Collaboration diagram for circt::ScopedDebugPassLogger:
Collaboration graph
[legend]

Public Member Functions

 ScopedDebugPassLogger (const mlir::Pass *pass, unsigned width=80)
 
 ~ScopedDebugPassLogger ()
 

Private Attributes

const mlir::Pass * pass
 
unsigned width
 

Detailed Description

RAII helper for creating a pass header and footer automatically.

The heaer is printed on construction and the footer on destruction.

Definition at line 49 of file Debug.h.

Constructor & Destructor Documentation

◆ ScopedDebugPassLogger()

circt::ScopedDebugPassLogger::ScopedDebugPassLogger ( const mlir::Pass *  pass,
unsigned  width = 80 
)
inline

Definition at line 52 of file Debug.h.

References circt::debugPassHeader(), pass, and width.

◆ ~ScopedDebugPassLogger()

circt::ScopedDebugPassLogger::~ScopedDebugPassLogger ( )
inline

Definition at line 59 of file Debug.h.

References circt::debugFooter(), pass, and width.

Member Data Documentation

◆ pass

const mlir::Pass* circt::ScopedDebugPassLogger::pass
private

Definition at line 66 of file Debug.h.

Referenced by ScopedDebugPassLogger(), and ~ScopedDebugPassLogger().

◆ width

unsigned circt::ScopedDebugPassLogger::width
private

Definition at line 67 of file Debug.h.

Referenced by ScopedDebugPassLogger(), and ~ScopedDebugPassLogger().


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