MLIR  20.0.0git
Functions
mlir::dialect_extension_detail Namespace Reference

Functions

void 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 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 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 hasPromisedInterface (Dialect &dialect)
 Checks if a promise has been made for the interface/requestor pair. More...
 

Function Documentation

◆ handleAdditionOfUndefinedPromisedInterface()

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.

If so, the promised interface is marked as resolved.

Definition at line 166 of file Dialect.cpp.

References mlir::Dialect::handleAdditionOfUndefinedPromisedInterface().

Referenced by mlir::OperationName::attachInterface(), and mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT, Traits >::attachInterface().

◆ handleUseOfUndefinedPromisedInterface()

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.

If so, emits a fatal error.

Definition at line 159 of file Dialect.cpp.

References mlir::Dialect::handleUseOfUndefinedPromisedInterface().

Referenced by mlir::AttributeInterface< ConcreteType, Traits >::getInterfaceFor(), mlir::OpInterface< ConcreteType, Traits >::getInterfaceFor(), and mlir::TypeInterface< ConcreteType, Traits >::getInterfaceFor().

◆ hasPromisedInterface() [1/2]

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.

Definition at line 123 of file DialectRegistry.h.

References hasPromisedInterface().

◆ hasPromisedInterface() [2/2]

bool mlir::dialect_extension_detail::hasPromisedInterface ( Dialect dialect,
TypeID  interfaceRequestorID,
TypeID  interfaceID 
)