|
MLIR 22.0.0git
|
This class provides utilities for resolving the TypeID of a class that provides a static TypeID resolveTypeID() method. More...
#include "mlir/Support/TypeID.h"
Public Types | |
| template<typename T> | |
| using | has_resolve_typeid_trait = decltype(T::resolveTypeID()) |
| Trait to check if T provides a static resolveTypeID method. | |
| template<typename T> | |
| using | has_resolve_typeid = llvm::is_detected<has_resolve_typeid_trait, T> |
Static Public Member Functions | |
| template<typename T> | |
| static TypeID | resolveTypeID () |
This class provides utilities for resolving the TypeID of a class that provides a static TypeID resolveTypeID() method.
This allows for simplifying situations when the class can resolve the ID itself. This functionality is separated from the corresponding TypeIDResolver specialization below to enable referencing it more easily in different contexts.
| using mlir::detail::InlineTypeIDResolver::has_resolve_typeid = llvm::is_detected<has_resolve_typeid_trait, T> |
| using mlir::detail::InlineTypeIDResolver::has_resolve_typeid_trait = decltype(T::resolveTypeID()) |
|
inlinestatic |
Definition at line 227 of file TypeID.h.
Referenced by mlir::detail::TypeIDResolver< T, std::enable_if_t< InlineTypeIDResolver::has_resolve_typeid< T >::value > >::resolveTypeID().