MLIR  16.0.0git
Static Public Attributes | List of all members
mlir::DenseElementsAttr::is_valid_cpp_fp_type< T > Struct Template Reference

Type trait used to check if the given type T is a potentially valid C++ floating point type that can be used to access the underlying element types of a DenseElementsAttr. More...

#include "mlir/IR/BuiltinAttributes.h"

+ Collaboration diagram for mlir::DenseElementsAttr::is_valid_cpp_fp_type< T >:

Static Public Attributes

static constexpr bool value
 The type is a valid floating point type if it is a builtin floating point type, or is a potentially user defined floating point type. More...
 

Detailed Description

template<typename T>
struct mlir::DenseElementsAttr::is_valid_cpp_fp_type< T >

Type trait used to check if the given type T is a potentially valid C++ floating point type that can be used to access the underlying element types of a DenseElementsAttr.

Definition at line 89 of file BuiltinAttributes.h.

Member Data Documentation

◆ value

template<typename T >
constexpr bool mlir::DenseElementsAttr::is_valid_cpp_fp_type< T >::value
staticconstexpr
Initial value:
(std::numeric_limits<T>::is_specialized &&
!std::numeric_limits<T>::is_integer)
static constexpr const bool value

The type is a valid floating point type if it is a builtin floating point type, or is a potentially user defined floating point type.

The latter allows for supporting users that have custom types defined for bfloat16/half/etc.

Definition at line 94 of file BuiltinAttributes.h.


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