ΒΆvoid combineMetadata(
    llvm::Instruction* K,
    const llvm::Instruction* J,
    ArrayRef<unsigned int> KnownIDs,
    bool DoesKMove)

Description

Combine the metadata of two instructions so that K can replace J. Some metadata kinds can only be kept if K does not move, meaning it dominated J in the original IR. Metadata not listed as known via KnownIDs is removed

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:427

Parameters

llvm::Instruction* K
const llvm::Instruction* J
ArrayRef<unsigned int> KnownIDs
bool DoesKMove