|
MLIR 22.0.0git
|
An attribute that represents a reference to a dense float vector or tensor object. More...
#include "mlir/IR/BuiltinAttributes.h"
Public Types | |
| using | iterator = DenseElementsAttr::FloatElementIterator |
Public Member Functions | |
| DenseElementsAttr | mapValues (Type newElementType, function_ref< APInt(const APFloat &)> mapping) const |
| Generates a new DenseElementsAttr by mapping each value attribute, and constructing the DenseElementsAttr given the new element type. | |
| iterator | begin () const |
| Iterator access to the float element values. | |
| iterator | end () const |
Static Public Member Functions | |
| template<typename Arg> | |
| static DenseFPElementsAttr | get (const ShapedType &type, Arg &&arg) |
| Get an instance of a DenseFPElementsAttr with the given arguments. | |
| template<typename T> | |
| static DenseFPElementsAttr | get (const ShapedType &type, const std::initializer_list< T > &list) |
| static bool | classof (Attribute attr) |
| Method for supporting type inquiry through isa, cast and dyn_cast. | |
An attribute that represents a reference to a dense float vector or tensor object.
Each element is stored as a double.
Definition at line 913 of file BuiltinAttributes.h.
Definition at line 915 of file BuiltinAttributes.h.
|
inline |
Iterator access to the float element values.
Definition at line 939 of file BuiltinAttributes.h.
Method for supporting type inquiry through isa, cast and dyn_cast.
Definition at line 1509 of file BuiltinAttributes.cpp.
|
inline |
Definition at line 940 of file BuiltinAttributes.h.
|
inlinestatic |
Get an instance of a DenseFPElementsAttr with the given arguments.
This simply wraps the DenseElementsAttr::get calls.
Definition at line 922 of file BuiltinAttributes.h.
References mlir::DenseElementsAttr::get().
Referenced by mlir::Builder::getF32VectorAttr(), and mlir::Builder::getF64VectorAttr().
|
inlinestatic |
Definition at line 927 of file BuiltinAttributes.h.
References mlir::DenseElementsAttr::get().
| DenseElementsAttr DenseFPElementsAttr::mapValues | ( | Type | newElementType, |
| function_ref< APInt(const APFloat &)> | mapping ) const |
Generates a new DenseElementsAttr by mapping each value attribute, and constructing the DenseElementsAttr given the new element type.
Definition at line 1499 of file BuiltinAttributes.cpp.
References mlir::getType(), and mappingHelper().