@@ -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.
@@ -2196,9 +2196,9 @@ class TargetTransformInfo::Concept {
21962196 Type *Src, CastContextHint CCH,
21972197 TTI::TargetCostKind CostKind,
21982198 const Instruction *I) = 0;
2199- virtual InstructionCost getExtractWithExtendCost ( unsigned Opcode, Type *Dst,
2200- VectorType *VecTy,
2201- unsigned Index) = 0;
2199+ virtual InstructionCost
2200+ getExtractWithExtendCost ( unsigned Opcode, Type *Dst, VectorType *VecTy,
2201+ unsigned Index, TTI::TargetCostKind CostKind ) = 0 ;
22022202 virtual InstructionCost getCFInstrCost (unsigned Opcode,
22032203 TTI::TargetCostKind CostKind,
22042204 const Instruction *I = nullptr ) = 0;
@@ -2919,10 +2919,11 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
29192919 const Instruction *I) override {
29202920 return Impl.getCastInstrCost (Opcode, Dst, Src, CCH, CostKind, I);
29212921 }
2922- InstructionCost getExtractWithExtendCost (unsigned Opcode, Type *Dst,
2923- VectorType *VecTy,
2924- unsigned Index) override {
2925- return Impl.getExtractWithExtendCost (Opcode, Dst, VecTy, Index);
2922+ InstructionCost
2923+ getExtractWithExtendCost (unsigned Opcode, Type *Dst, VectorType *VecTy,
2924+ unsigned Index,
2925+ TTI::TargetCostKind CostKind) override {
2926+ return Impl.getExtractWithExtendCost (Opcode, Dst, VecTy, Index, CostKind);
29262927 }
29272928 InstructionCost getCFInstrCost (unsigned Opcode, TTI::TargetCostKind CostKind,
29282929 const Instruction *I = nullptr ) override {
0 commit comments