|
LLVM
5.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< AMDGPUTTIImpl > | |
| BasicTTIImplBase (const TargetMachine *TM, const DataLayout &DL) | |
Protected Member Functions inherited from llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl > | |
| 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 28 of file AMDGPUTargetTransformInfo.h.
|
inlineexplicit |
Definition at line 63 of file AMDGPUTargetTransformInfo.h.
| int AMDGPUTTIImpl::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 267 of file AMDGPUTargetTransformInfo.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, assert(), llvm::TargetTransformInfoImplBase::DL, 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::AMDGPUSubtarget::getGeneration(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::TargetLoweringBase::getValueType(), llvm::AMDGPUSubtarget::hasFP32Denormals(), llvm::MVT::i64, llvm::TargetLoweringBase::InstructionOpcodeToISD(), llvm::EVT::isSimple(), llvm::AArch64CC::LT, llvm::ISD::MUL, llvm::ISD::OR, llvm::ISD::SHL, llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ISD::SUB, and llvm::ISD::XOR.
Definition at line 361 of file AMDGPUTargetTransformInfo.cpp.
References llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCFInstrCost(), and llvm::MipsISD::Ret.
|
inline |
Definition at line 111 of file AMDGPUTargetTransformInfo.h.
References AMDGPUAS::FLAT_ADDRESS, llvm::AMDGPUSubtarget::getAMDGPUAS(), llvm::AMDGPUSubtarget::hasFlatAddressSpace(), and AMDGPUAS::UNKNOWN_ADDRESS_SPACE.
Definition at line 187 of file AMDGPUTargetTransformInfo.cpp.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
Referenced by getNumberOfRegisters().
Definition at line 212 of file AMDGPUTargetTransformInfo.cpp.
References AMDGPUAS::CONSTANT_ADDRESS, AMDGPUAS::CONSTANT_BUFFER_0, AMDGPUAS::CONSTANT_BUFFER_15, AMDGPUAS::FLAT_ADDRESS, llvm::AMDGPUSubtarget::getAMDGPUAS(), llvm::AMDGPUSubtarget::getGeneration(), llvm::AMDGPUSubtarget::getMaxPrivateElementSize(), AMDGPUAS::GLOBAL_ADDRESS, llvm_unreachable(), AMDGPUAS::LOCAL_ADDRESS, llvm::AMDGPUSubtarget::NORTHERN_ISLANDS, AMDGPUAS::PARAM_D_ADDRESS, AMDGPUAS::PARAM_I_ADDRESS, AMDGPUAS::PRIVATE_ADDRESS, and AMDGPUAS::REGION_ADDRESS.
Definition at line 258 of file AMDGPUTargetTransformInfo.cpp.
| unsigned AMDGPUTTIImpl::getMinVectorRegisterBitWidth | ( | ) | const |
Definition at line 208 of file AMDGPUTargetTransformInfo.cpp.
Definition at line 198 of file AMDGPUTargetTransformInfo.cpp.
References getHardwareNumberOfRegisters().
|
inline |
Definition at line 74 of file AMDGPUTargetTransformInfo.h.
References assert(), llvm::isPowerOf2_32(), and llvm::TargetTransformInfo::PSK_FastHardware.
Definition at line 204 of file AMDGPUTargetTransformInfo.cpp.
| unsigned AMDGPUTTIImpl::getShuffleCost | ( | TTI::ShuffleKind | Kind, |
| Type * | Tp, | ||
| int | Index, | ||
| Type * | SubTp | ||
| ) |
Definition at line 515 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.
| void AMDGPUTTIImpl::getUnrollingPreferences | ( | Loop * | L, |
| ScalarEvolution & | SE, | ||
| TTI::UnrollingPreferences & | UP | ||
| ) |
Definition at line 66 of file AMDGPUTargetTransformInfo.cpp.
References llvm::any_of(), llvm::dbgs(), DEBUG, dependsOnLocalPhi(), llvm::TargetTransformInfoImplBase::DL, llvm::dyn_cast(), GEP, llvm::GetElementPtrInst::getAddressSpace(), llvm::AllocaInst::getAllocatedType(), llvm::AMDGPUSubtarget::getAMDGPUAS(), llvm::LoopBase< N, M >::getBlocks(), llvm::LoopBase< N, M >::getLoopDepth(), llvm::GetElementPtrInst::getPointerOperand(), llvm::LoopBase< N, M >::getSubLoops(), llvm::DataLayout::getTypeAllocSize(), llvm::GetUnderlyingObject(), I, llvm::LoopBase< N, M >::isLoopExiting(), llvm::Loop::isLoopInvariant(), llvm::Type::isSized(), llvm::AllocaInst::isStaticAlloca(), AMDGPUAS::LOCAL_ADDRESS, llvm::max(), llvm::TargetTransformInfo::UnrollingPreferences::MaxCount, llvm::User::operands(), llvm::TargetTransformInfo::UnrollingPreferences::Partial, AMDGPUAS::PRIVATE_ADDRESS, Ptr, Threshold, llvm::TargetTransformInfo::UnrollingPreferences::Threshold, UnrollThresholdIf, UnrollThresholdLocal, and UnrollThresholdPrivate.
Definition at line 372 of file AMDGPUTargetTransformInfo.cpp.
References llvm::TargetTransformInfoImplBase::DL, llvm::DataLayout::getTypeSizeInBits(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), and llvm::AMDGPUSubtarget::has16BitInsts().
|
inline |
Definition at line 120 of file AMDGPUTargetTransformInfo.h.
|
inline |
Definition at line 69 of file AMDGPUTargetTransformInfo.h.
Definition at line 502 of file AMDGPUTargetTransformInfo.cpp.
| bool AMDGPUTTIImpl::isLegalToVectorizeLoadChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 246 of file AMDGPUTargetTransformInfo.cpp.
References isLegalToVectorizeMemChain().
| bool AMDGPUTTIImpl::isLegalToVectorizeMemChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 233 of file AMDGPUTargetTransformInfo.cpp.
References llvm::AMDGPUSubtarget::getAMDGPUAS(), llvm::AMDGPUSubtarget::hasUnalignedScratchAccess(), and AMDGPUAS::PRIVATE_ADDRESS.
Referenced by isLegalToVectorizeLoadChain(), and isLegalToVectorizeStoreChain().
| bool AMDGPUTTIImpl::isLegalToVectorizeStoreChain | ( | unsigned | ChainSizeInBytes, |
| unsigned | Alignment, | ||
| unsigned | AddrSpace | ||
| ) | const |
Definition at line 252 of file AMDGPUTargetTransformInfo.cpp.
References isLegalToVectorizeMemChain().
Definition at line 471 of file AMDGPUTargetTransformInfo.cpp.
References A, llvm::AMDGPUSubtarget::getAMDGPUAS(), isArgPassedInSGPR(), isIntrinsicSourceOfDivergence(), llvm::SPII::Load, and AMDGPUAS::PRIVATE_ADDRESS.
1.8.6