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

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

#include "mlir/IR/Attributes.h"

+ Inheritance diagram for llvm::PointerLikeTypeTraits< mlir::Attribute >:
+ Collaboration 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

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

Allow LLVM to steal the low bits of Attributes.

Definition at line 290 of file Attributes.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 291 of file Attributes.h.

References mlir::Attribute::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 294 of file Attributes.h.

References mlir::Attribute::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

constexpr int llvm::PointerLikeTypeTraits< mlir::Attribute >::NumLowBitsAvailable
static
Initial value:
= llvm::PointerLikeTypeTraits<

Definition at line 297 of file Attributes.h.


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