MLIR
20.0.0git
|
#include "IR/AttributeDetail.h"
Public Types | |
using | KeyTy = std::pair< StringRef, Type > |
The hash key is a tuple of the parameter types. More... | |
Public Member Functions | |
StringAttrStorage (StringRef value, Type type) | |
bool | operator== (const KeyTy &key) const |
void | initialize (MLIRContext *context) |
Initialize the storage given an MLIRContext. More... | |
Public Member Functions inherited from mlir::AttributeStorage | |
const AbstractAttribute & | getAbstractAttribute () const |
Return the abstract descriptor for this attribute. More... | |
Static Public Member Functions | |
::llvm::hash_code | hashKey (const KeyTy &key) |
static StringAttrStorage * | construct (AttributeStorageAllocator &allocator, const KeyTy &key) |
Define a construction method for creating a new instance of this storage. More... | |
Public Attributes | |
Type | type |
The type of the string. More... | |
StringRef | value |
The raw string value. More... | |
Dialect * | referencedDialect |
If the string value contains a dialect namespace prefix (e.g. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::AttributeStorage | |
void | initializeAbstractAttribute (const AbstractAttribute &abstractAttr) |
Set the abstract attribute for this storage instance. More... | |
void | initialize (MLIRContext *context) |
Default initialization for attribute storage classes that require no additional initialization. More... | |
Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage | |
BaseStorage ()=default | |
Definition at line 324 of file AttributeDetail.h.
using mlir::detail::StringAttrStorage::KeyTy = std::pair<StringRef, Type> |
The hash key is a tuple of the parameter types.
Definition at line 329 of file AttributeDetail.h.
|
inline |
Definition at line 325 of file AttributeDetail.h.
Referenced by construct().
|
inlinestatic |
Define a construction method for creating a new instance of this storage.
Definition at line 339 of file AttributeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), mlir::StorageUniquer::StorageAllocator::copyInto(), and StringAttrStorage().
|
inlinestatic |
Definition at line 333 of file AttributeDetail.h.
void StringAttrStorage::initialize | ( | MLIRContext * | context | ) |
Initialize the storage given an MLIRContext.
Definition at line 1199 of file MLIRContext.cpp.
References mlir::MLIRContext::getImpl(), and mlir::MLIRContext::getLoadedDialect().
|
inline |
Definition at line 330 of file AttributeDetail.h.
Dialect* mlir::detail::StringAttrStorage::referencedDialect |
If the string value contains a dialect namespace prefix (e.g.
dialect.blah), this is the dialect referenced.
Definition at line 354 of file AttributeDetail.h.
Referenced by mlir::MLIRContext::getOrLoadDialect().
Type mlir::detail::StringAttrStorage::type |
The type of the string.
Definition at line 349 of file AttributeDetail.h.
Referenced by operator==().
StringRef mlir::detail::StringAttrStorage::value |