Skip to content

SageInterface::loopUnrolling

Unroll a target loop with a specified unrolling factor. It handles steps larger than 1 and adds a fringe loop if the iteration count is not evenly divisible by the unrolling factor.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
bool
loopUnrolling(
    SgForStatement* loop,
    size_t unrolling_factor);

Parameters

Name

Description

loop

This class represents the concept of a for loop.

Created with MrDocs