diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
| commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
| tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /lib/Target/X86/X86TargetTransformInfo.h | |
| parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) | |
Diffstat (limited to 'lib/Target/X86/X86TargetTransformInfo.h')
| -rw-r--r-- | lib/Target/X86/X86TargetTransformInfo.h | 19 | 
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/Target/X86/X86TargetTransformInfo.h b/lib/Target/X86/X86TargetTransformInfo.h index ecaaf951cff7..9bef9e80c395 100644 --- a/lib/Target/X86/X86TargetTransformInfo.h +++ b/lib/Target/X86/X86TargetTransformInfo.h @@ -33,8 +33,6 @@ class X86TTIImpl : public BasicTTIImplBase<X86TTIImpl> {    const X86Subtarget *ST;    const X86TargetLowering *TLI; -  int getScalarizationOverhead(Type *Ty, bool Insert, bool Extract); -    const X86Subtarget *getST() const { return ST; }    const X86TargetLowering *getTLI() const { return TLI; } @@ -53,7 +51,8 @@ public:    /// @{    unsigned getNumberOfRegisters(bool Vector); -  unsigned getRegisterBitWidth(bool Vector); +  unsigned getRegisterBitWidth(bool Vector) const; +  unsigned getLoadStoreVecRegBitWidth(unsigned AS) const;    unsigned getMaxInterleaveFactor(unsigned VF);    int getArithmeticInstrCost(        unsigned Opcode, Type *Ty, @@ -63,11 +62,13 @@ public:        TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,        ArrayRef<const Value *> Args = ArrayRef<const Value *>());    int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp); -  int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src); -  int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy); +  int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, +                       const Instruction *I = nullptr); +  int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, +                         const Instruction *I = nullptr);    int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index);    int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, -                      unsigned AddressSpace); +                      unsigned AddressSpace, const Instruction *I = nullptr);    int getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment,                              unsigned AddressSpace);    int getGatherScatterOpCost(unsigned Opcode, Type *DataTy, Value *Ptr, @@ -76,9 +77,11 @@ public:                                  const SCEV *Ptr);    int getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, -                            ArrayRef<Type *> Tys, FastMathFlags FMF); +                            ArrayRef<Type *> Tys, FastMathFlags FMF, +                            unsigned ScalarizationCostPassed = UINT_MAX);    int getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, -                            ArrayRef<Value *> Args, FastMathFlags FMF); +                            ArrayRef<Value *> Args, FastMathFlags FMF, +                            unsigned VF = 1);    int getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwiseForm);  | 
