MLIR  20.0.0git
Public Types | Static Public Member Functions | List of all members
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. More...
 
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 206 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 211 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 209 of file TypeID.h.

Member Function Documentation

◆ resolveTypeID()

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

Definition at line 214 of file TypeID.h.


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