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

Name

Description

L

Loop to clone.

PL

Parent loop that receives the clone, or nullptr for top‐level.

VM

Value map populated for the cloned blocks and values.

LI

Loop info updated with the cloned loop.

LPM

Optional loop pass manager to notify, or nullptr.

Created with MrDocs