|
LLVM
7.0.0
|
#include "Target/SystemZ/SystemZTargetTransformInfo.h"
Additional Inherited Members | |
Protected Types inherited from llvm::TargetTransformInfoImplBase | |
| typedef TargetTransformInfo | TTI |
Protected Member Functions inherited from llvm::BasicTTIImplBase< SystemZTTIImpl > | |
| BasicTTIImplBase (const TargetMachine *TM, const DataLayout &DL) | |
Protected Member Functions inherited from llvm::TargetTransformInfoImplCRTPBase< SystemZTTIImpl > | |
| TargetTransformInfoImplCRTPBase (const DataLayout &DL) | |
Protected Member Functions inherited from llvm::TargetTransformInfoImplBase | |
| 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 inherited from llvm::TargetTransformInfoImplBase | |
| const DataLayout & | DL |
Definition at line 19 of file SystemZTargetTransformInfo.h.
|
inlineexplicit |
Definition at line 33 of file SystemZTargetTransformInfo.h.
References getIntImmCost(), getNumberOfRegisters(), getPopcntSupport(), getRegisterBitWidth(), getUnrollingPreferences(), and isLSRCostLess().
|
inline |
Definition at line 69 of file SystemZTargetTransformInfo.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, getArithmeticInstrCost(), getCastInstrCost(), getCmpSelInstrCost(), getInterleavedMemoryOpCost(), getMemoryOpCost(), getShuffleCost(), getVectorBitmaskConversionCost(), getVectorInstrCost(), getVectorTruncCost(), I, Kind, llvm::TargetTransformInfo::OK_AnyValue, and llvm::TargetTransformInfo::OP_None.
| int SystemZTTIImpl::getArithmeticInstrCost | ( | unsigned | Opcode, |
| Type * | Ty, | ||
| TTI::OperandValueKind | Opd1Info = TTI::OK_AnyValue, |
||
| TTI::OperandValueKind | Opd2Info = TTI::OK_AnyValue, |
||
| TTI::OperandValueProperties | Opd1PropInfo = TTI::OP_None, |
||
| TTI::OperandValueProperties | Opd2PropInfo = TTI::OP_None, |
||
| ArrayRef< const Value *> | Args = ArrayRef<const Value *>() |
||
| ) |
Definition at line 331 of file SystemZTargetTransformInfo.cpp.
References assert(), C, llvm::dyn_cast(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getArithmeticInstrCost(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getScalarizationOverhead(), llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), llvm::Value::getType(), llvm::ConstantInt::getValue(), llvm::Type::getVectorNumElements(), llvm::SystemZSubtarget::hasVector(), llvm::SystemZSubtarget::hasVectorEnhancements1(), llvm::APInt::isPowerOf2(), llvm::Type::isVectorTy(), and llvm::ArrayRef< T >::size().
Referenced by enableInterleavedAccessVectorization().
|
inline |
Definition at line 61 of file SystemZTargetTransformInfo.h.
| int SystemZTTIImpl::getCastInstrCost | ( | unsigned | Opcode, |
| Type * | Dst, | ||
| Type * | Src, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 605 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getCastInstrCost(), getCmpOpsType(), getElSizeLog2Diff(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getScalarizationOverhead(), llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), getVectorBitmaskConversionCost(), llvm::Type::getVectorNumElements(), getVectorTruncCost(), llvm::SystemZSubtarget::hasVector(), llvm::Type::isFloatingPointTy(), llvm::Type::isIntegerTy(), llvm::Type::isVectorTy(), and llvm::max().
Referenced by enableInterleavedAccessVectorization().
| int SystemZTTIImpl::getCmpSelInstrCost | ( | unsigned | Opcode, |
| Type * | ValTy, | ||
| Type * | CondTy, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 729 of file SystemZTargetTransformInfo.cpp.
References assert(), getCmpOpsType(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getCmpSelInstrCost(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::PPC::getPredicate(), llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), getVectorBitmaskConversionCost(), getVectorInstrCost(), llvm::Type::getVectorNumElements(), llvm::SystemZSubtarget::hasVector(), llvm::Type::isFloatingPointTy(), llvm::Type::isFloatTy(), llvm::Type::isIntegerTy(), llvm::Type::isVectorTy(), and llvm::MCID::Select.
Referenced by enableInterleavedAccessVectorization().
| int SystemZTTIImpl::getInterleavedMemoryOpCost | ( | unsigned | Opcode, |
| Type * | VecTy, | ||
| unsigned | Factor, | ||
| ArrayRef< unsigned > | Indices, | ||
| unsigned | Alignment, | ||
| unsigned | AddressSpace | ||
| ) |
Definition at line 878 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::Type::getPrimitiveSizeInBits(), llvm::Type::getVectorNumElements(), llvm::Type::isPtrOrPtrVectorTy(), llvm::SPII::Load, and llvm::ArrayRef< T >::size().
Referenced by enableInterleavedAccessVectorization().
Definition at line 34 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::APInt::getBitWidth(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::isInt< 32 >(), llvm::Type::isIntegerTy(), llvm::isUInt< 32 >(), llvm::TargetTransformInfo::TCC_Basic, and llvm::TargetTransformInfo::TCC_Free.
Referenced by getIntImmCost(), and SystemZTTIImpl().
Definition at line 66 of file SystemZTargetTransformInfo.cpp.
References llvm::MCID::Add, assert(), llvm::APInt::getBitWidth(), llvm::SystemZSubtarget::getInstrInfo(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::isInt< 16 >(), llvm::isInt< 32 >(), llvm::Type::isIntegerTy(), llvm::isUInt< 32 >(), llvm::SPII::Store, llvm::TargetTransformInfo::TCC_Basic, llvm::TargetTransformInfo::TCC_Free, and TII.
| int SystemZTTIImpl::getIntImmCost | ( | Intrinsic::ID | IID, |
| unsigned | Idx, | ||
| const APInt & | Imm, | ||
| Type * | Ty | ||
| ) |
Definition at line 184 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::APInt::getBitWidth(), getIntImmCost(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::isInt< 32 >(), llvm::Type::isIntegerTy(), llvm::isUInt< 32 >(), and llvm::TargetTransformInfo::TCC_Free.
| int SystemZTTIImpl::getMemoryOpCost | ( | unsigned | Opcode, |
| Type * | Src, | ||
| unsigned | Alignment, | ||
| unsigned | AddressSpace, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 819 of file SystemZTargetTransformInfo.cpp.
References llvm::MCID::Add, assert(), llvm::tgtok::Bits, llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::User::getNumOperands(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::Type::getScalarSizeInBits(), llvm::Value::hasOneUse(), I, llvm::Type::isVectorTy(), llvm::Type::isVoidTy(), llvm::SPII::Load, and llvm::Value::user_begin().
Referenced by enableInterleavedAccessVectorization(), and getUnrollingPreferences().
|
inline |
Definition at line 63 of file SystemZTargetTransformInfo.h.
References hasDivRemOp().
Definition at line 308 of file SystemZTargetTransformInfo.cpp.
References llvm::SystemZSubtarget::hasVector().
Referenced by SystemZTTIImpl().
| TargetTransformInfo::PopcntSupportKind SystemZTTIImpl::getPopcntSupport | ( | unsigned | TyWidth | ) |
Definition at line 234 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::SystemZSubtarget::hasPopulationCount(), llvm::isPowerOf2_32(), llvm::TargetTransformInfo::PSK_FastHardware, and llvm::TargetTransformInfo::PSK_Software.
Referenced by SystemZTTIImpl().
|
inline |
Definition at line 62 of file SystemZTargetTransformInfo.h.
Definition at line 318 of file SystemZTargetTransformInfo.cpp.
References llvm::SystemZSubtarget::hasVector().
Referenced by SystemZTTIImpl().
| int SystemZTTIImpl::getShuffleCost | ( | TTI::ShuffleKind | Kind, |
| Type * | Tp, | ||
| int | Index, | ||
| Type * | SubTp | ||
| ) |
Definition at line 467 of file SystemZTargetTransformInfo.cpp.
References assert(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::Type::getScalarType(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getShuffleCost(), llvm::SystemZSubtarget::hasVector(), llvm::Type::isFP128Ty(), llvm::Type::isVectorTy(), llvm::TargetTransformInfo::SK_Broadcast, and llvm::TargetTransformInfo::SK_ExtractSubvector.
Referenced by enableInterleavedAccessVectorization().
| void SystemZTTIImpl::getUnrollingPreferences | ( | Loop * | L, |
| ScalarEvolution & | SE, | ||
| TTI::UnrollingPreferences & | UP | ||
| ) |
Definition at line 241 of file SystemZTargetTransformInfo.cpp.
References llvm::TargetTransformInfo::UnrollingPreferences::AllowExpensiveTripCount, llvm::LoopBase< BlockT, LoopT >::blocks(), llvm::TargetTransformInfo::UnrollingPreferences::DefaultUnrollRuntimeCount, F(), llvm::TargetTransformInfo::UnrollingPreferences::Force, llvm::TargetTransformInfo::UnrollingPreferences::FullUnrollMaxCount, llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getCalledFunction(), getMemoryOpCost(), I, llvm::TargetTransformInfoImplBase::isLoweredToCall(), llvm::TargetTransformInfo::UnrollingPreferences::MaxCount, llvm::TargetTransformInfo::UnrollingPreferences::Partial, llvm::TargetTransformInfo::UnrollingPreferences::PartialThreshold, llvm::TargetTransformInfo::UnrollingPreferences::Runtime, and llvm::SPII::Store.
Referenced by SystemZTTIImpl().
Definition at line 557 of file SystemZTargetTransformInfo.cpp.
References assert(), getElSizeLog2Diff(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::Type::getScalarSizeInBits(), getVectorTruncCost(), and llvm::Type::isVectorTy().
Referenced by enableInterleavedAccessVectorization(), getCastInstrCost(), getCmpSelInstrCost(), and getVectorTruncCost().
Definition at line 800 of file SystemZTargetTransformInfo.cpp.
References llvm::Type::getScalarSizeInBits(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getVectorInstrCost(), and llvm::Type::isIntOrIntVectorTy().
Referenced by enableInterleavedAccessVectorization(), and getCmpSelInstrCost().
Definition at line 517 of file SystemZTargetTransformInfo.cpp.
References assert(), getElSizeLog2Diff(), llvm::BasicTTIImplBase< SystemZTTIImpl >::getNumberOfParts(), llvm::Type::getPrimitiveSizeInBits(), llvm::Type::getScalarSizeInBits(), getVectorBitmaskConversionCost(), llvm::Type::getVectorNumElements(), llvm::Type::isVectorTy(), and P.
Referenced by enableInterleavedAccessVectorization(), getCastInstrCost(), getElSizeLog2Diff(), and getVectorBitmaskConversionCost().
Definition at line 326 of file SystemZTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::TargetLoweringBase::getValueType(), llvm::EVT::isScalarInteger(), and llvm::TargetLoweringBase::isTypeLegal().
Referenced by getMinPrefetchStride().
| bool SystemZTTIImpl::isLSRCostLess | ( | TargetTransformInfo::LSRCost & | C1, |
| TargetTransformInfo::LSRCost & | C2 | ||
| ) |
Definition at line 296 of file SystemZTargetTransformInfo.cpp.
References llvm::TargetTransformInfo::LSRCost::AddRecCost, llvm::TargetTransformInfo::LSRCost::Insns, llvm::TargetTransformInfo::LSRCost::NumBaseAdds, llvm::TargetTransformInfo::LSRCost::NumIVMuls, llvm::TargetTransformInfo::LSRCost::NumRegs, llvm::TargetTransformInfo::LSRCost::ScaleCost, and llvm::TargetTransformInfo::LSRCost::SetupCost.
Referenced by SystemZTTIImpl().
|
inline |
Definition at line 67 of file SystemZTargetTransformInfo.h.
|
inline |
Definition at line 66 of file SystemZTargetTransformInfo.h.
|
inline |
Definition at line 68 of file SystemZTargetTransformInfo.h.
1.8.13