17 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETTRANSFORMINFO_H
26 class AMDGPUTargetLowering;
40 static inline int getFullRateInstrCost() {
44 static inline int getHalfRateInstrCost() {
50 static inline int getQuarterRateInstrCost() {
56 inline int get64BitInstrCost()
const {
58 getHalfRateInstrCost() : getQuarterRateInstrCost();
64 ST(TM->getSubtargetImpl(F)),
65 TLI(ST->getTargetLowering()) {}
82 unsigned Opcode,
Type *Ty,
unsigned getNumberOfRegisters(bool Vector)
void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP)
Base class which can be used to help build a TTI implementation.
bool isSourceOfDivergence(const Value *V) const
unsigned getVectorSplitCost()
unsigned getRegisterBitWidth(bool Vector)
unsigned getLoadStoreVecRegBitWidth(unsigned AddrSpace) const
unsigned getMaxInterleaveFactor(unsigned VF)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool hasHalfRate64Ops() const
constexpr bool isPowerOf2_32(uint32_t Value)
isPowerOf2_32 - This function returns true if the argument is a power of two > 0. ...
The instances of the Type class are immutable: once they are created, they are never changed...
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
The AMDGPU TargetMachine interface definition for hw codgen targets.
unsigned getCFInstrCost(unsigned Opcode)
int getVectorInstrCost(unsigned Opcode, Type *ValTy, unsigned Index)
bool hasBranchDivergence()
Represents a single loop in the control flow graph.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
int 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 * >())
LLVM Value Representation.
static const Function * getParent(const Value *V)
AMDGPUTTIImpl(const AMDGPUTargetMachine *TM, const Function &F)