llvm::SplitBlockAndInsertSimpleForLoop

Insert a for (int i = 0; i < End; i++) loop structure (with the exception that End is assumed > 0, and thus not checked on entry) at SplitBefore. Returns the first insert point in the loop body, and the PHINode for the induction variable (i.e. "i" above).

Synopsis

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

std::pair<Instruction*, Value*>
SplitBlockAndInsertSimpleForLoop(
    Value* End,
    BasicBlock::iterator SplitBefore);

Return Value

Struct holding two objects of arbitrary type.

Parameters

NameDescription
EndLLVM Value Representation
SplitBeforeInstruction iterators...