My Project
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::ArrayAttr Class Reference

#include <Attributes.h>

Inheritance diagram for mlir::ArrayAttr:
Inheritance graph
[legend]
Collaboration diagram for mlir::ArrayAttr:
Collaboration graph
[legend]

Public Types

using ValueType = ArrayRef< Attribute >
 
using iterator = llvm::ArrayRef< Attribute >::iterator
 Support range iteration. More...
 
- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 

Public Member Functions

ArrayRef< AttributegetValue () const
 
iterator begin () const
 
iterator end () const
 
size_t size () const
 
template<typename AttrTy >
llvm::iterator_range< attr_value_iterator< AttrTy > > getAsRange ()
 

Static Public Member Functions

static ArrayAttr get (ArrayRef< Attribute > value, MLIRContext *context)
 
static bool kindof (unsigned kind)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
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...
 

Detailed Description

Array attributes are lists of other attributes. They are not necessarily type homogenous given that attributes don't, in general, carry types.

Member Typedef Documentation

◆ iterator

Support range iteration.

◆ ValueType

Member Function Documentation

◆ begin()

iterator mlir::ArrayAttr::begin ( ) const
inline

◆ end()

iterator mlir::ArrayAttr::end ( ) const
inline

◆ get()

ArrayAttr ArrayAttr::get ( ArrayRef< Attribute value,
MLIRContext context 
)
static

◆ getAsRange()

template<typename AttrTy >
llvm::iterator_range<attr_value_iterator<AttrTy> > mlir::ArrayAttr::getAsRange ( )
inline

◆ getValue()

ArrayRef< Attribute > ArrayAttr::getValue ( ) const

◆ kindof()

static bool mlir::ArrayAttr::kindof ( unsigned  kind)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.

◆ size()

size_t mlir::ArrayAttr::size ( ) const
inline

The documentation for this class was generated from the following files: