LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::Use Class Reference

#include <Use.h>

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. More...
 
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

If implicit conversion to Value* doesn't work, the get() method returns the Value*.

Definition at line 94 of file Use.h.

Referenced by llvm::simplify_type< Use >::getSimplifiedValue(), llvm::simplify_type< const Use >::getSimplifiedValue(), and llvm::SSAUpdater::RewriteUse().

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

Definition at line 114 of file Use.h.

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.

References set().

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

Definition at line 106 of file Use.h.

References set().

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: