Create a CacheCost for the loop nest rooted by Root.

Synopsis

Declared in <llvm/Analysis/LoopCacheAnalysis.h>

static
std::unique_ptr<CacheCost>
getCacheCost(
    Loop& Root,
    LoopStandardAnalysisResults& AR,
    DependenceInfo& DI,
    std::optional<unsigned int> TRT = std::nullopt);

Description

The optional parameter TRT can be used to specify the max. distance between array elements accessed in a loop so that the elements are classified to have temporal reuse.

Return Value

A CacheCost for the nest, or nullptr if the nest cannot be analyzed.

Parameters

Name

Description

Root

Outermost loop of the nest to analyze.

AR

Loop analyses used to compute the cost.

DI

Dependence information for the nest.

TRT

Optional max distance for classifying temporal reuse.

Created with MrDocs