LLVM  11.0.0git
Static Public Member Functions | Static Public Attributes | List of all members
llvm::Use::UserRefPointerTraits Struct Reference

Pointer traits for the UserRef PointerIntPair. More...

#include "llvm/IR/Use.h"

Collaboration diagram for llvm::Use::UserRefPointerTraits:
Collaboration graph
[legend]

Static Public Member Functions

static void * getAsVoidPointer (User *P)
 
static UsergetFromVoidPointer (void *P)
 

Static Public Attributes

static constexpr int NumLowBitsAvailable = 1
 

Detailed Description

Pointer traits for the UserRef PointerIntPair.

This ensures we always use the LSB regardless of pointer alignment on different targets.

Definition at line 65 of file Use.h.

Member Function Documentation

◆ getAsVoidPointer()

static void* llvm::Use::UserRefPointerTraits::getAsVoidPointer ( User P)
inlinestatic

Definition at line 66 of file Use.h.

References P.

◆ getFromVoidPointer()

static User* llvm::Use::UserRefPointerTraits::getFromVoidPointer ( void *  P)
inlinestatic

Definition at line 68 of file Use.h.

References P.

Member Data Documentation

◆ NumLowBitsAvailable

constexpr int llvm::Use::UserRefPointerTraits::NumLowBitsAvailable = 1
static

Definition at line 72 of file Use.h.


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