Return a recurrence descriptor if Phi can be parallelized when unrolling.

Synopsis

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

std::optional<RecurrenceDescriptor>
canParallelizeReductionWhenUnrolling(
    PHINode& Phi,
    Loop* L,
    ScalarEvolution* SE);

Return Value

A descriptor for a supported parallelizable reduction, or std::nullopt if Phi cannot be handled.

Parameters

Name

Description

Phi

Candidate reduction PHI in loop L.

L

Loop containing Phi.

SE

ScalarEvolution used to classify the reduction.

Created with MrDocs