LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::MDNodeOperand Class Reference
Inheritance diagram for llvm::MDNodeOperand:
Inheritance graph
[legend]
Collaboration diagram for llvm::MDNodeOperand:
Collaboration graph
[legend]

Public Member Functions

 MDNodeOperand (Value *V)
 
virtual ~MDNodeOperand ()
 
void set (Value *V)
 
void setAsFirstOperand (unsigned V)
 
virtual void deleted ()
 
virtual void allUsesReplacedWith (Value *NV)
 
- Public Member Functions inherited from llvm::CallbackVH
 CallbackVH ()
 
 CallbackVH (Value *P)
 
 operator Value * () const
 
- Public Member Functions inherited from llvm::ValueHandleBase
 ValueHandleBase (HandleBaseKind Kind)
 
 ValueHandleBase (HandleBaseKind Kind, Value *V)
 
 ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS)
 
 ~ValueHandleBase ()
 
Valueoperator= (Value *RHS)
 
Valueoperator= (const ValueHandleBase &RHS)
 
Valueoperator-> () const
 
Valueoperator* () const
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ValueHandleBase
static void ValueIsDeleted (Value *V)
 
static void ValueIsRAUWd (Value *Old, Value *New)
 
- Protected Types inherited from llvm::ValueHandleBase
enum  HandleBaseKind { Assert, Callback, Tracking, Weak }
 
- Protected Member Functions inherited from llvm::CallbackVH
 CallbackVH (const CallbackVH &RHS)
 
virtual ~CallbackVH ()
 
void setValPtr (Value *P)
 
- Protected Member Functions inherited from llvm::ValueHandleBase
ValuegetValPtr () const
 
void setValPtrInt (unsigned K)
 
unsigned getValPtrInt () const
 
- Static Protected Member Functions inherited from llvm::ValueHandleBase
static bool isValid (Value *V)
 

Detailed Description

Definition at line 54 of file Metadata.cpp.

Constructor & Destructor Documentation

llvm::MDNodeOperand::MDNodeOperand ( Value V)
inline

Definition at line 67 of file Metadata.cpp.

MDNodeOperand::~MDNodeOperand ( )
virtual

Definition at line 86 of file Metadata.cpp.

Member Function Documentation

void MDNodeOperand::allUsesReplacedWith ( Value )
virtual

Called when this->getValPtr()->replaceAllUsesWith(new_value) is called, before any of the uses have actually been replaced. If WeakVH were implemented as a CallbackVH, it would use this method to call setValPtr(new_value). AssertingVH would do nothing in this method.

Reimplemented from llvm::CallbackVH.

Definition at line 92 of file Metadata.cpp.

void MDNodeOperand::deleted ( )
virtual

Called when this->getValPtr() is destroyed, inside ~Value(), so you may call any non-virtual Value method on getValPtr(), but no subclass methods. If WeakVH were implemented as a CallbackVH, it would use this method to call setValPtr(NULL). AssertingVH would use this method to cause an assertion failure.

All implementations must remove the reference from this object to the Value that's being destroyed.

Reimplemented from llvm::CallbackVH.

Definition at line 88 of file Metadata.cpp.

void llvm::MDNodeOperand::set ( Value V)
inline
void llvm::MDNodeOperand::setAsFirstOperand ( unsigned  V)
inline

setAsFirstOperand - Accessor method to mark the operand as the first in the list.

Definition at line 78 of file Metadata.cpp.

References llvm::ValueHandleBase::setValPtrInt().

Referenced by set().


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