|
LLVM 23.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 1753 of file Metadata.h.
| using llvm::NamedMDNode::const_op_iterator = op_iterator_impl<const MDNode *> |
Definition at line 1844 of file Metadata.h.
| using llvm::NamedMDNode::op_iterator = op_iterator_impl<MDNode *> |
Definition at line 1839 of file Metadata.h.
|
delete |
References LLVM_ABI.
| NamedMDNode::~NamedMDNode | ( | ) |
Definition at line 1518 of file Metadata.cpp.
References dropAllReferences(), and getNMDOps().
| void NamedMDNode::addOperand | ( | MDNode * | M | ) |
Definition at line 1533 of file Metadata.cpp.
References getNMDOps().
Referenced by addFunctionTypeMutation(), llvm::applyDebugifyMetadataToMachineFunction(), llvm::CloneFunctionInto(), llvm::CloneModule(), 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 1542 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 1818 of file Metadata.h.
References clearOperands().
Referenced by handleValVerMetadata(), and ~NamedMDNode().
| LLVM_DUMP_METHOD void NamedMDNode::dump | ( | ) | const |
Definition at line 5527 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 1540 of file Metadata.cpp.
References llvm::Module::eraseNamedMetadata(), and getParent().
Referenced by cleanModuleFlags(), handleValVerMetadata(), and llvm::stripDebugifyMetadata().
| StringRef NamedMDNode::getName | ( | ) | const |
Definition at line 1544 of file Metadata.cpp.
Referenced by LLVMGetNamedMetadataName(), and llvm::stripNonLineTableDebugInfo().
| unsigned NamedMDNode::getNumOperands | ( | ) | const |
Definition at line 1523 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 1527 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 1823 of file Metadata.h.
References Module.
Referenced by addFunctionTypeMutation(), eraseFromParent(), LLVMGetNextNamedMetadata(), and LLVMGetPreviousNamedMetadata().
Definition at line 1824 of file Metadata.h.
References Module.
|
inline |
Definition at line 1841 of file Metadata.h.
Referenced by operands(), and operands().
|
inline |
Definition at line 1846 of file Metadata.h.
|
inline |
Definition at line 1842 of file Metadata.h.
References getNumOperands().
Referenced by llvm::SPIRV::extractAsmConstraintsFromMetadata(), llvm::SPIRV::extractFunctionTypeFromMetadata(), operands(), and operands().
|
inline |
Definition at line 1847 of file Metadata.h.
References getNumOperands().
|
inline |
Definition at line 1849 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::extractAsmConstraintsFromMetadata(), llvm::SPIRV::extractFunctionTypeFromMetadata(), llvm::hlsl::CBufferMetadata::get(), llvm::OpenMPIRBuilder::loadOffloadInfoMetadata(), llvm::stripDebugifyMetadata(), and llvm::UpgradeNVVMAnnotations().
|
inline |
Definition at line 1852 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 5124 of file AsmWriter.cpp.
References getParent().
| void NamedMDNode::print | ( | raw_ostream & | ROS, |
| ModuleSlotTracker & | MST, | ||
| bool | IsForDebug = false ) const |
Definition at line 5131 of file AsmWriter.cpp.
References llvm::ModuleSlotTracker::getMachine(), and getParent().
Definition at line 1535 of file Metadata.cpp.
References assert(), getNMDOps(), getNumOperands(), and I.
Referenced by llvm::applyDebugifyMetadataToMachineFunction(), llvm::UpgradeCFIFunctionsMetadata(), and llvm::UpgradeModuleFlags().
|
friend |
Definition at line 1754 of file Metadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |
Definition at line 1755 of file Metadata.h.
References Module.
Referenced by getParent(), getParent(), and Module.