17 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H 18 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H 42 TLI(ST->getTargetLowering()) {}
67 bool IsZeroCmp)
const;
75 unsigned Opcode,
Type *Ty,
93 unsigned AddressSpace,
94 bool UseMaskForCond =
false,
95 bool UseMaskForGaps =
false);
bool useColdCCForColdCall(Function &F)
This class represents lattice values for constants.
The main scalar evolution driver.
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)
unsigned getUserCost(const User *U, ArrayRef< const Value *> Operands)
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)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
const TTI::MemCmpExpansionOptions * enableMemCmpExpansion(bool IsZeroCmp) const
unsigned getRegisterBitWidth(bool Vector) const
The instances of the Type class are immutable: once they are created, they are never changed...
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 *>())
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.
unsigned getCacheLineSize()
unsigned getNumberOfRegisters(bool Vector)
bool enableAggressiveInterleaving(bool LoopHasReductions)
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP)
Class for arbitrary precision integers.
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
Represents a single loop in the control flow graph.
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
static const Function * getParent(const Value *V)
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond=false, bool UseMaskForGaps=false)
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
This file describes how to lower LLVM code to machine code.
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)