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
Use * getPrefix ()
 getPrefix - Return deletable pointer if appropriate

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

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

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

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

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

Definition at line 95 of file Use.h.

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

Definition at line 99 of file Use.h.

References Val.

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

Definition at line 104 of file Use.h.

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

Definition at line 105 of file Use.h.

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

Definition at line 107 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::MetadataBase::resizeOperands(), and llvm::User::~User().

Use * Use::getPrefix (  ) 

getPrefix - Return deletable pointer if appropriate

Definition at line 674 of file Instructions.cpp.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits >::getOpaqueValue().

Referenced by llvm::BranchInst::~BranchInst().


Friends And Related Function Documentation

friend class Value [friend]

Definition at line 139 of file Use.h.

friend class User [friend]

Definition at line 140 of file Use.h.


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