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

#include <LocationDetail.h>

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

Public Types

using KeyTy = std::tuple< uintptr_t, ClassID *, Location >
 The hash key used for uniquing. More...
 

Public Member Functions

 OpaqueLocationStorage (uintptr_t underlyingLocation, ClassID *classId, Location fallbackLocation)
 
bool operator== (const KeyTy &key) const
 
- 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 OpaqueLocationStorageconstruct (AttributeStorageAllocator &allocator, const KeyTy &key)
 Construct a new storage instance. More...
 

Public Attributes

uintptr_t underlyingLocation
 Pointer to the corresponding object. More...
 
ClassIDclassId
 A unique pointer for each type of underlyingLocation. More...
 
Location fallbackLocation
 

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 ()
 

Member Typedef Documentation

◆ KeyTy

using mlir::detail::OpaqueLocationStorage::KeyTy = std::tuple<uintptr_t, ClassID *, Location>

The hash key used for uniquing.

Constructor & Destructor Documentation

◆ OpaqueLocationStorage()

mlir::detail::OpaqueLocationStorage::OpaqueLocationStorage ( uintptr_t  underlyingLocation,
ClassID classId,
Location  fallbackLocation 
)
inline

Member Function Documentation

◆ construct()

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

Construct a new storage instance.

◆ operator==()

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

Member Data Documentation

◆ classId

ClassID* mlir::detail::OpaqueLocationStorage::classId

A unique pointer for each type of underlyingLocation.

◆ fallbackLocation

Location mlir::detail::OpaqueLocationStorage::fallbackLocation

An additional location that can be used if the external one is not suitable.

◆ underlyingLocation

uintptr_t mlir::detail::OpaqueLocationStorage::underlyingLocation

Pointer to the corresponding object.


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