MapValue overloads

Synopses

Declared in <llvm/Transforms/Utils/ValueMapper.h>

Version of MapValue with type safety for Constant.

Constant*
MapValue(
    Constant const* V,
    ValueToValueMapTy& VM,
    RemapFlags Flags = RF_None,
    ValueMapTypeRemapper* TypeMapper = nullptr,
    ValueMaterializer* Materializer = nullptr,
    MetadataPredicate const* IdentityMD = nullptr);

Look up or compute a value in the value map.

Value*
MapValue(
    Value const* V,
    ValueToValueMapTy& VM,
    RemapFlags Flags = RF_None,
    ValueMapTypeRemapper* TypeMapper = nullptr,
    ValueMaterializer* Materializer = nullptr,
    MetadataPredicate const* IdentityMD = nullptr);

Return Value

  • The mapped constant.

  • The mapped value, or nullptr when no mapping is available.

Parameters

Name

Description

V

Constant to look up or map.

VM

Mapping from original values to remapped values.

Flags

Remapping flags that control mapper behavior.

TypeMapper

Optional callback that remaps types while mapping values.

Materializer

Optional callback that materializes unmapped values.

IdentityMD

Optional predicate for metadata that maps onto itself.

Created with MrDocs