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

We align TypeID::Storage by 8, so allow LLVM to steal the low bits. More...

#include "mlir/Support/TypeID.h"

Static Public Member Functions

static void * getAsVoidPointer (mlir::TypeID info)
 
static mlir::TypeID getFromVoidPointer (void *ptr)
 

Static Public Attributes

static constexpr int NumLowBitsAvailable = 3
 

Detailed Description

We align TypeID::Storage by 8, so allow LLVM to steal the low bits.

Definition at line 355 of file TypeID.h.

Member Function Documentation

◆ getAsVoidPointer()

static void* llvm::PointerLikeTypeTraits< mlir::TypeID >::getAsVoidPointer ( mlir::TypeID  info)
inlinestatic

Definition at line 356 of file TypeID.h.

References mlir::TypeID::getAsOpaquePointer().

◆ getFromVoidPointer()

static mlir::TypeID llvm::PointerLikeTypeTraits< mlir::TypeID >::getFromVoidPointer ( void *  ptr)
inlinestatic

Definition at line 359 of file TypeID.h.

References mlir::TypeID::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

constexpr int llvm::PointerLikeTypeTraits< mlir::TypeID >::NumLowBitsAvailable = 3
staticconstexpr

Definition at line 362 of file TypeID.h.


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