SPeCS Packages Documentation
    Preparing search index...

    Pass that unrolls every innermost range do-loop in the subtree by a given factor (loop unrolling), applied recursively.

    A loop is "innermost" when none of its descendants is also a do-loop. All eligible loops are collected before any transformation so that AST mutations do not interfere with the traversal.

    const pass = new LoopUnrollPass(4);
    pass.apply(Query.root());

    Hierarchy (View Summary)

    • Pass
      • LoopUnrollPass
    Index
    _name: string = "LoopUnrollPass"
    • get name(): string

      Returns string

      Name of the pass

    • Applies this pass starting at the given join point. If no join point is given, uses the root join point

      Parameters

      • $jp: LaraJoinPoint

        Joint point on which the pass will be applied

      Returns PassResult

      Results of applying this pass to the given joint point