|
My Project
|
An attribute representing a reference to a dense vector or tensor object. More...
#include <AttributeDetail.h>


Classes | |
| struct | KeyTy |
Public Member Functions | |
| DenseElementsAttributeStorage (ShapedType ty, ArrayRef< char > data, bool isSplat=false) | |
| bool | operator== (const KeyTy &key) const |
| Compare this storage instance with the provided key. More... | |
Public Member Functions inherited from mlir::AttributeStorage | |
| Type | getType () const |
| Get the type of this attribute. More... | |
| Dialect & | getDialect () 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 KeyTy | getKey (ShapedType ty, ArrayRef< char > data, bool isKnownSplat) |
| static KeyTy | getKeyForBoolData (ShapedType ty, ArrayRef< char > data, size_t numElements) |
| Construct a key with a set of boolean data. More... | |
| static llvm::hash_code | hashKey (const KeyTy &key) |
| Hash the key for the storage. More... | |
| static DenseElementsAttributeStorage * | construct (AttributeStorageAllocator &allocator, KeyTy key) |
| Construct a new storage instance. More... | |
Public Attributes | |
| ArrayRef< char > | data |
| bool | isSplat |
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 () | |
An attribute representing a reference to a dense vector or tensor object.
|
inline |
|
inlinestatic |
Construct a new storage instance.
|
inlinestatic |
Construct a key from a shaped type, raw data buffer, and a flag that signals if the data is already known to be a splat. Callers to this function are expected to tag preknown splat values when possible, e.g. one element shapes.
|
inlinestatic |
Construct a key with a set of boolean data.
|
inlinestatic |
Hash the key for the storage.
|
inline |
Compare this storage instance with the provided key.
| ArrayRef<char> mlir::detail::DenseElementsAttributeStorage::data |
| bool mlir::detail::DenseElementsAttributeStorage::isSplat |
1.8.13