Recursively clone the specified loop and all of its children, mapping the blocks with the specified map.
Declared in <llvm/Transforms/Utils/LoopUtils.h>
Loop*
cloneLoop(
Loop* L,
Loop* PL,
ValueToValueMapTy& VM,
LoopInfo* LI,
LPPassManager* LPM);
The cloned loop.
| 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. |