17 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H
42 TLI(ST->getTargetLowering()) {}
70 unsigned Opcode,
Type *Ty,
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
bool enableInterleavedAccessVectorization()
Base class which can be used to help build a TTI implementation.
unsigned getPrefetchDistance()
int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
int getIntImmCost(const APInt &Imm, Type *Ty)
PPCTTIImpl(const PPCTargetMachine *TM, const Function &F)
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
unsigned getMaxInterleaveFactor(unsigned VF)
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
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...
Common code between 32-bit and 64-bit PowerPC targets.
void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP)
unsigned getCacheLineSize()
unsigned getNumberOfRegisters(bool Vector)
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 * >())
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
bool enableAggressiveInterleaving(bool LoopHasReductions)
Class for arbitrary precision integers.
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
Represents a single loop in the control flow graph.
static const Function * getParent(const Value *V)
unsigned getRegisterBitWidth(bool Vector)
This file describes how to lower LLVM code to machine code.