Copy metadata from SrcInst onto this instruction.

Synopsis

Declared in <llvm/IR/Instruction.h>

void
copyMetadata(
    Instruction const& SrcInst,
    ArrayRef<unsigned int> WL = ArrayRef<unsigned>());

Description

WL, if not empty, specifies the list of metadata kinds that need to be copied. If WL is empty, all metadata will be copied.

Parameters

Name

Description

SrcInst

The instruction to copy metadata from.

WL

Optional whitelist of metadata kind IDs to copy.

Created with MrDocs