LLVM: llvm::NamedMDNode Class Reference (original) (raw)

A tuple of MDNodes. More...

#include "[llvm/IR/Metadata.h](Metadata%5F8h%5Fsource.html)"

Public Member Functions
NamedMDNode (const NamedMDNode &)=delete
LLVM_ABI ~NamedMDNode ()
LLVM_ABI void eraseFromParent ()
Drop all references and remove the node from parent module.
void dropAllReferences ()
Remove all uses and clear node vector.
LLVM_ABI void clearOperands ()
Drop all references to this node's operands.
Module * getParent ()
Get the module that holds this named metadata collection.
const Module * getParent () const
LLVM_ABI MDNode * getOperand (unsigned i) const
LLVM_ABI unsigned getNumOperands () const
LLVM_ABI void addOperand (MDNode *M)
LLVM_ABI void setOperand (unsigned I, MDNode *New)
LLVM_ABI StringRef getName () const
LLVM_ABI void print (raw_ostream &ROS, bool IsForDebug=false) const
LLVM_ABI void print (raw_ostream &ROS, ModuleSlotTracker &MST, bool IsForDebug=false) const
LLVM_ABI void dump () const
op_iterator op_begin ()
op_iterator op_end ()
const_op_iterator op_begin () const
const_op_iterator op_end () const
iterator_range< op_iterator > operands ()
iterator_range< const_op_iterator > operands () const
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NamedMDNode, Options... >::type >
self_iterator getIterator ()
reverse_self_iterator getReverseIterator ()
std::enable_if_t< T::is_sentinel_tracking_explicit, bool > isSentinel () const
Check whether this is the sentinel node.
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< NamedMDNode, Options... >::type >, ilist_detail::compute_node_options< NamedMDNode, Options... >::type::parent_ty >
const ilist_detail::compute_node_options< NamedMDNode, Options... >::type::parent_ty * getParent () const
void setParent (ilist_detail::compute_node_options< NamedMDNode, Options... >::type::parent_ty *Parent)
Friends
class LLVMContextImpl
class Module
Additional Inherited Members
Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NamedMDNode, Options... >::type >
using self_iterator
using const_self_iterator
using reverse_self_iterator
using const_reverse_self_iterator
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NamedMDNode, Options... >::type >
ilist_node_impl ()=default

A tuple of MDNodes.

Despite its name, a NamedMDNode isn't itself an MDNode.

NamedMDNodes are named module-level entities that contain lists of MDNodes.

It is illegal for a NamedMDNode to appear as an operand of an MDNode.

Definition at line 1757 of file Metadata.h.

const_op_iterator

op_iterator

~NamedMDNode()

NamedMDNode::~NamedMDNode ( )

addOperand()

void NamedMDNode::addOperand ( MDNode * M )

Definition at line 1499 of file Metadata.cpp.

References getNMDOps().

Referenced by addFunctionTypeMutation(), llvm::CloneFunctionInto(), llvm::CloneModule(), llvm::DIBuilder::createCompileUnit(), llvm::embedBufferInModule(), llvm::emitAMDGPUPrintfCall(), emitDXILVersionTupleMD(), emitResourceMetadata(), emitShaderModelVersionMD(), emitValidatorVersionMD(), llvm::offloading::getOffloadingEntryInitializer(), stripDeadDebugInfoImpl(), llvm::stripDebugifyMetadata(), translateGlobalMetadata(), and llvm::UpgradeNVVMAnnotations().

clearOperands()

void NamedMDNode::clearOperands ( )

dropAllReferences()

void llvm::NamedMDNode::dropAllReferences ( ) inline

dump()

eraseFromParent()

void NamedMDNode::eraseFromParent ( )

getName()

getNumOperands()

unsigned NamedMDNode::getNumOperands ( ) const

Definition at line 1489 of file Metadata.cpp.

References getNMDOps().

Referenced by analyzeModule(), llvm::cacheAnnotationFromMD(), llvm::copyModuleAttrToFunctions(), llvm::emitAMDGPUPrintfCall(), getHiPELiteral(), getOCLKernelArgAttribute(), getOperand(), op_end(), op_end(), setOperand(), llvm::stripDebugifyMetadata(), and llvm::UpgradeModuleFlags().

getOperand()

Definition at line 1493 of file Metadata.cpp.

References assert(), llvm::cast_or_null(), getNMDOps(), getNumOperands(), and N.

Referenced by llvm::cacheAnnotationFromMD(), collectMetadataInfo(), llvm::copyModuleAttrToFunctions(), getHiPELiteral(), getOCLKernelArgAttribute(), handleValVerMetadata(), translateGlobalMetadata(), llvm::UpgradeModuleFlags(), and upgradeRetainReleaseMarker().

getParent() [1/2]

Module * llvm::NamedMDNode::getParent ( ) inline

getParent() [2/2]

const Module * llvm::NamedMDNode::getParent ( ) const inline

op_begin() [1/2]

op_iterator llvm::NamedMDNode::op_begin ( ) inline

op_begin() [2/2]

const_op_iterator llvm::NamedMDNode::op_begin ( ) const inline

op_end() [1/2]

op_iterator llvm::NamedMDNode::op_end ( ) inline

op_end() [2/2]

const_op_iterator llvm::NamedMDNode::op_end ( ) const inline

operands() [1/2]

operands() [2/2]

print() [1/2]

void NamedMDNode::print ( raw_ostream & ROS,
bool IsForDebug = false ) const

print() [2/2]

setOperand()

LLVMContextImpl

Module


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