Return the cost of address computation for a memory access.

Synopsis

Declared in <llvm/CodeGen/BasicTTIImpl.h>

virtual
InstructionCost
getAddressComputationCost(
    Type* PtrTy,
    ScalarEvolution* SE,
    SCEV const* Ptr,
    TTI::TargetCostKind CostKind) const override;

Description

Most targets fold this into indexing modes; the default is free.

Return Value

The cost of address computation for a memory access.

Parameters

Name

Description

PtrTy

Pointer type of the address being computed.

SE

Scalar evolution analysis used to derive Ptr, or null.

Ptr

SCEV of the access pointer, or null.

CostKind

Kind of cost to compute.

Created with MrDocs