|
LLVM
10.0.0
|
#include "Target/AMDGPU/AMDGPUTargetTransformInfo.h"
Additional Inherited Members | |
Protected Types inherited from llvm::TargetTransformInfoImplBase | |
| typedef TargetTransformInfo | TTI |
Protected Member Functions inherited from llvm::BasicTTIImplBase< GCNTTIImpl > | |
| BasicTTIImplBase (const TargetMachine *TM, const DataLayout &DL) | |
| virtual | ~BasicTTIImplBase ()=default |
Protected Member Functions inherited from llvm::TargetTransformInfoImplCRTPBase< GCNTTIImpl > | |
| 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 66 of file AMDGPUTargetTransformInfo.h.
|
inlineexplicit |
Definition at line 130 of file AMDGPUTargetTransformInfo.h.
Definition at line 730 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetMachine::getSubtargetImpl(), llvm::TargetLoweringBase::getTargetMachine(), llvm::AMDGPU::SIModeRegisterDefaults::isInlineCompatible(), and llvm::SystemZISD::TM.
| bool GCNTTIImpl::collectFlatAddressOperands | ( | SmallVectorImpl< int > & | OpIndexes, |
| Intrinsic::ID | IID | ||
| ) | const |
Definition at line 652 of file AMDGPUTargetTransformInfo.cpp.
References llvm::SmallVectorTemplateBase< T, bool >::push_back().
| int GCNTTIImpl::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 341 of file AMDGPUTargetTransformInfo.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, llvm::TargetTransformInfoImplBase::DL, llvm::ArrayRef< T >::empty(), llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::ISD::FADD, llvm::ISD::FDIV, llvm::ISD::FMUL, llvm::ISD::FREM, llvm::ISD::FSUB, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::getValueType(), llvm::AMDGPUSubtarget::has16BitInsts(), llvm::GCNSubtarget::hasUsableDivScaleConditionOutput(), llvm::MVT::i16, llvm::MVT::i64, llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::EVT::isSimple(), llvm::AArch64CC::LT, llvm::PatternMatch::m_FPOne(), llvm::PatternMatch::match(), llvm::ISD::MUL, llvm::ISD::OR, llvm::ISD::SHL, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ISD::SUB, and llvm::ISD::XOR.
Definition at line 520 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticReductionCost(), llvm::EVT::getScalarSizeInBits(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::getValueType(), llvm::AMDGPUSubtarget::hasVOP3PInsts(), and llvm::AArch64CC::LT.
Definition at line 509 of file AMDGPUTargetTransformInfo.cpp.
References llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCFInstrCost(), and llvm::MipsISD::Ret.
|
inline |
Definition at line 189 of file AMDGPUTargetTransformInfo.h.
References llvm::BasicTTIImplBase< AMDGPUTTIImpl >::collectFlatAddressOperands(), AMDGPUAS::FLAT_ADDRESS, and llvm::BasicTTIImplBase< AMDGPUTTIImpl >::rewriteIntrinsicWithAddressSpace().
Definition at line 216 of file AMDGPUTargetTransformInfo.cpp.
|
inline |
Definition at line 212 of file AMDGPUTargetTransformInfo.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMinMaxReductionCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), and Operands.
|
inline |
Definition at line 210 of file AMDGPUTargetTransformInfo.h.
| int GCNTTIImpl::getIntrinsicInstrCost | ( | Intrinsic::ID | IID, |
| Type * | RetTy, | ||
| ArrayRef< T *> | Args, | ||
| FastMathFlags | FMF, | ||
| unsigned | VF | ||
| ) |
Definition at line 467 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::MVT::f16, llvm::MVT::f64, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::getValueType(), llvm::AMDGPUSubtarget::has16BitInsts(), llvm::GCNSubtarget::hasFastFMAF32(), llvm::EVT::isSimple(), and llvm::AArch64CC::LT.
| int GCNTTIImpl::getIntrinsicInstrCost | ( | Intrinsic::ID | IID, |
| Type * | RetTy, | ||
| ArrayRef< Type *> | Tys, | ||
| FastMathFlags | FMF, | ||
| unsigned | ScalarizationCostPassed = UINT_MAX |
||
| ) |
Definition at line 502 of file AMDGPUTargetTransformInfo.cpp.
| int GCNTTIImpl::getIntrinsicInstrCost | ( | Intrinsic::ID | IID, |
| Type * | RetTy, | ||
| ArrayRef< Value *> | Args, | ||
| FastMathFlags | FMF, | ||
| unsigned | VF = 1 |
||
| ) |
Definition at line 496 of file AMDGPUTargetTransformInfo.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args.
Definition at line 257 of file AMDGPUTargetTransformInfo.cpp.
References AMDGPUAS::BUFFER_FAT_POINTER, AMDGPUAS::CONSTANT_ADDRESS, AMDGPUAS::CONSTANT_ADDRESS_32BIT, AMDGPUAS::FLAT_ADDRESS, llvm::GCNSubtarget::getMaxPrivateElementSize(), AMDGPUAS::GLOBAL_ADDRESS, llvm_unreachable, AMDGPUAS::LOCAL_ADDRESS, AMDGPUAS::PRIVATE_ADDRESS, and AMDGPUAS::REGION_ADDRESS.
| unsigned GCNTTIImpl::getLoadVectorFactor | ( | unsigned | VF, |
| unsigned | LoadSize, | ||
| unsigned | ChainSizeInBytes, | ||
| VectorType * | VecTy | ||
| ) | const |
Definition at line 236 of file AMDGPUTargetTransformInfo.cpp.
References llvm::Type::getScalarSizeInBits().
Definition at line 301 of file AMDGPUTargetTransformInfo.cpp.
| int GCNTTIImpl::getMinMaxReductionCost | ( | Type * | Ty, |
| Type * | CondTy, | ||
| bool | IsPairwiseForm, | ||
| bool | IsUnsigned | ||
| ) |
Definition at line 535 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMinMaxReductionCost(), llvm::EVT::getScalarSizeInBits(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::getValueType(), llvm::AMDGPUSubtarget::hasVOP3PInsts(), and llvm::AArch64CC::LT.
| unsigned GCNTTIImpl::getMinVectorRegisterBitWidth | ( | ) | const |
Definition at line 232 of file AMDGPUTargetTransformInfo.cpp.
Definition at line 222 of file AMDGPUTargetTransformInfo.cpp.
|
inline |
Definition at line 143 of file AMDGPUTargetTransformInfo.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCFInstrCost(), llvm::TargetTransformInfoImplBase::getLoadStoreVecRegBitWidth(), llvm::TargetTransformInfoImplBase::getLoadVectorFactor(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMaxInterleaveFactor(), llvm::TargetTransformInfoImplBase::getMinVectorRegisterBitWidth(), llvm::TargetTransformInfoImplBase::getNumberOfRegisters(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getRegisterBitWidth(), llvm::TargetTransformInfoImplBase::getStoreVectorFactor(), llvm::TargetTransformInfoImplBase::getTgtMemIntrinsic(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), Info, llvm::BasicTTIImplBase< AMDGPUTTIImpl >::isAlwaysUniform(), llvm::TargetTransformInfoImplBase::isLegalToVectorizeLoadChain(), llvm::TargetTransformInfoImplBase::isLegalToVectorizeStoreChain(), llvm::isPowerOf2_32(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::isSourceOfDivergence(), llvm::TargetTransformInfo::OK_AnyValue, llvm::TargetTransformInfo::OP_None, llvm::TargetTransformInfo::PSK_FastHardware, and llvm::Vector.
Definition at line 228 of file AMDGPUTargetTransformInfo.cpp.
| unsigned GCNTTIImpl::getShuffleCost | ( | TTI::ShuffleKind | Kind, |
| Type * | Tp, | ||
| int | Index, | ||
| Type * | SubTp | ||
| ) |
Definition at line 707 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::SequentialType::getElementType(), llvm::SequentialType::getNumElements(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getShuffleCost(), llvm::DataLayout::getTypeSizeInBits(), llvm::AMDGPUSubtarget::hasVOP3PInsts(), llvm::TargetTransformInfo::SK_Broadcast, llvm::TargetTransformInfo::SK_PermuteSingleSrc, and llvm::TargetTransformInfo::SK_Reverse.
| unsigned GCNTTIImpl::getStoreVectorFactor | ( | unsigned | VF, |
| unsigned | StoreSize, | ||
| unsigned | ChainSizeInBytes, | ||
| VectorType * | VecTy | ||
| ) | const |
Definition at line 247 of file AMDGPUTargetTransformInfo.cpp.
| bool GCNTTIImpl::getTgtMemIntrinsic | ( | IntrinsicInst * | Inst, |
| MemIntrinsicInfo & | Info | ||
| ) | const |
Definition at line 310 of file AMDGPUTargetTransformInfo.cpp.
References llvm::dyn_cast(), llvm::CallBase::getArgOperand(), llvm::IntrinsicInst::getIntrinsicID(), llvm::ConstantInt::getZExtValue(), llvm::MemIntrinsicInfo::IsVolatile, llvm::MemIntrinsicInfo::Ordering, llvm::MemIntrinsicInfo::PtrVal, llvm::MemIntrinsicInfo::ReadMem, llvm::SequentiallyConsistent, and llvm::MemIntrinsicInfo::WriteMem.
| void GCNTTIImpl::getUnrollingPreferences | ( | Loop * | L, |
| ScalarEvolution & | SE, | ||
| TTI::UnrollingPreferences & | UP | ||
| ) |
Definition at line 753 of file AMDGPUTargetTransformInfo.cpp.
Definition at line 758 of file AMDGPUTargetTransformInfo.cpp.
References llvm::MCID::Add, llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::MCID::Call, llvm::ShuffleVectorInst::changesLength(), llvm::dyn_cast(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getShuffleCost(), llvm::Value::getType(), llvm::ShuffleVectorInst::getType(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), llvm::ConstantInt::getZExtValue(), I, llvm::ShuffleVectorInst::isExtractSubvectorMask(), llvm::ShuffleVectorInst::isIdentity(), llvm::ShuffleVectorInst::isReverse(), llvm::ShuffleVectorInst::isSelect(), llvm::ShuffleVectorInst::isSingleSource(), llvm::ShuffleVectorInst::isTranspose(), llvm::ShuffleVectorInst::isZeroEltSplat(), llvm::TargetTransformInfo::OK_AnyValue, llvm::TargetTransformInfo::OP_None, Operands, llvm::TargetTransformInfo::SK_Broadcast, llvm::TargetTransformInfo::SK_ExtractSubvector, llvm::TargetTransformInfo::SK_PermuteSingleSrc, llvm::TargetTransformInfo::SK_PermuteTwoSrc, llvm::TargetTransformInfo::SK_Reverse, llvm::TargetTransformInfo::SK_Select, and llvm::TargetTransformInfo::SK_Transpose.
Definition at line 551 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::DataLayout::getTypeSizeInBits(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), and llvm::AMDGPUSubtarget::has16BitInsts().
|
inline |
Definition at line 202 of file AMDGPUTargetTransformInfo.h.
References llvm::TargetTransformInfoImplBase::areInlineCompatible(), Callee, and llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getShuffleCost().
|
inline |
Definition at line 138 of file AMDGPUTargetTransformInfo.h.
References llvm::AMDGPUTTIImpl::getUnrollingPreferences().
Definition at line 637 of file AMDGPUTargetTransformInfo.cpp.
| bool GCNTTIImpl::isLegalToVectorizeLoadChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 289 of file AMDGPUTargetTransformInfo.cpp.
| bool GCNTTIImpl::isLegalToVectorizeMemChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 276 of file AMDGPUTargetTransformInfo.cpp.
References llvm::GCNSubtarget::hasUnalignedScratchAccess(), and AMDGPUAS::PRIVATE_ADDRESS.
| bool GCNTTIImpl::isLegalToVectorizeStoreChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 295 of file AMDGPUTargetTransformInfo.cpp.
Definition at line 606 of file AMDGPUTargetTransformInfo.cpp.
References AMDGPUAS::FLAT_ADDRESS, isArgPassedInSGPR(), llvm::AMDGPU::isIntrinsicSourceOfDivergence(), llvm::SPII::Load, and AMDGPUAS::PRIVATE_ADDRESS.
| bool GCNTTIImpl::rewriteIntrinsicWithAddressSpace | ( | IntrinsicInst * | II, |
| Value * | OldV, | ||
| Value * | NewV | ||
| ) | const |
Definition at line 669 of file AMDGPUTargetTransformInfo.cpp.
References llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Type::getContext(), llvm::Intrinsic::getDeclaration(), llvm::ConstantInt::getFalse(), llvm::IntrinsicInst::getIntrinsicID(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Type::getPointerAddressSpace(), llvm::ConstantInt::getTrue(), llvm::Value::getType(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::IsVolatile, llvm::ConstantInt::isZero(), AMDGPUAS::LOCAL_ADDRESS, AMDGPUAS::PRIVATE_ADDRESS, llvm::Value::replaceAllUsesWith(), llvm::CallBase::setArgOperand(), and llvm::CallBase::setCalledFunction().
1.8.13