MLIR  20.0.0git
Classes | Namespaces | Typedefs | Functions
DialectRegistry.h File Reference
#include "mlir/IR/MLIRContext.h"
#include "mlir/Support/TypeID.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/MapVector.h"
#include <map>
#include <tuple>

Go to the source code of this file.

Classes

class  mlir::DialectExtensionBase
 This class represents an opaque dialect extension. More...
 
class  mlir::DialectExtension< DerivedT, DialectsT >
 This class represents a dialect extension anchored on the given set of dialects. More...
 
class  mlir::DialectRegistry
 The DialectRegistry maps a dialect namespace to a constructor for the matching dialect. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::dialect_extension_detail
 

Typedefs

using mlir::DialectAllocatorFunction = std::function< Dialect *(MLIRContext *)>
 
using mlir::DialectAllocatorFunctionRef = function_ref< Dialect *(MLIRContext *)>
 
using mlir::DynamicDialectPopulationFunction = std::function< void(MLIRContext *, DynamicDialect *)>
 

Functions

void mlir::dialect_extension_detail::handleUseOfUndefinedPromisedInterface (Dialect &dialect, TypeID interfaceRequestorID, TypeID interfaceID, StringRef interfaceName)
 Checks if the given interface, which is attempting to be used, is a promised interface of this dialect that has yet to be implemented. More...
 
void mlir::dialect_extension_detail::handleAdditionOfUndefinedPromisedInterface (Dialect &dialect, TypeID interfaceRequestorID, TypeID interfaceID)
 Checks if the given interface, which is attempting to be attached, is a promised interface of this dialect that has yet to be implemented. More...
 
bool mlir::dialect_extension_detail::hasPromisedInterface (Dialect &dialect, TypeID interfaceRequestorID, TypeID interfaceID)
 Checks if a promise has been made for the interface/requestor pair. More...
 
template<typename ConcreteT , typename InterfaceT >
bool mlir::dialect_extension_detail::hasPromisedInterface (Dialect &dialect)
 Checks if a promise has been made for the interface/requestor pair. More...