|
LLVM 24.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< 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 1766 of file Metadata.h.
| using llvm::NamedMDNode::const_op_iterator = op_iterator_impl<const MDNode *> |
Definition at line 1857 of file Metadata.h.
| using llvm::NamedMDNode::op_iterator = op_iterator_impl<MDNode *> |
Definition at line 1852 of file Metadata.h.
|
delete |
References LLVM_ABI.
| NamedMDNode::~NamedMDNode | ( | ) |
Definition at line 1558 of file Metadata.cpp.
References dropAllReferences(), and getNMDOps().
| void NamedMDNode::addOperand | ( | MDNode * | M | ) |
Definition at line 1573 of file Metadata.cpp.
References getNMDOps().
Referenced by addFunctionTypeMutation(), llvm::applyDebugifyMetadataToMachineFunction(), llvm::CloneFunctionInto(), llvm::CloneModule(), createCfiAliasesMetadata(), createCfiFunctionsMetadata(), createCfiSymversMetadata(), llvm::DIBuilder::createCompileUnit(), llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(), llvm::embedBufferInModule(), llvm::emitAMDGPUPrintfCall(), emitDXILVersionTupleMD(), emitResourceMetadata(), emitShaderModelVersionMD(), emitValidatorVersionMD(), llvm::offloading::getOffloadingEntryInitializer(), stripDeadDebugInfoImpl(), llvm::stripDebugifyMetadata(), translateGlobalMetadata(), and llvm::UpgradeNVVMAnnotations().
| void NamedMDNode::clearOperands | ( | ) |
Drop all references to this node's operands.
Definition at line 1582 of file Metadata.cpp.
References getNMDOps().
Referenced by dropAllReferences(), emitValidatorVersionMD(), stripDeadDebugInfoImpl(), llvm::stripDebugifyMetadata(), and llvm::UpgradeNVVMAnnotations().
|
inline |
Remove all uses and clear node vector.
Definition at line 1831 of file Metadata.h.
References clearOperands().
Referenced by handleValVerMetadata(), and ~NamedMDNode().
| LLVM_DUMP_METHOD void NamedMDNode::dump | ( | ) | const |
Definition at line 5598 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 1580 of file Metadata.cpp.
References llvm::Module::eraseNamedMetadata(), and getParent().
Referenced by cleanModuleFlags(), handleValVerMetadata(), and llvm::stripDebugifyMetadata().
| StringRef NamedMDNode::getName | ( | ) | const |
Definition at line 1584 of file Metadata.cpp.
Referenced by LLVMGetNamedMetadataName(), and llvm::stripNonLineTableDebugInfo().
| unsigned NamedMDNode::getNumOperands | ( | ) | const |
Definition at line 1563 of file Metadata.cpp.
References getNMDOps().
Referenced by analyzeModule(), llvm::applyDebugifyMetadataToMachineFunction(), cacheAnnotationFromMD(), llvm::copyModuleAttrToFunctions(), llvm::emitAMDGPUPrintfCall(), getHiPELiteral(), getOCLKernelArgAttribute(), getOperand(), op_end(), op_end(), setOperand(), llvm::stripDebugifyMetadata(), llvm::UpgradeCFIFunctionsMetadata(), and llvm::UpgradeModuleFlags().
Definition at line 1567 of file Metadata.cpp.
References assert(), llvm::cast_or_null(), getNMDOps(), getNumOperands(), and N.
Referenced by llvm::applyDebugifyMetadataToMachineFunction(), cacheAnnotationFromMD(), collectMetadataInfo(), llvm::copyModuleAttrToFunctions(), getHiPELiteral(), getOCLKernelArgAttribute(), handleValVerMetadata(), translateGlobalMetadata(), llvm::UpgradeCFIFunctionsMetadata(), llvm::UpgradeModuleFlags(), and upgradeRetainReleaseMarker().
|
inline |
Get the module that holds this named metadata collection.
Definition at line 1836 of file Metadata.h.
References Module.
Referenced by addFunctionTypeMutation(), eraseFromParent(), LLVMGetNextNamedMetadata(), and LLVMGetPreviousNamedMetadata().
Definition at line 1837 of file Metadata.h.
References Module.
|
inline |
Definition at line 1854 of file Metadata.h.
Referenced by operands(), and operands().
|
inline |
Definition at line 1859 of file Metadata.h.
|
inline |
Definition at line 1855 of file Metadata.h.
References getNumOperands().
Referenced by llvm::SPIRV::findNamedMDOperand(), operands(), and operands().
|
inline |
Definition at line 1860 of file Metadata.h.
References getNumOperands().
|
inline |
Definition at line 1862 of file Metadata.h.
References llvm::make_range(), op_begin(), and op_end().
Referenced by analyzeModule(), llvm::CodeViewDebug::beginModule(), llvm::CloneFunctionInto(), collectMetadataInfo(), llvm::TargetLoweringObjectFile::emitPseudoProbeDescMetadata(), llvm::SPIRV::findNamedMDOperand(), llvm::hlsl::CBufferMetadata::get(), llvm::OpenMPIRBuilder::loadOffloadInfoMetadata(), llvm::stripDebugifyMetadata(), and llvm::UpgradeNVVMAnnotations().
|
inline |
Definition at line 1865 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 5204 of file AsmWriter.cpp.
References getParent().
| void NamedMDNode::print | ( | raw_ostream & | ROS, |
| ModuleSlotTracker & | MST, | ||
| bool | IsForDebug = false ) const |
Definition at line 5211 of file AsmWriter.cpp.
References llvm::ModuleSlotTracker::getMachine(), and getParent().
Definition at line 1575 of file Metadata.cpp.
References assert(), getNMDOps(), getNumOperands(), and I.
Referenced by llvm::applyDebugifyMetadataToMachineFunction(), llvm::UpgradeCFIFunctionsMetadata(), and llvm::UpgradeModuleFlags().
|
friend |
Definition at line 1767 of file Metadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |
Definition at line 1768 of file Metadata.h.
References Module.
Referenced by getParent(), getParent(), and Module.