MLIR  15.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::LLVM::detail::LLVMPointerTypeStorage Struct Reference

Storage type for LLVM dialect pointer types. More...

#include "Dialect/LLVMIR/IR/TypeDetail.h"

+ Inheritance diagram for mlir::LLVM::detail::LLVMPointerTypeStorage:
+ Collaboration diagram for mlir::LLVM::detail::LLVMPointerTypeStorage:

Public Types

using KeyTy = std::tuple< Type, unsigned >
 

Public Member Functions

 LLVMPointerTypeStorage (const KeyTy &key)
 
bool operator== (const KeyTy &key) const
 
- Public Member Functions inherited from mlir::TypeStorage
const AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...
 

Static Public Member Functions

static LLVMPointerTypeStorageconstruct (TypeStorageAllocator &allocator, const KeyTy &key)
 

Public Attributes

Type pointeeType
 
unsigned addressSpace
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::TypeStorage
 TypeStorage ()
 This constructor is used by derived classes as part of the TypeUniquer. More...
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default
 

Detailed Description

Storage type for LLVM dialect pointer types.

These are uniqued by a pair of element type and address space. The element type may be null indicating that the pointer is opaque.

Definition at line 387 of file TypeDetail.h.

Member Typedef Documentation

◆ KeyTy

Definition at line 388 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ LLVMPointerTypeStorage()

mlir::LLVM::detail::LLVMPointerTypeStorage::LLVMPointerTypeStorage ( const KeyTy key)
inline

Definition at line 390 of file TypeDetail.h.

Member Function Documentation

◆ construct()

static LLVMPointerTypeStorage* mlir::LLVM::detail::LLVMPointerTypeStorage::construct ( TypeStorageAllocator allocator,
const KeyTy key 
)
inlinestatic

Definition at line 393 of file TypeDetail.h.

References mlir::StorageUniquer::StorageAllocator::allocate().

◆ operator==()

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

Definition at line 399 of file TypeDetail.h.

Member Data Documentation

◆ addressSpace

unsigned mlir::LLVM::detail::LLVMPointerTypeStorage::addressSpace

Definition at line 404 of file TypeDetail.h.

◆ pointeeType

Type mlir::LLVM::detail::LLVMPointerTypeStorage::pointeeType

Definition at line 403 of file TypeDetail.h.


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