LLVM 20.0.0git
|
A tuple of MDNodes. More...
#include "llvm/IR/Metadata.h"
Public Types | |
using | op_iterator = op_iterator_impl< MDNode * > |
using | const_op_iterator = op_iterator_impl< const MDNode * > |
Friends | |
class | LLVMContextImpl |
class | Module |
Additional Inherited Members | |
Protected Types inherited from llvm::ilist_node_impl< OptionsT > | |
using | self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, false >::type |
using | const_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, true >::type |
using | reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, false >::type |
using | const_reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, true >::type |
Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT > | |
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 1731 of file Metadata.h.
using llvm::NamedMDNode::const_op_iterator = op_iterator_impl<const MDNode *> |
Definition at line 1822 of file Metadata.h.
using llvm::NamedMDNode::op_iterator = op_iterator_impl<MDNode *> |
Definition at line 1817 of file Metadata.h.
|
delete |
NamedMDNode::~NamedMDNode | ( | ) |
Definition at line 1416 of file Metadata.cpp.
References dropAllReferences(), and getNMDOps().
void NamedMDNode::addOperand | ( | MDNode * | M | ) |
Definition at line 1431 of file Metadata.cpp.
References getNMDOps().
Referenced by llvm::CloneModule(), llvm::DIBuilder::createCompileUnit(), llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(), llvm::OpenMPIRBuilder::createOffloadEntry(), llvm::embedBufferInModule(), llvm::emitAMDGPUPrintfCall(), emitDXILVersionTupleMD(), emitResourceMetadata(), emitShaderModelVersionMD(), emitValidatorVersionMD(), llvm::offloading::getOffloadingEntryInitializer(), stripDeadDebugInfoImpl(), llvm::stripDebugifyMetadata(), translateMetadata(), and updateNVPTXMetadata().
void NamedMDNode::clearOperands | ( | ) |
Drop all references to this node's operands.
Definition at line 1440 of file Metadata.cpp.
References getNMDOps().
Referenced by dropAllReferences(), emitValidatorVersionMD(), stripDeadDebugInfoImpl(), and llvm::stripDebugifyMetadata().
|
inline |
Remove all uses and clear node vector.
Definition at line 1796 of file Metadata.h.
References clearOperands().
Referenced by handleValVerMetadata(), and ~NamedMDNode().
LLVM_DUMP_METHOD void NamedMDNode::dump | ( | ) | const |
Definition at line 5334 of file AsmWriter.cpp.
References llvm::dbgs(), and print().
void NamedMDNode::eraseFromParent | ( | ) |
Drop all references and remove the node from parent module.
Definition at line 1438 of file Metadata.cpp.
References llvm::Module::eraseNamedMetadata(), and getParent().
Referenced by handleValVerMetadata(), and llvm::stripDebugifyMetadata().
StringRef NamedMDNode::getName | ( | ) | const |
Definition at line 1442 of file Metadata.cpp.
Referenced by LLVMGetNamedMetadataName(), and llvm::stripNonLineTableDebugInfo().
unsigned NamedMDNode::getNumOperands | ( | ) | const |
Definition at line 1421 of file Metadata.cpp.
References getNMDOps().
Referenced by llvm::cacheAnnotationFromMD(), llvm::emitAMDGPUPrintfCall(), getHiPELiteral(), getOCLKernelArgAttribute(), getOperand(), op_end(), setOperand(), llvm::stripDebugifyMetadata(), and llvm::UpgradeModuleFlags().
Definition at line 1425 of file Metadata.cpp.
References assert(), getNMDOps(), getNumOperands(), and N.
Referenced by llvm::cacheAnnotationFromMD(), collectMetadataInfo(), getHiPELiteral(), getOCLKernelArgAttribute(), handleValVerMetadata(), translateMetadata(), llvm::UpgradeModuleFlags(), and upgradeRetainReleaseMarker().
|
inline |
Get the module that holds this named metadata collection.
Definition at line 1801 of file Metadata.h.
Referenced by eraseFromParent(), LLVMGetNextNamedMetadata(), LLVMGetPreviousNamedMetadata(), and print().
Definition at line 1802 of file Metadata.h.
|
inline |
Definition at line 1819 of file Metadata.h.
Referenced by operands().
|
inline |
Definition at line 1824 of file Metadata.h.
|
inline |
|
inline |
Definition at line 1825 of file Metadata.h.
References getNumOperands().
|
inline |
Definition at line 1827 of file Metadata.h.
References llvm::make_range(), op_begin(), and op_end().
Referenced by llvm::omp::getDeviceKernels(), getNVPTXMDNode(), llvm::OpenMPIRBuilder::loadOffloadInfoMetadata(), and llvm::stripDebugifyMetadata().
|
inline |
Definition at line 1830 of file Metadata.h.
References llvm::make_range(), op_begin(), and op_end().
void NamedMDNode::print | ( | raw_ostream & | ROS, |
bool | IsForDebug = false |
||
) | const |
Definition at line 4921 of file AsmWriter.cpp.
References getParent(), and OS.
Referenced by dump().
void NamedMDNode::print | ( | raw_ostream & | ROS, |
ModuleSlotTracker & | MST, | ||
bool | IsForDebug = false |
||
) | const |
Definition at line 4928 of file AsmWriter.cpp.
References llvm::ModuleSlotTracker::getMachine(), getParent(), and OS.
Definition at line 1433 of file Metadata.cpp.
References assert(), getNMDOps(), getNumOperands(), and I.
Referenced by llvm::UpgradeModuleFlags().
|
friend |
Definition at line 1732 of file Metadata.h.
|
friend |
Definition at line 1733 of file Metadata.h.