MLIR 22.0.0git
llvm::PointerLikeTypeTraits< mlir::Attribute > Struct Reference

Allow LLVM to steal the low bits of Attributes. More...

#include "mlir/IR/Attributes.h"

Inheritance diagram for llvm::PointerLikeTypeTraits< mlir::Attribute >:

Static Public Member Functions

static voidgetAsVoidPointer (mlir::Attribute attr)
static mlir::Attribute getFromVoidPointer (void *ptr)

Static Public Attributes

static constexpr int NumLowBitsAvailable

Detailed Description

Allow LLVM to steal the low bits of Attributes.

Definition at line 337 of file Attributes.h.

Member Function Documentation

◆ getAsVoidPointer()

void * llvm::PointerLikeTypeTraits< mlir::Attribute >::getAsVoidPointer ( mlir::Attribute attr)
inlinestatic

Definition at line 338 of file Attributes.h.

References mlir::Attribute::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 341 of file Attributes.h.

References mlir::Attribute::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

int llvm::PointerLikeTypeTraits< mlir::Attribute >::NumLowBitsAvailable
staticconstexpr
Initial value:
= llvm::PointerLikeTypeTraits<
Base storage class appearing in an attribute.

Definition at line 344 of file Attributes.h.


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