llvm::LocalAsMetadata

Metadata wrapping a function-local (non-constant) IR value.

Synopsis

Declared in <llvm/IR/Metadata.h>

class LocalAsMetadata
    : public ValueAsMetadata

Base Classes

NameDescription
ValueAsMetadataValue wrapper in the Metadata hierarchy.

Enums

NameDescription
MetadataKind RTTI identifiers for concrete metadata subclasses.

Member Functions

NameDescription
dump dump overloads
getAllArgListUsers Return all DIArgList users of this replaceable metadata.
getAllDbgVariableRecordUsers Return all DbgVariableRecord users of this replaceable metadata.
getContext Return the LLVM context of the wrapped value.
getMetadataID Return the metadata kind ID for this node.
getType Return the type of the wrapped IR value.
getValue Return the wrapped IR value.
print print overloads
printAsOperand printAsOperand overloads

Static Member Functions

NameDescription
classof Methods for support type inquiry through isa, cast, and dyn_cast.
get Create or return local-as-metadata for Local.
getConstant Return constant-as-metadata for constant value C.
getConstantIfExists Return existing constant-as-metadata for C, or null if none.
getIfExists Return existing local-as-metadata for Local, or null if none.
getLocal Return local-as-metadata wrapping a function-local value.
getLocalIfExists Return local-as-metadata for Local if it already exists, else null.
handleDeletion Remove and delete ValueAsMetadata for V when V is destroyed.
handleRAUW Update metadata after From is RAUW'd to To.

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.
replaceAllUsesWith Handle collisions after Value::replaceAllUsesWith().

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::ValueAsMetadataValue wrapper in the Metadata hierarchy.

Non-Member Functions

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