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

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

#include "mlir/IR/Types.h"

Static Public Member Functions

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

Static Public Attributes

static constexpr int NumLowBitsAvailable = 3
 

Detailed Description

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

Definition at line 377 of file Types.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 379 of file Types.h.

References mlir::Type::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 382 of file Types.h.

References mlir::Type::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

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

Definition at line 385 of file Types.h.


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