MLIR 22.0.0git
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 voidgetAsVoidPointer (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 340 of file Types.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 342 of file Types.h.

References mlir::Type::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 345 of file Types.h.

References mlir::Type::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

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

Definition at line 348 of file Types.h.


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