LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
llvm::Use Class Reference

#include <Use.h>

List of all members.

Public Types

typedef PointerIntPair< User
*, 1, unsigned
UserRef

Public Member Functions

void swap (Use &RHS)
 operator Value * () const
 Normally Use will just implicitly convert to a Value* that it holds.
Valueget () const
UsergetUser () const
void set (Value *Val)
Valueoperator= (Value *RHS)
const Useoperator= (const Use &RHS)
Valueoperator-> ()
const Valueoperator-> () const
UsegetNext () const

Static Public Member Functions

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

Friends

class Value

Detailed Description

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

Definition at line 60 of file Use.h.


Member Typedef Documentation

Definition at line 68 of file Use.h.


Member Function Documentation

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

Definition at line 114 of file Use.h.

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

User * llvm::Use::getUser ( ) const
Use * llvm::Use::initTags ( Use Start,
Use Stop 
) [static]

initTags - initialize the waymarking tags on an array of Uses, so that getUser() can find the User from any of those Uses.

Definition at line 89 of file Use.cpp.

Referenced by llvm::User::allocHungoffUses(), llvm::PHINode::allocHungoffUses(), and llvm::User::operator new().

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

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

Definition at line 90 of file Use.h.

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

Definition at line 111 of file Use.h.

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

Definition at line 112 of file Use.h.

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

Definition at line 102 of file Use.h.

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

Definition at line 106 of file Use.h.

void llvm::Use::set ( Value Val) [inline]
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 23 of file Use.cpp.

References llvm::Value::addUse(), and llvm::NVPTX::PTXLdStInstCode::V2.

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 126 of file Use.cpp.

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


Friends And Related Function Documentation

friend class Value [friend]

Definition at line 147 of file Use.h.


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