My Project
|
#include <MLIRContext.h>
Public Member Functions | |
MLIRContext () | |
~MLIRContext () | |
std::vector< Dialect * > | getRegisteredDialects () |
Return information about all registered IR dialects. More... | |
Dialect * | getRegisteredDialect (StringRef name) |
template<typename T > | |
T * | getRegisteredDialect () |
std::vector< AbstractOperation * > | getRegisteredOperations () |
MLIRContextImpl & | getImpl () |
DiagnosticEngine & | getDiagEngine () |
Returns the diagnostic engine for this context. More... | |
StorageUniquer & | getAffineUniquer () |
Returns the storage uniquer used for creating affine constructs. More... | |
StorageUniquer & | getTypeUniquer () |
StorageUniquer & | getAttributeUniquer () |
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.
|
explicit |
MLIRContext::~MLIRContext | ( | ) |
StorageUniquer & MLIRContext::getAffineUniquer | ( | ) |
Returns the storage uniquer used for creating affine constructs.
StorageUniquer & MLIRContext::getAttributeUniquer | ( | ) |
Returns the storage uniquer used for constructing attribute storage instances. This should not be used directly.
DiagnosticEngine & MLIRContext::getDiagEngine | ( | ) |
Returns the diagnostic engine for this context.
|
inline |
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.
|
inline |
Get a registered IR dialect for the given derived dialect type. The derived type must provide a static 'getDialectNamespace' method.
std::vector< Dialect * > MLIRContext::getRegisteredDialects | ( | ) |
Return information about all registered IR dialects.
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.
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.