getInstructionCost overloads
Synopses
Declared in <llvm/Analysis/TargetTransformInfo.h>
Estimate the cost of U using its current operands.
InstructionCost
getInstructionCost(
User const* U,
TargetCostKind CostKind) const;
Estimate the cost of a given IR user when lowered.
InstructionCost
getInstructionCost(
User const* U,
ArrayRef<Value const*> Operands,
TargetCostKind CostKind) const;
Return Value
-
Estimated cost of
Uusing 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