LLVM API Documentation

llvm::Use Class Reference

#include <Use.h>

Inheritance diagram for llvm::Use:
[legend]
Collaboration diagram for llvm::Use:
[legend]

List of all members.

Public Member Functions

void swap (Use &RHS)
 operator Value * () const
 Normally Use will just implicitly convert to a Value* that it holds.
Value * get () const
User * getUser () const
void set (Value *Val)
Value * operator= (Value *RHS)
const Use & operator= (const Use &RHS)
Value * operator-> ()
const Value * operator-> () const
Use * getNext () const

Static Public Member Functions

static void zap (Use *Start, const Use *Stop, bool del=false)

Friends

class Value
class User


Detailed Description

Use is here to make keeping the "use" list of a Value up-to-date really easy.

Definition at line 39 of file Use.h.


Member Function Documentation

void llvm::Use::swap ( Use &  RHS  ) 

swap - provide a fast substitute to std::swap<Use> that also works with less standard-compliant compilers

Definition at line 22 of file Use.cpp.

References llvm::Value::addUse(), removeFromList(), V1, and Val.

llvm::Use::operator Value * (  )  const [inline]

Normally Use will just implicitly convert to a Value* that it holds.

Definition at line 64 of file Use.h.

Value* llvm::Use::get (  )  const [inline]

User * llvm::Use::getUser (  )  const

getUser - This returns the User that contains this Use. For an instruction operand, for example, this will return the instruction.

Definition at line 141 of file Use.cpp.

References End, llvm::PointerIntPair< PointerTy, IntBits, IntType >::getInt(), and llvm::PointerIntPair< PointerTy, IntBits, IntType >::getPointer().

Referenced by llvm::value_use_iterator< UserTy >::operator*(), OptimizeGlobalAddressOfMalloc(), llvm::PointerMayBeCaptured(), and llvm::Value::uncheckedReplaceAllUsesWith().

void llvm::Use::set ( Value *  Val  )  [inline]

Value* llvm::Use::operator= ( Value *  RHS  )  [inline]

Definition at line 76 of file Use.h.

const Use& llvm::Use::operator= ( const Use &  RHS  )  [inline]

Definition at line 80 of file Use.h.

References Val.

Value* llvm::Use::operator-> (  )  [inline]

Definition at line 85 of file Use.h.

const Value* llvm::Use::operator-> (  )  const [inline]

Definition at line 86 of file Use.h.

Use* llvm::Use::getNext (  )  const [inline]

Definition at line 88 of file Use.h.

Referenced by llvm::value_use_iterator< UserTy >::operator++().

void llvm::Use::zap ( Use *  Start,
const Use *  Stop,
bool  del = false 
) [static]

zap - This is used to destroy Use operands when the number of operands of a User changes.

Definition at line 113 of file Use.cpp.

Referenced by llvm::User::dropHungoffUses(), llvm::BitcodeReaderValueList::resize(), and llvm::User::~User().


Friends And Related Function Documentation

friend class Value [friend]

Definition at line 118 of file Use.h.

friend class User [friend]

Definition at line 119 of file Use.h.


The documentation for this class was generated from the following files: