MLIR  19.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"

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 95 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:
= llvm::is_one_of<T, float, double>::value ||
(std::numeric_limits<T>::is_specialized &&
!std::numeric_limits<T>::is_integer)

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 100 of file BuiltinAttributes.h.


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