LLVM  8.0.1
Public Types | Static Public Member Functions | List of all members
llvm::Use::UserRefPointerTraits Struct Reference

Pointer traits for the UserRef PointerIntPair. More...

#include "llvm/IR/Use.h"

Public Types

enum  { NumLowBitsAvailable = 1 }
 

Static Public Member Functions

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

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 66 of file Use.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NumLowBitsAvailable 

Definition at line 73 of file Use.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 67 of file Use.h.

References P.

◆ getFromVoidPointer()

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

Definition at line 69 of file Use.h.

References P.


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