|
DenseElementsAttr | mapValues (Type newElementType, function_ref< APInt(const APInt &)> mapping) const |
|
iterator | begin () const |
| Iterator access to the integer element values. More...
|
|
iterator | end () const |
|
bool | isSplat () const |
|
Attribute | getSplatValue () const |
|
template<typename T > |
std::enable_if<!std::is_base_of< Attribute, T >::value||std::is_same< Attribute, T >::value, T >::type | getSplatValue () const |
|
template<typename T > |
std::enable_if< std::is_base_of< Attribute, T >::value &&!std::is_same< Attribute, T >::value, T >::type | getSplatValue () const |
| Return the splat value for derived attribute element types. More...
|
|
Attribute | getValue (ArrayRef< uint64_t > index) const |
|
template<typename T > |
T | getValue (ArrayRef< uint64_t > index) const |
|
template<typename T , typename = typename std::enable_if< (!std::is_same<T, bool>::value && std::numeric_limits<T>::is_integer) || llvm::is_one_of<T, float, double>::value>::type> |
llvm::iterator_range< ElementIterator< T > > | getValues () const |
|
llvm::iterator_range< AttributeElementIterator > | getAttributeValues () const |
| Return the held element values as a range of Attributes. More...
|
|
template<typename T , typename = typename std::enable_if< std::is_same<T, Attribute>::value>::type> |
llvm::iterator_range< AttributeElementIterator > | getValues () const |
|
AttributeElementIterator | attr_value_begin () const |
|
AttributeElementIterator | attr_value_end () const |
|
template<typename T , typename = typename std::enable_if< std::is_base_of<Attribute, T>::value && !std::is_same<Attribute, T>::value>::type> |
llvm::iterator_range< DerivedAttributeElementIterator< T > > | getValues () const |
|
llvm::iterator_range< BoolElementIterator > | getBoolValues () const |
|
template<typename T , typename = typename std::enable_if< std::is_same<T, bool>::value>::type> |
llvm::iterator_range< BoolElementIterator > | getValues () const |
|
llvm::iterator_range< IntElementIterator > | getIntValues () const |
|
template<typename T , typename = typename std::enable_if< std::is_same<T, APInt>::value>::type> |
llvm::iterator_range< IntElementIterator > | getValues () const |
|
IntElementIterator | int_value_begin () const |
|
IntElementIterator | int_value_end () const |
|
llvm::iterator_range< FloatElementIterator > | getFloatValues () const |
|
template<typename T , typename = typename std::enable_if< std::is_same<T, APFloat>::value>::type> |
llvm::iterator_range< FloatElementIterator > | getValues () const |
|
FloatElementIterator | float_value_begin () const |
|
FloatElementIterator | float_value_end () const |
|
DenseElementsAttr | reshape (ShapedType newType) |
|
DenseElementsAttr | mapValues (Type newElementType, function_ref< APInt(const APInt &)> mapping) const |
|
DenseElementsAttr | mapValues (Type newElementType, function_ref< APInt(const APFloat &)> mapping) const |
|
|
template<typename Arg > |
static DenseIntElementsAttr | get (const ShapedType &type, Arg &&arg) |
|
template<typename T > |
static DenseIntElementsAttr | 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. More...
|
|
static bool | classof (Attribute attr) |
| Method for support type inquiry through isa, cast and dyn_cast. More...
|
|
static DenseElementsAttr | get (ShapedType type, ArrayRef< Attribute > values) |
|
template<typename T , typename = typename std::enable_if< std::numeric_limits<T>::is_integer || llvm::is_one_of<T, float, double>::value>::type> |
static DenseElementsAttr | get (const ShapedType &type, ArrayRef< T > values) |
|
template<typename T , typename = typename std::enable_if< std::numeric_limits<T>::is_integer || llvm::is_one_of<T, float, double>::value>::type> |
static DenseElementsAttr | get (const ShapedType &type, T value) |
| Constructs a dense integer elements attribute from a single element. More...
|
|
static DenseElementsAttr | get (ShapedType type, ArrayRef< bool > values) |
| Overload of the above 'get' method that is specialized for boolean values. More...
|
|
static DenseElementsAttr | get (ShapedType type, ArrayRef< APInt > values) |
|
static DenseElementsAttr | get (ShapedType type, ArrayRef< APFloat > values) |
|
template<typename T > |
static DenseElementsAttr | get (const ShapedType &type, const std::initializer_list< T > &list) |
|
static ClassID * | getClassID () |
| Return a unique identifier for the concrete type. More...
|
|
template<typename T > |
static bool | classof (T val) |
|
|
ArrayRef< char > | getRawData () const |
| Return the raw storage data held by this attribute. More...
|
|
IntElementIterator | raw_int_begin () const |
| Get iterators to the raw APInt values for each element in this attribute. More...
|
|
IntElementIterator | raw_int_end () const |
|
bool | isValidIntOrFloat (int64_t dataEltSize, bool isInt) const |
|
ImplType * | getImpl () const |
| Utility for easy access to the storage instance. More...
|
|
static DenseElementsAttr | getRaw (ShapedType type, ArrayRef< APInt > values) |
|
static DenseElementsAttr | getRaw (ShapedType type, ArrayRef< char > data, bool isSplat) |
|
static DenseElementsAttr | getRawIntOrFloat (ShapedType type, ArrayRef< char > data, int64_t dataEltSize, bool isInt) |
|
template<typename... Args> |
static ConcreteT | get (MLIRContext *ctx, unsigned kind, Args... args) |
|
template<typename... Args> |
static ConcreteT | getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args) |
|
template<typename... Args> |
static LogicalResult | verifyConstructionInvariants (Args... args) |
| Default implementation that just returns success. More...
|
|
An attribute that represents a reference to a dense integer vector or tensor object.