llvm::Instruction::copyProfileAndDebugMetadata

Copy debug, profile, and memprof metadata from SrcInst.

Synopsis

Declared in <llvm/IR/Instruction.h>

void
copyProfileAndDebugMetadata(Instruction const& SrcInst);

Description

Does not copy alias-analysis or type-dependent metadata. TODO: Include additional metadata in the future if appropriate.

Parameters

NameDescription
SrcInstThe instruction to copy metadata from.