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

Name

Description

Metadata

Root of the metadata hierarchy.

Type Aliases

Name

Description

iterator

Iterator over the characters of this string.

Enums

Name

Description

MetadataKind

RTTI identifiers for concrete metadata subclasses.

Member Functions

Name

Description

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

Name

Description

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

Name

Description

PoisonGeneratingIDs

Metadata IDs that may generate poison.

Protected Enums

Name

Description

StorageType

Active type of storage.

Protected Member Functions

Name

Description

handleChangedOperand

Default handling of a changed operand, which asserts.

Protected Data Members

Name

Description

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

Name

Description

llvm::StringMapEntryStorage

StringMapEntryStorage ‐ Holds the value in a StringMapEntry.

Non-Member Functions

Name

Description

MapMetadata

Lookup or compute a mapping for a piece of metadata.

wrap

Wrap a Metadata pointer as an opaque LLVMMetadataRef.

Created with MrDocs