Metadata wrapping a constant IR value.

Synopsis

Declared in <llvm/IR/Metadata.h>

class ConstantAsMetadata
    : public ValueAsMetadata

Base Classes

Name

Description

ValueAsMetadata

Value wrapper in the Metadata hierarchy.

Enums

Name

Description

MetadataKind

RTTI identifiers for concrete metadata subclasses.

Member Functions

Name

Description

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 constant value.

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

getConstant

Return constant‐as‐metadata for constant value C.

getConstantIfExists

Return existing constant‐as‐metadata for C, or null if none.

getIfExists

getIfExists overloads

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

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.

replaceAllUsesWith

Handle collisions after Value::replaceAllUsesWith().

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::ValueAsMetadata

Value wrapper in the Metadata hierarchy.

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