LLVM: llvm::MDString Class Reference (original) (raw)
A single uniqued string. More...
#include "[llvm/IR/Metadata.h](Metadata%5F8h%5Fsource.html)"
| Additional Inherited Members | |
|---|---|
| Static Public Attributes inherited from llvm::Metadata | |
| static constexpr const unsigned | PoisonGeneratingIDs [] |
| Metadata IDs that may generate poison. | |
| Protected Types inherited from llvm::Metadata | |
| enum | StorageType { Uniqued, Distinct, Temporary } |
| Active type of storage. More... | |
| Protected Member Functions inherited from llvm::Metadata | |
| Metadata (unsigned ID, StorageType Storage) | |
| ~Metadata ()=default | |
| void | handleChangedOperand (void *, Metadata *) |
| Default handling of a changed operand, which asserts. | |
| Protected Attributes inherited from llvm::Metadata | |
| unsigned char | Storage: 7 |
| Storage flag for non-uniqued, otherwise unowned, metadata. | |
| unsigned char | SubclassData1: 1 |
| unsigned short | SubclassData16 = 0 |
| unsigned | SubclassData32 = 0 |
A single uniqued string.
These are used to efficiently contain a byte sequence for metadata. MDString is always unnamed.
Definition at line 721 of file Metadata.h.
◆ iterator
◆ begin()
| iterator llvm::MDString::begin ( ) const | inline |
|---|
◆ bytes_begin()
◆ bytes_end()
◆ classof()
◆ end()
| iterator llvm::MDString::end ( ) const | inline |
|---|
◆ get() [1/2]
◆ get() [2/2]
Definition at line 608 of file Metadata.cpp.
References I.
Referenced by addFunctionTypeMutation(), addRuntimeUnrollDisableMetaData(), applyParallelAccessesMetadata(), llvm::SPIRVGlobalRegistry::buildAssignType(), constructEntryMetadata(), convertToLocalCopy(), llvm::coro::BaseCloner::create(), createMIBNode(), llvm::createPGONameMetadata(), llvm::MDBuilder::createString(), createStringMetadata(), llvm::DIBuilder::createTemplateTemplateParameter(), DisableAllLoopOptsOnLoop(), llvm::embedBufferInModule(), llvm::emitAMDGPUPrintfCall(), emitAssignName(), emitShaderModelVersionMD(), llvm::MDNode::fromCaptureComponents(), get(), llvm::dxil::ResourceInfo::getAsMetadata(), llvm::DIMacroNode::getCanonicalMDString(), llvm::DINode::getCanonicalMDString(), getKeyFPValMD(), getKeyValMD(), getKeyValMD(), llvm::MMRAMetadata::getTagMD(), llvm::GCNTTIImpl::instCombineIntrinsic(), LLVMMDStringInContext(), LLVMMDStringInContext2(), lowerPtrAnnotation(), optimizeModularFormat(), parseAnnotation(), llvm::LLParser::parseMDField(), postUnswitch(), llvm::sandboxir::Region::Region(), llvm::SimplifyTypeTestsPass::run(), runImpl(), llvm::LoopVectorizeHints::setAlreadyVectorized(), llvm::Loop::setLoopAlreadyUnrolled(), llvm::Loop::setLoopMustProgress(), solveTypeName(), updateSubprogramLinkageName(), upgradeLoopTag(), llvm::UpgradeModuleFlags(), and upgradeRetainReleaseMarker().
◆ getLength()
| unsigned llvm::MDString::getLength ( ) const | inline |
|---|
◆ getString()
Definition at line 618 of file Metadata.cpp.
Referenced by llvm::addStringMetadataToLoop(), begin(), bytes_begin(), bytes_end(), llvm::cacheAnnotationFromMD(), llvm::MachineFunction::CallSiteInfo::CallSiteInfo(), createProfileFileNameVar(), llvm::WebAssemblyAsmPrinter::emitEndOfAsmFile(), end(), llvm::hlsl::rootsig::extractMdStringValue(), extractNumericCGTypeId(), llvm::findOptionMDForLoopID(), getArgAccessQual(), GetFunctionFromMDNode(), getHiPELiteral(), getKernelArgTypeQual(), getLength(), getSummaryFromMD(), llvm::GetUnrollMetadata(), getValMD(), hasAnyUnrollPragma(), isCanonical(), isKeyValuePair(), llvm::LegalizerHelper::lowerReadWriteRegister(), and llvm::makePostTransformationMetadata().
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ StringMapEntryStorage< MDString >
The documentation for this class was generated from the following files:
- include/llvm/IR/Metadata.h
- lib/IR/Metadata.cpp