LLVM 18.0.0git
Public Member Functions | List of all members
llvm::MDOperand Class Reference

Tracking metadata reference owned by Metadata. More...

#include "llvm/IR/Metadata.h"

Public Member Functions

 MDOperand ()=default
 
 MDOperand (const MDOperand &)=delete
 
 MDOperand (MDOperand &&Op)
 
MDOperandoperator= (const MDOperand &)=delete
 
MDOperandoperator= (MDOperand &&Op)
 
bool equalsStr (StringRef Str) const
 
 ~MDOperand ()
 
Metadataget () const
 
 operator Metadata * () const
 
Metadataoperator-> () const
 
Metadataoperator* () const
 
void reset ()
 
void reset (Metadata *MD, Metadata *Owner)
 

Detailed Description

Tracking metadata reference owned by Metadata.

Similar to TrackingMDRef, but it's expected to be owned by an instance of Metadata, which has the option of registering itself for callbacks to re-unique itself.

In particular, this is used by MDNode.

Definition at line 772 of file Metadata.h.

Constructor & Destructor Documentation

◆ MDOperand() [1/3]

llvm::MDOperand::MDOperand ( )
default

◆ MDOperand() [2/3]

llvm::MDOperand::MDOperand ( const MDOperand )
delete

◆ MDOperand() [3/3]

llvm::MDOperand::MDOperand ( MDOperand &&  Op)
inline

Definition at line 778 of file Metadata.h.

References llvm::MetadataTracking::retrack().

◆ ~MDOperand()

llvm::MDOperand::~MDOperand ( )
inline

Definition at line 799 of file Metadata.h.

Member Function Documentation

◆ equalsStr()

bool llvm::MDOperand::equalsStr ( StringRef  Str) const
inline

Definition at line 794 of file Metadata.h.

References get().

◆ get()

Metadata * llvm::MDOperand::get ( ) const
inline

◆ operator Metadata *()

llvm::MDOperand::operator Metadata * ( ) const
inline

Definition at line 802 of file Metadata.h.

References get().

◆ operator*()

Metadata & llvm::MDOperand::operator* ( ) const
inline

Definition at line 804 of file Metadata.h.

References get().

◆ operator->()

Metadata * llvm::MDOperand::operator-> ( ) const
inline

Definition at line 803 of file Metadata.h.

References get().

◆ operator=() [1/2]

MDOperand & llvm::MDOperand::operator= ( const MDOperand )
delete

◆ operator=() [2/2]

MDOperand & llvm::MDOperand::operator= ( MDOperand &&  Op)
inline

Definition at line 785 of file Metadata.h.

References llvm::MetadataTracking::retrack().

◆ reset() [1/2]

void llvm::MDOperand::reset ( )
inline

Definition at line 806 of file Metadata.h.

Referenced by llvm::MDNode::setOperand().

◆ reset() [2/2]

void llvm::MDOperand::reset ( Metadata MD,
Metadata Owner 
)
inline

Definition at line 810 of file Metadata.h.


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