MLIR  16.0.0git
Static Public Member Functions | Static Public Attributes | List of all members
llvm::PointerLikeTypeTraits< mlir::Type > Struct Template Reference

We align TypeStorage by 8, so allow LLVM to steal the low bits. More...

#include "mlir/IR/Types.h"

+ Collaboration diagram for llvm::PointerLikeTypeTraits< mlir::Type >:

Static Public Member Functions

static voidgetAsVoidPointer (mlir::Type I)
 
static mlir::Type getFromVoidPointer (void *P)
 

Static Public Attributes

static constexpr int NumLowBitsAvailable = 3
 

Detailed Description

template<>
struct llvm::PointerLikeTypeTraits< mlir::Type >

We align TypeStorage by 8, so allow LLVM to steal the low bits.

Definition at line 317 of file Types.h.

Member Function Documentation

◆ getAsVoidPointer()

static void* llvm::PointerLikeTypeTraits< mlir::Type >::getAsVoidPointer ( mlir::Type  I)
inlinestatic

Definition at line 319 of file Types.h.

References mlir::Type::getAsOpaquePointer().

◆ getFromVoidPointer()

static mlir::Type llvm::PointerLikeTypeTraits< mlir::Type >::getFromVoidPointer ( void P)
inlinestatic

Definition at line 322 of file Types.h.

References mlir::Type::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

constexpr int llvm::PointerLikeTypeTraits< mlir::Type >::NumLowBitsAvailable = 3
static

Definition at line 325 of file Types.h.


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