MLIR 22.0.0git
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

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::dialect_extension_detail

Typedefs

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

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.
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.
bool mlir::dialect_extension_detail::hasPromisedInterface (Dialect &dialect, TypeID interfaceRequestorID, TypeID interfaceID)
 Checks if a promise has been made for the interface/requestor pair.
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.