Estimate the cost of a chain of pointer operations when lowered.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfo.h>

InstructionCost
getPointersChainCost(
    ArrayRef<Value const*> Ptrs,
    Value const* Base,
    PointersChainInfo const& Info,
    Type* AccessTy,
    TargetCostKind const CostKind) const;

Description

Typically pointer operands of a chain of loads or stores within same block. AccessTy is the type of the loads/stores that will ultimately use the Ptrs.

Return Value

Estimated cost of the pointer‐chain operations when lowered.

Parameters

Name

Description

Ptrs

Pointers in the chain.

Base

Common base pointer, if known.

Info

Known properties of the pointer chain.

AccessTy

Type of the eventual loads or stores.

CostKind

Kind of cost model to apply.

Created with MrDocs