CIRCT 24.0.0git
Loading...
Searching...
No Matches
LocationEmitter::Impl Struct Reference
Collaboration diagram for LocationEmitter::Impl:

Public Member Functions

 Impl (llvm::raw_string_ostream &os, LoweringOptions::LocationInfoStyle style, const SmallPtrSetImpl< Attribute > &locationSet)
void emitLocationInfo (mlir::CallSiteLoc loc)
void emitLocationInfo (mlir::NameLoc loc)
void emitLocationInfo (FileLineColLoc loc)
void printFileLineColSetInfo (llvm::SmallVector< FileLineColLoc, 8 > locVector)
void emitLocationInfo (Location loc)
 Return the location information in the specified style.
void emitLocationSetInfoImpl (const SmallPtrSetImpl< Attribute > &locationSet)
 Emit the location information of locationSet to sstr.

Public Attributes

llvm::raw_string_ostream & os
LoweringOptions::LocationInfoStyle style

Detailed Description

Definition at line 545 of file ExportVerilog.cpp.

Constructor & Destructor Documentation

◆ Impl()

LocationEmitter::Impl::Impl ( llvm::raw_string_ostream & os,
LoweringOptions::LocationInfoStyle style,
const SmallPtrSetImpl< Attribute > & locationSet )
inline

Definition at line 548 of file ExportVerilog.cpp.

References emitLocationSetInfoImpl(), os, and style.

Member Function Documentation

◆ emitLocationInfo() [1/4]

void LocationEmitter::Impl::emitLocationInfo ( FileLineColLoc loc)
inline

Definition at line 575 of file ExportVerilog.cpp.

References os.

◆ emitLocationInfo() [2/4]

void LocationEmitter::Impl::emitLocationInfo ( Location loc)
inline

Return the location information in the specified style.

This is the main dispatch function for calling the location-specific routines.

Definition at line 635 of file ExportVerilog.cpp.

References collectAndUniqueLocations(), emitLocationInfo(), and emitLocationSetInfoImpl().

◆ emitLocationInfo() [3/4]

void LocationEmitter::Impl::emitLocationInfo ( mlir::CallSiteLoc loc)
inline

◆ emitLocationInfo() [4/4]

void LocationEmitter::Impl::emitLocationInfo ( mlir::NameLoc loc)
inline

Definition at line 564 of file ExportVerilog.cpp.

References emitLocationInfo(), and os.

◆ emitLocationSetInfoImpl()

void LocationEmitter::Impl::emitLocationSetInfoImpl ( const SmallPtrSetImpl< Attribute > & locationSet)
inline

Emit the location information of locationSet to sstr.

The emitted string may potentially be an empty string given the contents of the locationSet.

Definition at line 654 of file ExportVerilog.cpp.

References emitLocationInfo(), os, printFileLineColSetInfo(), and sortLocationVector().

Referenced by emitLocationInfo(), and Impl().

◆ printFileLineColSetInfo()

void LocationEmitter::Impl::printFileLineColSetInfo ( llvm::SmallVector< FileLineColLoc, 8 > locVector)
inline

Definition at line 588 of file ExportVerilog.cpp.

References circt::pretty::end, and os.

Referenced by emitLocationSetInfoImpl().

Member Data Documentation

◆ os

llvm::raw_string_ostream& LocationEmitter::Impl::os

◆ style

LoweringOptions::LocationInfoStyle LocationEmitter::Impl::style

Definition at line 716 of file ExportVerilog.cpp.

Referenced by Impl().


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