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 372 of file Attributes.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 373 of file Attributes.h.

References mlir::Attribute::getAsOpaquePointer().

◆ getFromVoidPointer()

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

Definition at line 376 of file Attributes.h.

References mlir::Attribute::getFromOpaquePointer().

Member Data Documentation

◆ NumLowBitsAvailable

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

Definition at line 379 of file Attributes.h.

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