MLIR 23.0.0git
mlir::detail::DenseIntOrFPElementsAttrStorage Struct Reference

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

#include "IR/AttributeDetail.h"

Inheritance diagram for mlir::detail::DenseIntOrFPElementsAttrStorage:

Classes

struct  KeyTy

Public Member Functions

 DenseIntOrFPElementsAttrStorage (ShapedType ty, ArrayRef< char > data)
bool operator== (const KeyTy &key) const
 Compare this storage instance with the provided key.
Public Member Functions inherited from mlir::detail::DenseElementsAttributeStorage
 DenseElementsAttributeStorage (ShapedType type)
Public Member Functions inherited from mlir::AttributeStorage
const AbstractAttributegetAbstractAttribute () const
 Return the abstract descriptor for this attribute.

Static Public Member Functions

static KeyTy getKey (ShapedType ty, ArrayRef< char > data)
 Construct a key from a shaped type and raw data buffer.
static llvm::hash_code hashKey (const KeyTy &key)
 Hash the key for the storage.
static DenseIntOrFPElementsAttrStorageconstruct (AttributeStorageAllocator &allocator, KeyTy key)
 Construct a new storage instance.

Public Attributes

ArrayRef< char > data
Public Attributes inherited from mlir::detail::DenseElementsAttributeStorage
ShapedType type

Additional Inherited Members

Protected Member Functions inherited from mlir::AttributeStorage
void initializeAbstractAttribute (const AbstractAttribute &abstractAttr)
 Set the abstract attribute for this storage instance.
void initialize (MLIRContext *context)
 Default initialization for attribute storage classes that require no additional initialization.
Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default

Detailed Description

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

Definition at line 52 of file AttributeDetail.h.

Constructor & Destructor Documentation

◆ DenseIntOrFPElementsAttrStorage()

mlir::detail::DenseIntOrFPElementsAttrStorage::DenseIntOrFPElementsAttrStorage ( ShapedType ty,
ArrayRef< char > data )
inline

Member Function Documentation

◆ construct()

◆ getKey()

KeyTy mlir::detail::DenseIntOrFPElementsAttrStorage::getKey ( ShapedType ty,
ArrayRef< char > data )
inlinestatic

Construct a key from a shaped type and raw data buffer.

Definition at line 76 of file AttributeDetail.h.

References data, and mlir::detail::getDenseElementBitWidth().

◆ hashKey()

llvm::hash_code mlir::detail::DenseIntOrFPElementsAttrStorage::hashKey ( const KeyTy & key)
inlinestatic

◆ operator==()

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

Member Data Documentation

◆ data

ArrayRef<char> mlir::detail::DenseIntOrFPElementsAttrStorage::data

Definition at line 129 of file AttributeDetail.h.

Referenced by construct(), DenseIntOrFPElementsAttrStorage(), getKey(), and operator==().


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