LLVM 24.0.0git
llvm::ReplaceableUsesWithContext Class Reference

Replaceable metadata that remembers its LLVMContext, for owners with no other route to it. More...

#include "llvm/IR/Metadata.h"

Inheritance diagram for llvm::ReplaceableUsesWithContext:
[legend]

Public Member Functions

 ReplaceableUsesWithContext (LLVMContext &Context)
LLVMContextgetContext () const
Public Member Functions inherited from llvm::ReplaceableUses
ReplaceableUsesoperator= (const ReplaceableUses &)=delete
LLVM_ABI void replaceAllUsesWith (Metadata *MD)
 Replace all uses of this with MD.
LLVM_ABI SmallVector< Metadata * > getAllArgListUsers ()
 Returns the list of all DIArgList users of this.
LLVM_ABI SmallVector< DbgVariableRecord * > getAllDbgVariableRecordUsers ()
 Returns the list of all DbgVariableRecord users of this.
LLVM_ABI void resolveAllUses (bool ResolveUsers=true)
 Resolve all uses of this.
unsigned getNumUses () const

Additional Inherited Members

Public Types inherited from llvm::ReplaceableUses
using OwnerTy = MetadataTracking::OwnerTy
Static Public Member Functions inherited from llvm::ReplaceableUses
static LLVM_ABI void SalvageDebugInfo (const Constant &C)
 Replace all uses of the constant with Undef in debug info metadata.
Protected Member Functions inherited from llvm::ReplaceableUses
 ~ReplaceableUses ()

Detailed Description

Replaceable metadata that remembers its LLVMContext, for owners with no other route to it.

Definition at line 451 of file Metadata.h.

Constructor & Destructor Documentation

◆ ReplaceableUsesWithContext()

llvm::ReplaceableUsesWithContext::ReplaceableUsesWithContext ( LLVMContext & Context)
inlineexplicit

Definition at line 455 of file Metadata.h.

Referenced by llvm::DIArgList::LLVMContextImpl.

Member Function Documentation

◆ getContext()

LLVMContext & llvm::ReplaceableUsesWithContext::getContext ( ) const
inline

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