llvm::cloneLoop

Recursively clone the specified loop and all of its children, mapping the blocks with the specified map.

Synopsis

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

Loop*
cloneLoop(
    Loop* L,
    Loop* PL,
    ValueToValueMapTy& VM,
    LoopInfo* LI,
    LPPassManager* LPM);

Return Value

The cloned loop.

Parameters

NameDescription
LLoop to clone.
PLParent loop that receives the clone, or nullptr for top-level.
VMValue map populated for the cloned blocks and values.
LILoop info updated with the cloned loop.
LPMOptional loop pass manager to notify, or nullptr.