MLIR  17.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...
 
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...
 

Detailed Description

Definition at line 1697 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 1699 of file AsmPrinter.cpp.

◆ AsmStateImpl() [2/2]

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

Definition at line 1703 of file AsmPrinter.cpp.

Member Function Documentation

◆ getAliasState()

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

Get the state used for aliases.

Definition at line 1713 of file AsmPrinter.cpp.

Referenced by mlir::AsmPrinter::Impl::printLocationInternal().

◆ getDialectInterfaces()

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

Return the dialects within the context that implement OpAsmDialectInterface.

Definition at line 1720 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 1741 of file AsmPrinter.cpp.

Referenced by mlir::AsmPrinter::Impl::printResourceHandle().

◆ getPrinterFlags()

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

Get the printer flags.

Definition at line 1730 of file AsmPrinter.cpp.

◆ getResourcePrinters()

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

Return the non-dialect resource printers.

Definition at line 1725 of file AsmPrinter.cpp.

◆ getSSANameState()

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

Get the state used for SSA names.

Definition at line 1716 of file AsmPrinter.cpp.

Referenced by mlir::Value::printAsOperand().

◆ initializeAliases()

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

Initialize the alias state to enable the printing of aliases.

Definition at line 1708 of file AsmPrinter.cpp.

Referenced by mlir::Operation::print().

◆ 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 1734 of file AsmPrinter.cpp.


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