MLIR 22.0.0git
mlir::detail::InlineTypeIDResolver Struct Reference

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 ()

Detailed Description

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.

Definition at line 219 of file TypeID.h.

Member Typedef Documentation

◆ has_resolve_typeid

template<typename T>
using mlir::detail::InlineTypeIDResolver::has_resolve_typeid = llvm::is_detected<has_resolve_typeid_trait, T>

Definition at line 224 of file TypeID.h.

◆ has_resolve_typeid_trait

template<typename T>
using mlir::detail::InlineTypeIDResolver::has_resolve_typeid_trait = decltype(T::resolveTypeID())

Trait to check if T provides a static resolveTypeID method.

Definition at line 222 of file TypeID.h.

Member Function Documentation

◆ resolveTypeID()

template<typename T>
TypeID mlir::detail::InlineTypeIDResolver::resolveTypeID ( )
inlinestatic

The documentation for this struct was generated from the following file: