getInstructionCost overloads

Synopses

Declared in <llvm/Analysis/TargetTransformInfo.h>

Estimate the cost of U using its current operands.

Estimate the cost of a given IR user when lowered.

Return Value

  • Estimated cost of U using its current operands.

  • Estimated cost of the IR user when lowered.

Parameters

Name

Description

U

IR user whose cost is estimated.

CostKind

Kind of cost model to apply.

Operands

List of operands which can be a result of transformations of the current operands. The number of the operands on the list must equal to the number of the current operands the IR user has. Their order on the list must be the same as the order of the current operands the IR user has.

Created with MrDocs