CIRCT  18.0.0git
Public Member Functions | Public Attributes | List of all members
LocationEmitter::Impl Struct Reference
Collaboration diagram for LocationEmitter::Impl:
Collaboration graph
[legend]

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. More...
 
void emitLocationSetInfoImpl (const SmallPtrSetImpl< Attribute > &locationSet)
 Emit the location information of locationSet to sstr. More...
 

Public Attributes

llvm::raw_string_ostream & os
 
LoweringOptions::LocationInfoStyle style
 

Detailed Description

Definition at line 571 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 574 of file ExportVerilog.cpp.

Member Function Documentation

◆ emitLocationInfo() [1/4]

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

Definition at line 601 of file ExportVerilog.cpp.

◆ 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 661 of file ExportVerilog.cpp.

References collectAndUniqueLocations().

◆ emitLocationInfo() [3/4]

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

Definition at line 581 of file ExportVerilog.cpp.

◆ emitLocationInfo() [4/4]

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

Definition at line 590 of file ExportVerilog.cpp.

◆ 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 680 of file ExportVerilog.cpp.

References sortLocationVector().

◆ printFileLineColSetInfo()

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

Definition at line 614 of file ExportVerilog.cpp.

References circt::pretty::end.

Member Data Documentation

◆ os

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

Definition at line 741 of file ExportVerilog.cpp.

◆ style

LoweringOptions::LocationInfoStyle LocationEmitter::Impl::style

Definition at line 742 of file ExportVerilog.cpp.


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