Return the expected cost of materializing the given integer immediate.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfo.h>

InstructionCost
getIntImmCost(
    APInt const& Imm,
    Type* Ty,
    TargetCostKind CostKind) const;

Return Value

The expected cost of materializing the given integer immediate.

Parameters

Name

Description

Imm

Immediate value.

Ty

Type of the immediate.

CostKind

Kind of cost model to apply.

Created with MrDocs