|
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 1806 of file Metadata.h.
| using llvm::NamedMDNode::const_op_iterator = op_iterator_impl<const MDNode *> |
Definition at line 1897 of file Metadata.h.
| using llvm::NamedMDNode::op_iterator = op_iterator_impl<MDNode *> |
Definition at line 1892 of file Metadata.h.
|
delete |
References LLVM_ABI.
| NamedMDNode::~NamedMDNode | ( | ) |
Definition at line 1608 of file Metadata.cpp.
References dropAllReferences(), and getNMDOps().
| void NamedMDNode::addOperand | ( | MDNode * | M | ) |
Definition at line 1623 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 1632 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 1871 of file Metadata.h.
References clearOperands().
Referenced by handleValVerMetadata(), and ~NamedMDNode().
| LLVM_DUMP_METHOD void NamedMDNode::dump | ( | ) | const |
Definition at line 5663 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 1630 of file Metadata.cpp.
References llvm::Module::eraseNamedMetadata(), and getParent().
Referenced by cleanModuleFlags(), handleValVerMetadata(), llvm::stripDebugifyMetadata(), and writeModule().
| StringRef NamedMDNode::getName | ( | ) | const |
Definition at line 1634 of file Metadata.cpp.
Referenced by LLVMGetNamedMetadataName(), llvm::stripNonLineTableDebugInfo(), and writeModule().
| unsigned NamedMDNode::getNumOperands | ( | ) | const |
Definition at line 1613 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 1617 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 1876 of file Metadata.h.
References Module.
Referenced by addFunctionTypeMutation(), eraseFromParent(), LLVMGetNextNamedMetadata(), and LLVMGetPreviousNamedMetadata().
Definition at line 1877 of file Metadata.h.
References Module.
|
inline |
Definition at line 1894 of file Metadata.h.
Referenced by operands(), and operands().
|
inline |
Definition at line 1899 of file Metadata.h.
|
inline |
Definition at line 1895 of file Metadata.h.
References getNumOperands().
Referenced by llvm::SPIRV::findNamedMDOperand(), operands(), and operands().
|
inline |
Definition at line 1900 of file Metadata.h.
References getNumOperands().
|
inline |
Definition at line 1902 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 1905 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 5261 of file AsmWriter.cpp.
References getOptions(), and getParent().
| void NamedMDNode::print | ( | raw_ostream & | ROS, |
| ModuleSlotTracker & | MST, | ||
| bool | IsForDebug = false ) const |
Definition at line 5269 of file AsmWriter.cpp.
References llvm::ModuleSlotTracker::getMachine(), getOptions(), and getParent().
Definition at line 1625 of file Metadata.cpp.
References assert(), getNMDOps(), getNumOperands(), and I.
Referenced by llvm::applyDebugifyMetadataToMachineFunction(), llvm::UpgradeCFIFunctionsMetadata(), and llvm::UpgradeModuleFlags().
|
friend |
Definition at line 1807 of file Metadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |
Definition at line 1808 of file Metadata.h.
References Module.
Referenced by getParent(), getParent(), and Module.