@@ -1420,8 +1420,8 @@ class TargetTransformInfo {
1420
1420
// / \return The expected cost of a sign- or zero-extended vector extract. Use
1421
1421
// / Index = -1 to indicate that there is no information about the index value.
1422
1422
InstructionCost getExtractWithExtendCost (unsigned Opcode, Type *Dst,
1423
- VectorType *VecTy,
1424
- unsigned Index ) const ;
1423
+ VectorType *VecTy, unsigned Index,
1424
+ TTI::TargetCostKind CostKind ) const ;
1425
1425
1426
1426
// / \return The expected cost of control-flow related instructions such as
1427
1427
// / Phi, Ret, Br, Switch.
@@ -2210,9 +2210,10 @@ class TargetTransformInfo::Concept {
2210
2210
Type *Src, CastContextHint CCH,
2211
2211
TTI::TargetCostKind CostKind,
2212
2212
const Instruction *I) const = 0;
2213
- virtual InstructionCost getExtractWithExtendCost (unsigned Opcode, Type *Dst,
2214
- VectorType *VecTy,
2215
- unsigned Index) const = 0;
2213
+ virtual InstructionCost
2214
+ getExtractWithExtendCost (unsigned Opcode, Type *Dst, VectorType *VecTy,
2215
+ unsigned Index,
2216
+ TTI::TargetCostKind CostKind) const = 0 ;
2216
2217
virtual InstructionCost
2217
2218
getCFInstrCost (unsigned Opcode, TTI::TargetCostKind CostKind,
2218
2219
const Instruction *I = nullptr ) const = 0 ;
@@ -2947,10 +2948,11 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
2947
2948
const Instruction *I) const override {
2948
2949
return Impl.getCastInstrCost (Opcode, Dst, Src, CCH, CostKind, I);
2949
2950
}
2950
- InstructionCost getExtractWithExtendCost (unsigned Opcode, Type *Dst,
2951
- VectorType *VecTy,
2952
- unsigned Index) const override {
2953
- return Impl.getExtractWithExtendCost (Opcode, Dst, VecTy, Index);
2951
+ InstructionCost
2952
+ getExtractWithExtendCost (unsigned Opcode, Type *Dst, VectorType *VecTy,
2953
+ unsigned Index,
2954
+ TTI::TargetCostKind CostKind) const override {
2955
+ return Impl.getExtractWithExtendCost (Opcode, Dst, VecTy, Index, CostKind);
2954
2956
}
2955
2957
InstructionCost
2956
2958
getCFInstrCost (unsigned Opcode, TTI::TargetCostKind CostKind,
0 commit comments