|
LLVM
10.0.0
|
#include "Target/PowerPC/PPCTargetTransformInfo.h"
Additional Inherited Members | |
Protected Types inherited from llvm::TargetTransformInfoImplBase | |
| typedef TargetTransformInfo | TTI |
Protected Member Functions inherited from llvm::BasicTTIImplBase< PPCTTIImpl > | |
| BasicTTIImplBase (const TargetMachine *TM, const DataLayout &DL) | |
| virtual | ~BasicTTIImplBase ()=default |
Protected Member Functions inherited from llvm::TargetTransformInfoImplCRTPBase< PPCTTIImpl > | |
| 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 26 of file PPCTargetTransformInfo.h.
| Enumerator | |
|---|---|
| GPRRC | |
| FPRRC | |
| VRRC | |
| VSXRC | |
Definition at line 77 of file PPCTargetTransformInfo.h.
|
inlineexplicit |
Definition at line 39 of file PPCTargetTransformInfo.h.
References canSaveCmp(), enableAggressiveInterleaving(), enableInterleavedAccessVectorization(), enableMemCmpExpansion(), F(), getIntImmCost(), llvm::TargetTransformInfoImplBase::getIntImmCost(), getIntImmCostInst(), getIntImmCostIntrin(), getPopcntSupport(), getUnrollingPreferences(), getUserCost(), isHardwareLoopProfitable(), Operands, and useColdCCForColdCall().
| bool PPCTTIImpl::canSaveCmp | ( | Loop * | L, |
| BranchInst ** | BI, | ||
| ScalarEvolution * | SE, | ||
| LoopInfo * | LI, | ||
| DominatorTree * | DT, | ||
| AssumptionCache * | AC, | ||
| TargetLibraryInfo * | LibInfo | ||
| ) |
Definition at line 948 of file PPCTargetTransformInfo.cpp.
References llvm::LoopBase< BlockT, LoopT >::begin(), llvm::HardwareLoopInfo::canAnalyze(), E, llvm::LoopBase< BlockT, LoopT >::end(), llvm::HardwareLoopInfo::ExitBranch, I, llvm::HardwareLoopInfo::isHardwareLoopCandidate(), and isHardwareLoopProfitable().
Referenced by PPCTTIImpl().
Definition at line 560 of file PPCTargetTransformInfo.cpp.
References llvm::PPC::DIR_A2, and llvm::PPCSubtarget::getCPUDirective().
Referenced by PPCTTIImpl().
| bool PPCTTIImpl::enableInterleavedAccessVectorization | ( | ) |
Definition at line 579 of file PPCTargetTransformInfo.cpp.
Referenced by PPCTTIImpl().
| PPCTTIImpl::TTI::MemCmpExpansionOptions PPCTTIImpl::enableMemCmpExpansion | ( | bool | OptSize, |
| bool | IsZeroCmp | ||
| ) | const |
Definition at line 572 of file PPCTargetTransformInfo.cpp.
References llvm::TargetLoweringBase::getMaxExpandSizeMemcmp(), llvm::TargetTransformInfo::MemCmpExpansionOptions::LoadSizes, and llvm::TargetTransformInfo::MemCmpExpansionOptions::MaxNumLoads.
Referenced by PPCTTIImpl().
| int PPCTTIImpl::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 *>(), |
||
| const Instruction * | CxtI = nullptr |
||
| ) |
Definition at line 713 of file PPCTargetTransformInfo.cpp.
References assert(), llvm::BasicTTIImplBase< PPCTTIImpl >::getArithmeticInstrCost(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), and vectorCostAdjustment().
|
overridevirtual |
Reimplemented from llvm::BasicTTIImplBase< PPCTTIImpl >.
Definition at line 635 of file PPCTargetTransformInfo.cpp.
References CacheLineSize, llvm::PPC::DIR_PWR7, llvm::PPC::DIR_PWR8, llvm::PPC::DIR_PWR9, llvm::PPC::DIR_PWR_FUTURE, and llvm::PPCSubtarget::getCPUDirective().
| int PPCTTIImpl::getCastInstrCost | ( | unsigned | Opcode, |
| Type * | Dst, | ||
| Type * | Src, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 742 of file PPCTargetTransformInfo.cpp.
References assert(), llvm::BasicTTIImplBase< PPCTTIImpl >::getCastInstrCost(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), and vectorCostAdjustment().
| int PPCTTIImpl::getCmpSelInstrCost | ( | unsigned | Opcode, |
| Type * | ValTy, | ||
| Type * | CondTy, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 750 of file PPCTargetTransformInfo.cpp.
References llvm::BasicTTIImplBase< PPCTTIImpl >::getCmpSelInstrCost(), and vectorCostAdjustment().
Definition at line 58 of file PPCTargetTransformInfo.cpp.
References assert(), DisablePPCConstHoist, llvm::APInt::getBitWidth(), llvm::TargetTransformInfoImplBase::getIntImmCost(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::isInt< 16 >(), llvm::isInt< 32 >(), llvm::Type::isIntegerTy(), llvm::TargetTransformInfo::TCC_Basic, and llvm::TargetTransformInfo::TCC_Free.
Referenced by getIntImmCostInst(), getIntImmCostIntrin(), and PPCTTIImpl().
Definition at line 121 of file PPCTargetTransformInfo.cpp.
References llvm::MCID::Add, assert(), llvm::MCID::Call, DisablePPCConstHoist, llvm::APInt::getBitWidth(), getIntImmCost(), llvm::TargetTransformInfoImplBase::getIntImmCostInst(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::isInt< 16 >(), llvm::Type::isIntegerTy(), llvm::PPCSubtarget::isPPC64(), llvm::isShiftedMask_32(), llvm::isShiftedMask_64(), llvm::isUInt< 16 >(), LLVM_FALLTHROUGH, llvm::SPII::Load, llvm::MipsISD::Ret, llvm::MCID::Select, llvm::SPII::Store, llvm::TargetTransformInfo::TCC_Basic, and llvm::TargetTransformInfo::TCC_Free.
Referenced by PPCTTIImpl().
| int PPCTTIImpl::getIntImmCostIntrin | ( | Intrinsic::ID | IID, |
| unsigned | Idx, | ||
| const APInt & | Imm, | ||
| Type * | Ty | ||
| ) |
Definition at line 87 of file PPCTargetTransformInfo.cpp.
References assert(), DisablePPCConstHoist, llvm::APInt::getBitWidth(), getIntImmCost(), llvm::TargetTransformInfoImplBase::getIntImmCostIntrin(), llvm::Type::getPrimitiveSizeInBits(), llvm::APInt::getSExtValue(), llvm::isInt< 16 >(), llvm::Type::isIntegerTy(), and llvm::TargetTransformInfo::TCC_Free.
Referenced by PPCTTIImpl().
| unsigned PPCTTIImpl::getIntrinsicInstrCost | ( | Intrinsic::ID | ID, |
| Type * | RetTy, | ||
| ArrayRef< Value *> | Args, | ||
| FastMathFlags | FMF, | ||
| unsigned | VF | ||
| ) |
Definition at line 934 of file PPCTargetTransformInfo.cpp.
References llvm::BasicTTIImplBase< PPCTTIImpl >::getIntrinsicInstrCost().
| unsigned PPCTTIImpl::getIntrinsicInstrCost | ( | Intrinsic::ID | ID, |
| Type * | RetTy, | ||
| ArrayRef< Type *> | Tys, | ||
| FastMathFlags | FMF, | ||
| unsigned | ScalarizationCostPassed = UINT_MAX |
||
| ) |
Definition at line 657 of file PPCTargetTransformInfo.cpp.
References llvm::PPC::DIR_440, llvm::PPC::DIR_A2, llvm::PPC::DIR_E500mc, llvm::PPC::DIR_E5500, llvm::PPC::DIR_PWR7, llvm::PPC::DIR_PWR8, llvm::PPC::DIR_PWR9, llvm::PPC::DIR_PWR_FUTURE, and llvm::PPCSubtarget::getCPUDirective().
| int PPCTTIImpl::getMemoryOpCost | ( | unsigned | Opcode, |
| Type * | Src, | ||
| MaybeAlign | Alignment, | ||
| unsigned | AddressSpace, | ||
| const Instruction * | I = nullptr |
||
| ) |
Definition at line 829 of file PPCTargetTransformInfo.cpp.
References llvm::PPCTargetLowering::allowsMisalignedMemoryAccesses(), assert(), llvm::TargetTransformInfoImplBase::DL, llvm::numbers::e, llvm::BasicTTIImplBase< PPCTTIImpl >::getMemoryOpCost(), llvm::Type::getPrimitiveSizeInBits(), llvm::TargetLoweringBase::getTypeLegalizationCost(), getVectorInstrCost(), llvm::Type::getVectorNumElements(), llvm::PPCSubtarget::hasAltivec(), llvm::PPCSubtarget::hasP8Vector(), llvm::PPCSubtarget::hasQPX(), llvm::PPCSubtarget::hasVSX(), if(), llvm::Type::isVectorTy(), llvm::SPII::Load, llvm::AArch64CC::LT, llvm::SPII::Store, llvm::MVT::v16i8, llvm::MVT::v2f64, llvm::MVT::v2i64, llvm::MVT::v4f32, llvm::MVT::v4f64, llvm::MVT::v4i32, llvm::MVT::v8i16, and vectorCostAdjustment().
Referenced by getInterleavedMemoryOpCost().
Definition at line 583 of file PPCTargetTransformInfo.cpp.
References assert(), FPRRC, GPRRC, llvm::PPCSubtarget::hasVSX(), VRRC, and VSXRC.
| TargetTransformInfo::PopcntSupportKind PPCTTIImpl::getPopcntSupport | ( | unsigned | TyWidth | ) |
Definition at line 50 of file PPCTargetTransformInfo.cpp.
References assert(), llvm::PPCSubtarget::hasPOPCNTD(), llvm::isPowerOf2_32(), llvm::PPCSubtarget::POPCNTD_Slow, llvm::PPCSubtarget::POPCNTD_Unavailable, llvm::TargetTransformInfo::PSK_FastHardware, llvm::TargetTransformInfo::PSK_SlowHardware, and llvm::TargetTransformInfo::PSK_Software.
Referenced by PPCTTIImpl().
|
overridevirtual |
Reimplemented from llvm::BasicTTIImplBase< PPCTTIImpl >.
Definition at line 651 of file PPCTargetTransformInfo.cpp.
Definition at line 622 of file PPCTargetTransformInfo.cpp.
References llvm::PPCSubtarget::hasAltivec(), llvm::PPCSubtarget::hasQPX(), and llvm::PPCSubtarget::isPPC64().
Definition at line 594 of file PPCTargetTransformInfo.cpp.
References FPRRC, llvm::Type::getScalarType(), GPRRC, llvm::PPCSubtarget::hasVSX(), llvm::Type::isDoubleTy(), llvm::Type::isFloatTy(), llvm::Type::isFP128Ty(), llvm::Type::isHalfTy(), llvm::Type::isPPC_FP128Ty(), VRRC, and VSXRC.
Definition at line 609 of file PPCTargetTransformInfo.cpp.
References FPRRC, GPRRC, llvm_unreachable, VRRC, and VSXRC.
| int PPCTTIImpl::getShuffleCost | ( | TTI::ShuffleKind | Kind, |
| Type * | Tp, | ||
| int | Index, | ||
| Type * | SubTp | ||
| ) |
Definition at line 728 of file PPCTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::AArch64CC::LT, and vectorCostAdjustment().
| void PPCTTIImpl::getUnrollingPreferences | ( | Loop * | L, |
| ScalarEvolution & | SE, | ||
| TTI::UnrollingPreferences & | UP | ||
| ) |
Definition at line 537 of file PPCTargetTransformInfo.cpp.
References llvm::TargetTransformInfo::UnrollingPreferences::AllowExpensiveTripCount, llvm::PPC::DIR_A2, llvm::PPCSubtarget::getCPUDirective(), llvm::BasicTTIImplBase< PPCTTIImpl >::getUnrollingPreferences(), llvm::TargetTransformInfo::UnrollingPreferences::Partial, and llvm::TargetTransformInfo::UnrollingPreferences::Runtime.
Referenced by PPCTTIImpl().
Definition at line 205 of file PPCTargetTransformInfo.cpp.
References llvm::BasicBlock::begin(), C, llvm::InlineAsm::ConstraintInfo::Codes, llvm::TargetTransformInfoImplBase::DL, llvm::dyn_cast(), llvm::BasicBlock::end(), llvm::StringRef::equals_lower(), F(), llvm::ISD::FCEIL, llvm::ISD::FFLOOR, llvm::ISD::FMAXNUM, llvm::ISD::FMINNUM, llvm::ISD::FNEARBYINT, llvm::ISD::FRINT, llvm::ISD::FROUND, llvm::ISD::FSQRT, llvm::ISD::FTRUNC, llvm::TLSModel::GeneralDynamic, llvm::CastInst::getDestTy(), llvm::TargetLibraryInfo::getLibFunc(), llvm::TargetLoweringBase::getMinimumJumpTableEntries(), llvm::EVT::getScalarType(), llvm::Type::getScalarType(), llvm::CastInst::getSrcTy(), llvm::PPCSubtarget::getTargetMachine(), llvm::TargetMachine::getTLSModel(), llvm::Value::getType(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetTransformInfoImplCRTPBase< PPCTTIImpl >::getUserCost(), llvm::TargetLoweringBase::getValueType(), llvm::TargetLibraryInfo::hasOptimizedCodeGen(), llvm::InlineAsm::isInput, llvm::TargetLoweringBase::isOperationLegalOrCustom(), llvm::PPCTargetMachine::isPPC64(), llvm::Type::isPPC_FP128Ty(), llvm::EVT::isVector(), llvm::Type::isVectorTy(), llvm::ISD::LLRINT, llvm::ISD::LLROUND, llvm::TLSModel::LocalDynamic, llvm::log2(), llvm::ISD::LRINT, llvm::ISD::LROUND, llvm::AArch64CC::LT, llvm::maxnum(), llvm::minnum(), llvm::Intrinsic::not_intrinsic, llvm::MVT::Other, round(), SI, llvm::ISD::SMULO, llvm::SystemZISD::TM, llvm::InlineAsm::ConstraintInfo::Type, llvm::ISD::UMULO, and llvm::PPCSubtarget::useSoftFloat().
Referenced by PPCTTIImpl().
Definition at line 756 of file PPCTargetTransformInfo.cpp.
References assert(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::Type::getScalarSizeInBits(), llvm::Type::getScalarType(), llvm::BasicTTIImplBase< PPCTTIImpl >::getVectorInstrCost(), llvm::PPCSubtarget::hasDirectMove(), llvm::PPCSubtarget::hasP9Altivec(), llvm::PPCSubtarget::hasQPX(), llvm::PPCSubtarget::hasVSX(), llvm::ISD::INSERT_VECTOR_ELT, llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::Type::isDoubleTy(), llvm::Type::isFloatingPointTy(), llvm::Type::isIntegerTy(), llvm::PPCSubtarget::isLittleEndian(), llvm::Type::isVectorTy(), and vectorCostAdjustment().
Referenced by getMemoryOpCost().
| bool PPCTTIImpl::isHardwareLoopProfitable | ( | Loop * | L, |
| ScalarEvolution & | SE, | ||
| AssumptionCache & | AC, | ||
| TargetLibraryInfo * | LibInfo, | ||
| HardwareLoopInfo & | HWLoopInfo | ||
| ) |
Definition at line 478 of file PPCTargetTransformInfo.cpp.
References llvm::CodeMetrics::analyzeBasicBlock(), llvm::LoopBase< BlockT, LoopT >::block_begin(), llvm::LoopBase< BlockT, LoopT >::block_end(), llvm::LoopBase< BlockT, LoopT >::blocks(), C, llvm::CodeMetrics::collectEphemeralValues(), llvm::LoopBase< BlockT, LoopT >::contains(), llvm::HardwareLoopInfo::CountType, llvm::ConstantInt::get(), llvm::BasicBlock::getContext(), llvm::LoopBase< BlockT, LoopT >::getExitingBlocks(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::TargetSchedModel::getIssueWidth(), llvm::ScalarEvolution::getSmallConstantTripCount(), llvm::PPCSubtarget::getTargetMachine(), llvm::BasicBlock::getTerminator(), I, llvm::ARM_PROC::IE, llvm::TargetSchedModel::init(), llvm::PPCTargetMachine::isPPC64(), llvm::HardwareLoopInfo::LoopDecrement, Metrics, llvm::CodeMetrics::NumInsts, SmallCTRLoopThreshold, and llvm::SystemZISD::TM.
Referenced by canSaveCmp(), and PPCTTIImpl().
Definition at line 556 of file PPCTargetTransformInfo.cpp.
References EnablePPCColdCC.
Referenced by PPCTTIImpl().
Definition at line 689 of file PPCTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::TargetLoweringBase::isOperationExpand(), llvm::Type::isVectorTy(), and llvm::PPCSubtarget::vectorsUseTwoUnits().
Referenced by getArithmeticInstrCost(), getCastInstrCost(), getCmpSelInstrCost(), getMemoryOpCost(), getShuffleCost(), and getVectorInstrCost().
1.8.13