MLIR  19.0.0git
Static Public Member Functions | Static Public Attributes | List of all members
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 void * getAsVoidPointer (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 367 of file Attributes.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 368 of file Attributes.h.

References mlir::Attribute::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 371 of file Attributes.h.

References mlir::Attribute::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

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

Definition at line 374 of file Attributes.h.


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