llvm::expandMemCpyAsLoop

Expand MemCpy as a loop without deleting the intrinsic.

Synopsis

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

void
expandMemCpyAsLoop(
    MemCpyInst* MemCpy,
    TargetTransformInfo const& TTI,
    ScalarEvolution* SE = nullptr);

Parameters

NameDescription
MemCpyThe memcpy intrinsic to expand.
TTITarget info used to choose loop operand types.
SEOptional scalar evolution used to prove non-overlap.