My Project
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::detail::SparseElementsAttributeStorage Struct Reference

An attribute representing a reference to a sparse vector or tensor object. More...

#include <AttributeDetail.h>

Inheritance diagram for mlir::detail::SparseElementsAttributeStorage:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::SparseElementsAttributeStorage:
Collaboration graph
[legend]

Public Types

using KeyTy = std::tuple< Type, DenseIntElementsAttr, DenseElementsAttr >
 

Public Member Functions

 SparseElementsAttributeStorage (Type type, DenseIntElementsAttr indices, DenseElementsAttr values)
 
bool operator== (const KeyTy &key) const
 Key equality and hash functions. More...
 
- Public Member Functions inherited from mlir::AttributeStorage
Type getType () const
 Get the type of this attribute. More...
 
DialectgetDialect () const
 Get the dialect of this attribute. More...
 
- Public Member Functions inherited from mlir::StorageUniquer::BaseStorage
unsigned getKind () const
 Get the kind classification of this storage. More...
 

Static Public Member Functions

static unsigned hashKey (const KeyTy &key)
 
static SparseElementsAttributeStorageconstruct (AttributeStorageAllocator &allocator, KeyTy key)
 Construct a new storage instance. More...
 

Public Attributes

DenseIntElementsAttr indices
 
DenseElementsAttr values
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::AttributeStorage
 AttributeStorage (Type type)
 
 AttributeStorage ()
 
void setType (Type type)
 Set the type of this attribute. More...
 
void initializeDialect (Dialect &newDialect)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()
 

Detailed Description

An attribute representing a reference to a sparse vector or tensor object.

Member Typedef Documentation

◆ KeyTy

Constructor & Destructor Documentation

◆ SparseElementsAttributeStorage()

mlir::detail::SparseElementsAttributeStorage::SparseElementsAttributeStorage ( Type  type,
DenseIntElementsAttr  indices,
DenseElementsAttr  values 
)
inline

Member Function Documentation

◆ construct()

static SparseElementsAttributeStorage* mlir::detail::SparseElementsAttributeStorage::construct ( AttributeStorageAllocator allocator,
KeyTy  key 
)
inlinestatic

Construct a new storage instance.

◆ hashKey()

static unsigned mlir::detail::SparseElementsAttributeStorage::hashKey ( const KeyTy key)
inlinestatic

◆ operator==()

bool mlir::detail::SparseElementsAttributeStorage::operator== ( const KeyTy key) const
inline

Key equality and hash functions.

Member Data Documentation

◆ indices

DenseIntElementsAttr mlir::detail::SparseElementsAttributeStorage::indices

◆ values

DenseElementsAttr mlir::detail::SparseElementsAttributeStorage::values

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