@@ -1420,8 +1420,8 @@ class TargetTransformInfo {
14201420 // / \return The expected cost of a sign- or zero-extended vector extract. Use
14211421 // / Index = -1 to indicate that there is no information about the index value.
14221422 InstructionCost getExtractWithExtendCost (unsigned Opcode, Type *Dst,
1423- VectorType *VecTy,
1424- unsigned Index ) const ;
1423+ VectorType *VecTy, unsigned Index,
1424+ TTI::TargetCostKind CostKind ) const ;
14251425
14261426 // / \return The expected cost of control-flow related instructions such as
14271427 // / Phi, Ret, Br, Switch.
@@ -2210,9 +2210,10 @@ class TargetTransformInfo::Concept {
22102210 Type *Src, CastContextHint CCH,
22112211 TTI::TargetCostKind CostKind,
22122212 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 ;
22162217 virtual InstructionCost
22172218 getCFInstrCost (unsigned Opcode, TTI::TargetCostKind CostKind,
22182219 const Instruction *I = nullptr ) const = 0 ;
@@ -2947,10 +2948,11 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
29472948 const Instruction *I) const override {
29482949 return Impl.getCastInstrCost (Opcode, Dst, Src, CCH, CostKind, I);
29492950 }
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);
29542956 }
29552957 InstructionCost
29562958 getCFInstrCost (unsigned Opcode, TTI::TargetCostKind CostKind,
0 commit comments