MLIR
20.0.0git
|
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... | |
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().
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().
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().
bool mlir::dialect_extension_detail::hasPromisedInterface | ( | Dialect & | dialect, |
TypeID | interfaceRequestorID, | ||
TypeID | interfaceID | ||
) |
Checks if a promise has been made for the interface/requestor pair.
Definition at line 172 of file Dialect.cpp.
References mlir::Dialect::hasPromisedInterface().
Referenced by hasPromisedInterface(), mlir::Attribute::hasPromiseOrImplementsInterface(), mlir::Type::hasPromiseOrImplementsInterface(), and mlir::OperationName::hasPromiseOrImplementsInterface().