ΒΆvoid copyRangeMetadata(
    const llvm::DataLayout& DL,
    const llvm::LoadInst& OldLI,
    llvm::MDNode* N,
    llvm::LoadInst& NewLI)

Description

Copy a range metadata node to a new load instruction. This handles mapping it to nonnull metadata if the new load is a pointer load instead of an integer load and the range doesn't cover null.

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

Parameters

const llvm::DataLayout& DL
const llvm::LoadInst& OldLI
llvm::MDNode* N
llvm::LoadInst& NewLI