MLIR  20.0.0git
Public Member Functions | List of all members
mlir::detail::AsmStateImpl Class Reference

Public Member Functions

 AsmStateImpl (Operation *op, const OpPrintingFlags &printerFlags, AsmState::LocationMap *locationMap)
 
 AsmStateImpl (MLIRContext *ctx, const OpPrintingFlags &printerFlags, AsmState::LocationMap *locationMap)
 
void initializeAliases (Operation *op)
 Initialize the alias state to enable the printing of aliases. More...
 
AliasState & getAliasState ()
 Get the state used for aliases. More...
 
SSANameState & getSSANameState ()
 Get the state used for SSA names. More...
 
DistinctState & getDistinctState ()
 Get the state used for distinct attribute identifiers. More...
 
DialectInterfaceCollection< OpAsmDialectInterface > & getDialectInterfaces ()
 Return the dialects within the context that implement OpAsmDialectInterface. More...
 
auto getResourcePrinters ()
 Return the non-dialect resource printers. More...
 
const OpPrintingFlagsgetPrinterFlags () const
 Get the printer flags. More...
 
void registerOperationLocation (Operation *op, unsigned line, unsigned col)
 Register the location, line and column, within the buffer that the given operation was printed at. More...
 
DenseMap< Dialect *, SetVector< AsmDialectResourceHandle > > & getDialectResources ()
 Return the referenced dialect resources within the printer. More...
 
LogicalResult pushCyclicPrinting (const void *opaquePointer)
 
void popCyclicPrinting ()
 

Detailed Description

Definition at line 1813 of file AsmPrinter.cpp.

Constructor & Destructor Documentation

◆ AsmStateImpl() [1/2]

mlir::detail::AsmStateImpl::AsmStateImpl ( Operation op,
const OpPrintingFlags printerFlags,
AsmState::LocationMap locationMap 
)
inlineexplicit

Definition at line 1815 of file AsmPrinter.cpp.

◆ AsmStateImpl() [2/2]

mlir::detail::AsmStateImpl::AsmStateImpl ( MLIRContext ctx,
const OpPrintingFlags printerFlags,
AsmState::LocationMap locationMap 
)
inlineexplicit

Definition at line 1819 of file AsmPrinter.cpp.

Member Function Documentation

◆ getAliasState()

AliasState& mlir::detail::AsmStateImpl::getAliasState ( )
inline

Get the state used for aliases.

Definition at line 1829 of file AsmPrinter.cpp.

◆ getDialectInterfaces()

DialectInterfaceCollection<OpAsmDialectInterface>& mlir::detail::AsmStateImpl::getDialectInterfaces ( )
inline

Return the dialects within the context that implement OpAsmDialectInterface.

Definition at line 1839 of file AsmPrinter.cpp.

◆ getDialectResources()

DenseMap<Dialect *, SetVector<AsmDialectResourceHandle> >& mlir::detail::AsmStateImpl::getDialectResources ( )
inline

Return the referenced dialect resources within the printer.

Definition at line 1860 of file AsmPrinter.cpp.

◆ getDistinctState()

DistinctState& mlir::detail::AsmStateImpl::getDistinctState ( )
inline

Get the state used for distinct attribute identifiers.

Definition at line 1835 of file AsmPrinter.cpp.

◆ getPrinterFlags()

const OpPrintingFlags& mlir::detail::AsmStateImpl::getPrinterFlags ( ) const
inline

Get the printer flags.

Definition at line 1849 of file AsmPrinter.cpp.

◆ getResourcePrinters()

auto mlir::detail::AsmStateImpl::getResourcePrinters ( )
inline

Return the non-dialect resource printers.

Definition at line 1844 of file AsmPrinter.cpp.

◆ getSSANameState()

SSANameState& mlir::detail::AsmStateImpl::getSSANameState ( )
inline

Get the state used for SSA names.

Definition at line 1832 of file AsmPrinter.cpp.

◆ initializeAliases()

void mlir::detail::AsmStateImpl::initializeAliases ( Operation op)
inline

Initialize the alias state to enable the printing of aliases.

Definition at line 1824 of file AsmPrinter.cpp.

◆ popCyclicPrinting()

void mlir::detail::AsmStateImpl::popCyclicPrinting ( )
inline

Definition at line 1868 of file AsmPrinter.cpp.

◆ pushCyclicPrinting()

LogicalResult mlir::detail::AsmStateImpl::pushCyclicPrinting ( const void *  opaquePointer)
inline

Definition at line 1864 of file AsmPrinter.cpp.

◆ registerOperationLocation()

void mlir::detail::AsmStateImpl::registerOperationLocation ( Operation op,
unsigned  line,
unsigned  col 
)
inline

Register the location, line and column, within the buffer that the given operation was printed at.

Definition at line 1853 of file AsmPrinter.cpp.


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