Copy metadata from a source load onto its replacement.

Synopsis

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

void
copyMetadataForLoad(
    LoadInst& Dest,
    LoadInst const& Source);

Description

Copy the metadata from the source instruction to the destination (the replacement for the source instruction).

Parameters

Name

Description

Dest

Destination load that receives the metadata.

Source

Source load whose metadata is copied.

Created with MrDocs