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

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

#include "mlir/Support/TypeID.h"

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

Static Public Member Functions

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

Static Public Attributes

static constexpr int NumLowBitsAvailable = 3
 

Detailed Description

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

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
static

Definition at line 362 of file TypeID.h.


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