My Project
Public Member Functions | List of all members
mlir::MLIRContext Class Reference

#include <MLIRContext.h>

Public Member Functions

 MLIRContext ()
 
 ~MLIRContext ()
 
std::vector< Dialect * > getRegisteredDialects ()
 Return information about all registered IR dialects. More...
 
DialectgetRegisteredDialect (StringRef name)
 
template<typename T >
T * getRegisteredDialect ()
 
std::vector< AbstractOperation * > getRegisteredOperations ()
 
MLIRContextImplgetImpl ()
 
DiagnosticEnginegetDiagEngine ()
 Returns the diagnostic engine for this context. More...
 
StorageUniquergetAffineUniquer ()
 Returns the storage uniquer used for creating affine constructs. More...
 
StorageUniquergetTypeUniquer ()
 
StorageUniquergetAttributeUniquer ()
 

Detailed Description

MLIRContext is the top-level object for a collection of MLIR modules. It holds immortal uniqued objects like types, and the tables used to unique them.

MLIRContext gets a redundant "MLIR" prefix because otherwise it ends up with a very generic name ("Context") and because it is uncommon for clients to interact with it.

Constructor & Destructor Documentation

◆ MLIRContext()

MLIRContext::MLIRContext ( )
explicit

Types. Floating-point Types.

Index Type.

Integer Types.

None Type.

of the above types internally. Bool Attributes.

Unit Attribute.

Unknown Location Attribute.

◆ ~MLIRContext()

MLIRContext::~MLIRContext ( )

Member Function Documentation

◆ getAffineUniquer()

StorageUniquer & MLIRContext::getAffineUniquer ( )

Returns the storage uniquer used for creating affine constructs.

◆ getAttributeUniquer()

StorageUniquer & MLIRContext::getAttributeUniquer ( )

Returns the storage uniquer used for constructing attribute storage instances. This should not be used directly.

◆ getDiagEngine()

DiagnosticEngine & MLIRContext::getDiagEngine ( )

Returns the diagnostic engine for this context.

◆ getImpl()

MLIRContextImpl& mlir::MLIRContext::getImpl ( )
inline

◆ getRegisteredDialect() [1/2]

Dialect * MLIRContext::getRegisteredDialect ( StringRef  name)

Get a registered IR dialect with the given namespace. If an exact match is not found, then return nullptr.

Get a registered IR dialect with the given namespace. If none is found, then return nullptr.

◆ getRegisteredDialect() [2/2]

template<typename T >
T* mlir::MLIRContext::getRegisteredDialect ( )
inline

Get a registered IR dialect for the given derived dialect type. The derived type must provide a static 'getDialectNamespace' method.

◆ getRegisteredDialects()

std::vector< Dialect * > MLIRContext::getRegisteredDialects ( )

Return information about all registered IR dialects.

◆ getRegisteredOperations()

std::vector< AbstractOperation * > MLIRContext::getRegisteredOperations ( )

Return information about all registered operations. This isn't very efficient: typically you should ask the operations about their properties directly.

Return information about all registered operations. This isn't very efficient, typically you should ask the operations about their properties directly.

◆ getTypeUniquer()

StorageUniquer & MLIRContext::getTypeUniquer ( )

Returns the storage uniquer used for constructing type storage instances. This should not be used directly.

Returns the storage unqiuer used for constructing type storage instances. This should not be used directly.


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