llvm::LoopConstrainer

Constrain a loop to run within a given iteration range.

Synopsis

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

class LoopConstrainer;

Description

The algorithm this class implements is given a Loop and a range [Begin,] End). The algorithm then tries to break out a "main loop" out of the loop it is given in a way that the "main loop" runs with the induction variable in a subset of [Begin, End). The algorithm emits appropriate pre and post] loops to run any remaining iterations. The pre loop runs any iterations in which the induction variable is < Begin, and the post loop runs any iterations in which the induction variable is >= End.

Types

Name
SubRanges

Member Functions

Name
LoopConstrainer [constructor]
run