llvm::MDString

A single uniqued string.

Synopsis

Declared in <llvm/IR/Metadata.h>

class MDString
    : public Metadata

Description

These are used to efficiently contain a byte sequence for metadata. MDString is always unnamed.

Base Classes

NameDescription
MetadataRoot of the metadata hierarchy.

Type Aliases

NameDescription
iterator Iterator over the characters of this string.

Enums

NameDescription
MetadataKind RTTI identifiers for concrete metadata subclasses.

Member Functions

NameDescription
MDString [constructor] [deleted]Copy construction is deleted; MDString is uniqued and non-copyable.
operator= Assignment operators
begin Pointer to the first byte of the string.
bytes_begin Return a pointer to the raw bytes of this metadata string.
bytes_end Return a pointer one past the last byte of this metadata string.
dump dump overloads
end Pointer to one byte past the end of the string.
getLength Return the number of bytes in this metadata string.
getMetadataID Return the metadata kind ID for this node.
getString Return the string contents of this metadata.
print print overloads
printAsOperand printAsOperand overloads

Static Member Functions

NameDescription
classof Methods for support type inquiry through isa, cast, and dyn_cast.
get get overloads
getIfExists Return existing string metadata for Str, or null if none.

Static Data Members

NameDescription
PoisonGeneratingIDs Metadata IDs that may generate poison.

Protected Enums

NameDescription
StorageType Active type of storage.

Protected Member Functions

NameDescription
handleChangedOperand Default handling of a changed operand, which asserts.

Protected Data Members

NameDescription
Storage Storage flag for non-uniqued, otherwise unowned, metadata.
SubclassData1 One bit of subclass-specific state packed into the metadata header.
SubclassData16 Sixteen bits of subclass-specific state packed into the metadata header.
SubclassData32 Thirty-two bits of subclass-specific state packed into the metadata header.

Friends

NameDescription
llvm::StringMapEntryStorageStringMapEntryStorage - Holds the value in a StringMapEntry.

Non-Member Functions

NameDescription
MapMetadataLookup or compute a mapping for a piece of metadata.
wrapWrap a Metadata pointer as an opaque LLVMMetadataRef.