LLVM  5.0.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
llvm::TargetTransformInfoImplBase Class Reference

Base class for use as a mix-in that aids implementing a TargetTransformInfo-compatible class. More...

#include "llvm/Analysis/TargetTransformInfoImpl.h"

Inheritance diagram for llvm::TargetTransformInfoImplBase:
[legend]
Collaboration diagram for llvm::TargetTransformInfoImplBase:
[legend]

Public Member Functions

 TargetTransformInfoImplBase (const TargetTransformInfoImplBase &Arg)
 
 TargetTransformInfoImplBase (TargetTransformInfoImplBase &&Arg)
 
const DataLayout & getDataLayout () const
 
unsigned getOperationCost (unsigned Opcode, Type *Ty, Type *OpTy)
 
int getGEPCost (Type *PointeeType, const Value *Ptr, ArrayRef< const Value * > Operands)
 
unsigned getEstimatedNumberOfCaseClusters (const SwitchInst &SI, unsigned &JTSize)
 
int getExtCost (const Instruction *I, const Value *Src)
 
unsigned getCallCost (FunctionType *FTy, int NumArgs)
 
unsigned getInliningThresholdMultiplier ()
 
unsigned getIntrinsicCost (Intrinsic::ID IID, Type *RetTy, ArrayRef< Type * > ParamTys)
 
bool hasBranchDivergence ()
 
bool isSourceOfDivergence (const Value *V)
 
bool isAlwaysUniform (const Value *V)
 
unsigned getFlatAddressSpace ()
 
bool isLoweredToCall (const Function *F)
 
void getUnrollingPreferences (Loop *, ScalarEvolution &, TTI::UnrollingPreferences &)
 
bool isLegalAddImmediate (int64_t Imm)
 
bool isLegalICmpImmediate (int64_t Imm)
 
bool isLegalAddressingMode (Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace)
 
bool isLSRCostLess (TTI::LSRCost &C1, TTI::LSRCost &C2)
 
bool isLegalMaskedStore (Type *DataType)
 
bool isLegalMaskedLoad (Type *DataType)
 
bool isLegalMaskedScatter (Type *DataType)
 
bool isLegalMaskedGather (Type *DataType)
 
bool prefersVectorizedAddressing ()
 
int getScalingFactorCost (Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace)
 
bool isFoldableMemAccessOffset (Instruction *I, int64_t Offset)
 
bool isTruncateFree (Type *Ty1, Type *Ty2)
 
bool isProfitableToHoist (Instruction *I)
 
bool isTypeLegal (Type *Ty)
 
unsigned getJumpBufAlignment ()
 
unsigned getJumpBufSize ()
 
bool shouldBuildLookupTables ()
 
bool shouldBuildLookupTablesForConstant (Constant *C)
 
unsigned getScalarizationOverhead (Type *Ty, bool Insert, bool Extract)
 
unsigned getOperandsScalarizationOverhead (ArrayRef< const Value * > Args, unsigned VF)
 
bool supportsEfficientVectorElementLoadStore ()
 
bool enableAggressiveInterleaving (bool LoopHasReductions)
 
bool expandMemCmp (Instruction *I, unsigned &MaxLoadSize)
 
bool enableInterleavedAccessVectorization ()
 
bool isFPVectorizationPotentiallyUnsafe ()
 
bool allowsMisalignedMemoryAccesses (LLVMContext &Context, unsigned BitWidth, unsigned AddressSpace, unsigned Alignment, bool *Fast)
 
TTI::PopcntSupportKind getPopcntSupport (unsigned IntTyWidthInBit)
 
bool haveFastSqrt (Type *Ty)
 
unsigned getFPOpCost (Type *Ty)
 
int getIntImmCodeSizeCost (unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty)
 
unsigned getIntImmCost (const APInt &Imm, Type *Ty)
 
unsigned getIntImmCost (unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty)
 
unsigned getIntImmCost (Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty)
 
unsigned getNumberOfRegisters (bool Vector)
 
unsigned getRegisterBitWidth (bool Vector) const
 
unsigned getMinVectorRegisterBitWidth ()
 
bool shouldConsiderAddressTypePromotion (const Instruction &I, bool &AllowPromotionWithoutCommonHeader)
 
unsigned getCacheLineSize ()
 
unsigned getPrefetchDistance ()
 
unsigned getMinPrefetchStride ()
 
unsigned getMaxPrefetchIterationsAhead ()
 
unsigned getMaxInterleaveFactor (unsigned VF)
 
unsigned getArithmeticInstrCost (unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info, TTI::OperandValueKind Opd2Info, TTI::OperandValueProperties Opd1PropInfo, TTI::OperandValueProperties Opd2PropInfo, ArrayRef< const Value * > Args)
 
unsigned getShuffleCost (TTI::ShuffleKind Kind, Type *Ty, int Index, Type *SubTp)
 
unsigned getCastInstrCost (unsigned Opcode, Type *Dst, Type *Src, const Instruction *I)
 
unsigned getExtractWithExtendCost (unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index)
 
unsigned getCFInstrCost (unsigned Opcode)
 
unsigned getCmpSelInstrCost (unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I)
 
unsigned getVectorInstrCost (unsigned Opcode, Type *Val, unsigned Index)
 
unsigned getMemoryOpCost (unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I)
 
unsigned getMaskedMemoryOpCost (unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
 
unsigned getGatherScatterOpCost (unsigned Opcode, Type *DataTy, Value *Ptr, bool VariableMask, unsigned Alignment)
 
unsigned getInterleavedMemoryOpCost (unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
 
unsigned getIntrinsicInstrCost (Intrinsic::ID ID, Type *RetTy, ArrayRef< Type * > Tys, FastMathFlags FMF, unsigned ScalarizationCostPassed)
 
unsigned getIntrinsicInstrCost (Intrinsic::ID ID, Type *RetTy, ArrayRef< Value * > Args, FastMathFlags FMF, unsigned VF)
 
unsigned getCallInstrCost (Function *F, Type *RetTy, ArrayRef< Type * > Tys)
 
unsigned getNumberOfParts (Type *Tp)
 
unsigned getAddressComputationCost (Type *Tp, ScalarEvolution *, const SCEV *)
 
unsigned getReductionCost (unsigned, Type *, bool)
 
unsigned getCostOfKeepingLiveOverCall (ArrayRef< Type * > Tys)
 
bool getTgtMemIntrinsic (IntrinsicInst *Inst, MemIntrinsicInfo &Info)
 
unsigned getAtomicMemIntrinsicMaxElementSize () const
 
Value * getOrCreateResultFromMemIntrinsic (IntrinsicInst *Inst, Type *ExpectedType)
 
Type * getMemcpyLoopLoweringType (LLVMContext &Context, Value *Length, unsigned SrcAlign, unsigned DestAlign) const
 
void getMemcpyLoopResidualLoweringType (SmallVectorImpl< Type * > &OpsOut, LLVMContext &Context, unsigned RemainingBytes, unsigned SrcAlign, unsigned DestAlign) const
 
bool areInlineCompatible (const Function *Caller, const Function *Callee) const
 
unsigned getLoadStoreVecRegBitWidth (unsigned AddrSpace) const
 
bool isLegalToVectorizeLoad (LoadInst *LI) const
 
bool isLegalToVectorizeStore (StoreInst *SI) const
 
bool isLegalToVectorizeLoadChain (unsigned ChainSizeInBytes, unsigned Alignment, unsigned AddrSpace) const
 
bool isLegalToVectorizeStoreChain (unsigned ChainSizeInBytes, unsigned Alignment, unsigned AddrSpace) const
 
unsigned getLoadVectorFactor (unsigned VF, unsigned LoadSize, unsigned ChainSizeInBytes, VectorType *VecTy) const
 
unsigned getStoreVectorFactor (unsigned VF, unsigned StoreSize, unsigned ChainSizeInBytes, VectorType *VecTy) const
 
bool useReductionIntrinsic (unsigned Opcode, Type *Ty, TTI::ReductionFlags Flags) const
 
bool shouldExpandReduction (const IntrinsicInst *II) const
 

Protected Types

typedef TargetTransformInfo TTI
 

Protected Member Functions

 TargetTransformInfoImplBase (const DataLayout &DL)
 
unsigned minRequiredElementSize (const Value *Val, bool &isSigned)
 
bool isStridedAccess (const SCEV *Ptr)
 
const SCEVConstant * getConstantStrideStep (ScalarEvolution *SE, const SCEV *Ptr)
 
bool isConstantStridedAccessLessThan (ScalarEvolution *SE, const SCEV *Ptr, int64_t MergeDistance)
 

Protected Attributes

const DataLayout & DL
 

Detailed Description

Base class for use as a mix-in that aids implementing a TargetTransformInfo-compatible class.

Definition at line 32 of file TargetTransformInfoImpl.h.

Member Typedef Documentation

Definition at line 34 of file TargetTransformInfoImpl.h.

Constructor & Destructor Documentation

llvm::TargetTransformInfoImplBase::TargetTransformInfoImplBase ( const DataLayout &  DL)
inlineexplicitprotected

Definition at line 38 of file TargetTransformInfoImpl.h.

llvm::TargetTransformInfoImplBase::TargetTransformInfoImplBase ( const TargetTransformInfoImplBase &  Arg)
inline

Definition at line 42 of file TargetTransformInfoImpl.h.

llvm::TargetTransformInfoImplBase::TargetTransformInfoImplBase ( TargetTransformInfoImplBase &&  Arg)
inline

Definition at line 44 of file TargetTransformInfoImpl.h.

Member Function Documentation

bool llvm::TargetTransformInfoImplBase::allowsMisalignedMemoryAccesses ( LLVMContext &  Context,
unsigned  BitWidth,
unsigned  AddressSpace,
unsigned  Alignment,
bool *  Fast 
)
inline

Definition at line 297 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::areInlineCompatible ( const Function *  Caller,
const Function *  Callee 
) const
inline

Definition at line 465 of file TargetTransformInfoImpl.h.

References llvm::Function::getFnAttribute().

bool llvm::TargetTransformInfoImplBase::enableAggressiveInterleaving ( bool  LoopHasReductions)
inline

Definition at line 289 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::enableInterleavedAccessVectorization ( )
inline

Definition at line 293 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::expandMemCmp ( Instruction *  I,
unsigned &  MaxLoadSize 
)
inline

Definition at line 291 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getAddressComputationCost ( Type *  Tp,
ScalarEvolution *  ,
const SCEV *   
)
inline

Definition at line 424 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getArithmeticInstrCost ( unsigned  Opcode,
Type *  Ty,
TTI::OperandValueKind  Opd1Info,
TTI::OperandValueKind  Opd2Info,
TTI::OperandValueProperties  Opd1PropInfo,
TTI::OperandValueProperties  Opd2PropInfo,
ArrayRef< const Value * >  Args 
)
inline

Definition at line 351 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getAtomicMemIntrinsicMaxElementSize ( ) const
inline

Definition at line 437 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getCacheLineSize ( )
inline

Definition at line 341 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getCallCost ( FunctionType *  FTy,
int  NumArgs 
)
inline
unsigned llvm::TargetTransformInfoImplBase::getCallInstrCost ( Function *  F,
Type *  RetTy,
ArrayRef< Type * >  Tys 
)
inline

Definition at line 418 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getCastInstrCost ( unsigned  Opcode,
Type *  Dst,
Type *  Src,
const Instruction *  I 
)
inline

Definition at line 365 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getCFInstrCost ( unsigned  Opcode)
inline

Definition at line 373 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getCmpSelInstrCost ( unsigned  Opcode,
Type *  ValTy,
Type *  CondTy,
const Instruction *  I 
)
inline

Definition at line 375 of file TargetTransformInfoImpl.h.

const SCEVConstant* llvm::TargetTransformInfoImplBase::getConstantStrideStep ( ScalarEvolution *  SE,
const SCEV *  Ptr 
)
inlineprotected
unsigned llvm::TargetTransformInfoImplBase::getCostOfKeepingLiveOverCall ( ArrayRef< Type * >  Tys)
inline

Definition at line 431 of file TargetTransformInfoImpl.h.

const DataLayout& llvm::TargetTransformInfoImplBase::getDataLayout ( ) const
inline
unsigned llvm::TargetTransformInfoImplBase::getEstimatedNumberOfCaseClusters ( const SwitchInst &  SI,
unsigned &  JTSize 
)
inline

Definition at line 117 of file TargetTransformInfoImpl.h.

References llvm::SwitchInst::getNumCases().

int llvm::TargetTransformInfoImplBase::getExtCost ( const Instruction *  I,
const Value *  Src 
)
inline

Definition at line 123 of file TargetTransformInfoImpl.h.

References llvm::TargetTransformInfo::TCC_Basic.

unsigned llvm::TargetTransformInfoImplBase::getExtractWithExtendCost ( unsigned  Opcode,
Type *  Dst,
VectorType *  VecTy,
unsigned  Index 
)
inline

Definition at line 368 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getFlatAddressSpace ( )
inline

Definition at line 186 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getFPOpCost ( Type *  Ty)
inline

Definition at line 309 of file TargetTransformInfoImpl.h.

References llvm::TargetTransformInfo::TCC_Basic.

unsigned llvm::TargetTransformInfoImplBase::getGatherScatterOpCost ( unsigned  Opcode,
Type *  DataTy,
Value *  Ptr,
bool  VariableMask,
unsigned  Alignment 
)
inline
int llvm::TargetTransformInfoImplBase::getGEPCost ( Type *  PointeeType,
const Value *  Ptr,
ArrayRef< const Value * >  Operands 
)
inline
unsigned llvm::TargetTransformInfoImplBase::getInliningThresholdMultiplier ( )
inline

Definition at line 142 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getInterleavedMemoryOpCost ( unsigned  Opcode,
Type *  VecTy,
unsigned  Factor,
ArrayRef< unsigned >  Indices,
unsigned  Alignment,
unsigned  AddressSpace 
)
inline

Definition at line 400 of file TargetTransformInfoImpl.h.

int llvm::TargetTransformInfoImplBase::getIntImmCodeSizeCost ( unsigned  Opcode,
unsigned  Idx,
const APInt &  Imm,
Type *  Ty 
)
inline

Definition at line 311 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getIntImmCost ( const APInt &  Imm,
Type *  Ty 
)
inline
unsigned llvm::TargetTransformInfoImplBase::getIntImmCost ( unsigned  Opcode,
unsigned  Idx,
const APInt &  Imm,
Type *  Ty 
)
inline

Definition at line 318 of file TargetTransformInfoImpl.h.

References llvm::TargetTransformInfo::TCC_Free.

unsigned llvm::TargetTransformInfoImplBase::getIntImmCost ( Intrinsic::ID  IID,
unsigned  Idx,
const APInt &  Imm,
Type *  Ty 
)
inline

Definition at line 323 of file TargetTransformInfoImpl.h.

References llvm::TargetTransformInfo::TCC_Free.

unsigned llvm::TargetTransformInfoImplBase::getIntrinsicCost ( Intrinsic::ID  IID,
Type *  RetTy,
ArrayRef< Type * >  ParamTys 
)
inline
unsigned llvm::TargetTransformInfoImplBase::getIntrinsicInstrCost ( Intrinsic::ID  ID,
Type *  RetTy,
ArrayRef< Type * >  Tys,
FastMathFlags  FMF,
unsigned  ScalarizationCostPassed 
)
inline

Definition at line 408 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getIntrinsicInstrCost ( Intrinsic::ID  ID,
Type *  RetTy,
ArrayRef< Value * >  Args,
FastMathFlags  FMF,
unsigned  VF 
)
inline

Definition at line 413 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getJumpBufAlignment ( )
inline

Definition at line 273 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getJumpBufSize ( )
inline

Definition at line 275 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getLoadStoreVecRegBitWidth ( unsigned  AddrSpace) const
inline

Definition at line 473 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getLoadVectorFactor ( unsigned  VF,
unsigned  LoadSize,
unsigned  ChainSizeInBytes,
VectorType *  VecTy 
) const
inline

Definition at line 491 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getMaskedMemoryOpCost ( unsigned  Opcode,
Type *  Src,
unsigned  Alignment,
unsigned  AddressSpace 
)
inline
unsigned llvm::TargetTransformInfoImplBase::getMaxInterleaveFactor ( unsigned  VF)
inline

Definition at line 349 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getMaxPrefetchIterationsAhead ( )
inline

Definition at line 347 of file TargetTransformInfoImpl.h.

Type* llvm::TargetTransformInfoImplBase::getMemcpyLoopLoweringType ( LLVMContext &  Context,
Value *  Length,
unsigned  SrcAlign,
unsigned  DestAlign 
) const
inline

Definition at line 451 of file TargetTransformInfoImpl.h.

References llvm::Type::getInt8Ty().

void llvm::TargetTransformInfoImplBase::getMemcpyLoopResidualLoweringType ( SmallVectorImpl< Type * > &  OpsOut,
LLVMContext &  Context,
unsigned  RemainingBytes,
unsigned  SrcAlign,
unsigned  DestAlign 
) const
inline
unsigned llvm::TargetTransformInfoImplBase::getMemoryOpCost ( unsigned  Opcode,
Type *  Src,
unsigned  Alignment,
unsigned  AddressSpace,
const Instruction *  I 
)
inline

Definition at line 384 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getMinPrefetchStride ( )
inline

Definition at line 345 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getMinVectorRegisterBitWidth ( )
inline

Definition at line 332 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getNumberOfParts ( Type *  Tp)
inline

Definition at line 422 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getNumberOfRegisters ( bool  Vector)
inline

Definition at line 328 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getOperandsScalarizationOverhead ( ArrayRef< const Value * >  Args,
unsigned  VF 
)
inline

Definition at line 284 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getOperationCost ( unsigned  Opcode,
Type *  Ty,
Type *  OpTy 
)
inline
Value* llvm::TargetTransformInfoImplBase::getOrCreateResultFromMemIntrinsic ( IntrinsicInst *  Inst,
Type *  ExpectedType 
)
inline

Definition at line 446 of file TargetTransformInfoImpl.h.

TTI::PopcntSupportKind llvm::TargetTransformInfoImplBase::getPopcntSupport ( unsigned  IntTyWidthInBit)
inline
unsigned llvm::TargetTransformInfoImplBase::getPrefetchDistance ( )
inline

Definition at line 343 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getReductionCost ( unsigned  ,
Type *  ,
bool   
)
inline

Definition at line 429 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getRegisterBitWidth ( bool  Vector) const
inline

Definition at line 330 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getScalarizationOverhead ( Type *  Ty,
bool  Insert,
bool  Extract 
)
inline

Definition at line 280 of file TargetTransformInfoImpl.h.

int llvm::TargetTransformInfoImplBase::getScalingFactorCost ( Type *  Ty,
GlobalValue *  BaseGV,
int64_t  BaseOffset,
bool  HasBaseReg,
int64_t  Scale,
unsigned  AddrSpace 
)
inline

Definition at line 256 of file TargetTransformInfoImpl.h.

References isLegalAddressingMode().

unsigned llvm::TargetTransformInfoImplBase::getShuffleCost ( TTI::ShuffleKind  Kind,
Type *  Ty,
int  Index,
Type *  SubTp 
)
inline

Definition at line 360 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getStoreVectorFactor ( unsigned  VF,
unsigned  StoreSize,
unsigned  ChainSizeInBytes,
VectorType *  VecTy 
) const
inline

Definition at line 497 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::getTgtMemIntrinsic ( IntrinsicInst *  Inst,
MemIntrinsicInfo &  Info 
)
inline

Definition at line 433 of file TargetTransformInfoImpl.h.

void llvm::TargetTransformInfoImplBase::getUnrollingPreferences ( Loop *  ,
ScalarEvolution &  ,
TTI::UnrollingPreferences &   
)
inline

Definition at line 224 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::getVectorInstrCost ( unsigned  Opcode,
Type *  Val,
unsigned  Index 
)
inline

Definition at line 380 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::hasBranchDivergence ( )
inline

Definition at line 180 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::haveFastSqrt ( Type *  Ty)
inline

Definition at line 307 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isAlwaysUniform ( const Value *  V)
inline

Definition at line 184 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isConstantStridedAccessLessThan ( ScalarEvolution *  SE,
const SCEV *  Ptr,
int64_t  MergeDistance 
)
inlineprotected
bool llvm::TargetTransformInfoImplBase::isFoldableMemAccessOffset ( Instruction *  I,
int64_t  Offset 
)
inline

Definition at line 265 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isFPVectorizationPotentiallyUnsafe ( )
inline

Definition at line 295 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalAddImmediate ( int64_t  Imm)
inline

Definition at line 227 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalAddressingMode ( Type *  Ty,
GlobalValue *  BaseGV,
int64_t  BaseOffset,
bool  HasBaseReg,
int64_t  Scale,
unsigned  AddrSpace 
)
inline

Definition at line 231 of file TargetTransformInfoImpl.h.

Referenced by getScalingFactorCost().

bool llvm::TargetTransformInfoImplBase::isLegalICmpImmediate ( int64_t  Imm)
inline

Definition at line 229 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalMaskedGather ( Type *  DataType)
inline

Definition at line 252 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalMaskedLoad ( Type *  DataType)
inline

Definition at line 248 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalMaskedScatter ( Type *  DataType)
inline

Definition at line 250 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalMaskedStore ( Type *  DataType)
inline

Definition at line 246 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalToVectorizeLoad ( LoadInst *  LI) const
inline

Definition at line 475 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalToVectorizeLoadChain ( unsigned  ChainSizeInBytes,
unsigned  Alignment,
unsigned  AddrSpace 
) const
inline

Definition at line 479 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalToVectorizeStore ( StoreInst *  SI) const
inline

Definition at line 477 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLegalToVectorizeStoreChain ( unsigned  ChainSizeInBytes,
unsigned  Alignment,
unsigned  AddrSpace 
) const
inline

Definition at line 485 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isLoweredToCall ( const Function *  F)
inline
bool llvm::TargetTransformInfoImplBase::isLSRCostLess ( TTI::LSRCost &  C1,
TTI::LSRCost &  C2 
)
inline
bool llvm::TargetTransformInfoImplBase::isProfitableToHoist ( Instruction *  I)
inline

Definition at line 269 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isSourceOfDivergence ( const Value *  V)
inline

Definition at line 182 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isStridedAccess ( const SCEV *  Ptr)
inlineprotected

Definition at line 570 of file TargetTransformInfoImpl.h.

References Ptr.

Referenced by llvm::X86TTIImpl::getAddressComputationCost(), and getConstantStrideStep().

bool llvm::TargetTransformInfoImplBase::isTruncateFree ( Type *  Ty1,
Type *  Ty2 
)
inline

Definition at line 267 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::isTypeLegal ( Type *  Ty)
inline

Definition at line 271 of file TargetTransformInfoImpl.h.

unsigned llvm::TargetTransformInfoImplBase::minRequiredElementSize ( const Value *  Val,
bool &  isSigned 
)
inlineprotected
bool llvm::TargetTransformInfoImplBase::prefersVectorizedAddressing ( )
inline

Definition at line 254 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::shouldBuildLookupTables ( )
inline

Definition at line 277 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::shouldBuildLookupTablesForConstant ( Constant *  C)
inline

Definition at line 278 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::shouldConsiderAddressTypePromotion ( const Instruction &  I,
bool &  AllowPromotionWithoutCommonHeader 
)
inline

Definition at line 335 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::shouldExpandReduction ( const IntrinsicInst *  II) const
inline

Definition at line 508 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::supportsEfficientVectorElementLoadStore ( )
inline

Definition at line 287 of file TargetTransformInfoImpl.h.

bool llvm::TargetTransformInfoImplBase::useReductionIntrinsic ( unsigned  Opcode,
Type *  Ty,
TTI::ReductionFlags  Flags 
) const
inline

Definition at line 503 of file TargetTransformInfoImpl.h.

Member Data Documentation

const DataLayout& llvm::TargetTransformInfoImplBase::DL
protected

Definition at line 36 of file TargetTransformInfoImpl.h.

Referenced by llvm::NVPTXTTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::AMDGPUTTIImpl::getArithmeticInstrCost(), llvm::AArch64TTIImpl::getArithmeticInstrCost(), llvm::ARMTTIImpl::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::AArch64TTIImpl::getCastInstrCost(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::AArch64TTIImpl::getCmpSelInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), getDataLayout(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getEstimatedNumberOfCaseClusters(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getExtCost(), llvm::AArch64TTIImpl::getExtractWithExtendCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::PPCTTIImpl::getInterleavedMemoryOpCost(), llvm::AArch64TTIImpl::getInterleavedMemoryOpCost(), llvm::ARMTTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::X86TTIImpl::getMemoryOpCost(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::AArch64TTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getNumberOfParts(), getOperationCost(), llvm::X86TTIImpl::getReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getScalingFactorCost(), llvm::X86TTIImpl::getShuffleCost(), llvm::PPCTTIImpl::getShuffleCost(), llvm::AMDGPUTTIImpl::getShuffleCost(), llvm::ARMTTIImpl::getShuffleCost(), llvm::AMDGPUTTIImpl::getUnrollingPreferences(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::AArch64TTIImpl::getVectorInstrCost(), llvm::AMDGPUTTIImpl::getVectorInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::haveFastSqrt(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::isLegalAddressingMode(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), and llvm::BasicTTIImplBase< AMDGPUTTIImpl >::isTypeLegal().


The documentation for this class was generated from the following file: