10 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETTRANSFORMINFO_H
11 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETTRANSFORMINFO_H
30 unsigned const LIBCALL_COST = 30;
35 TLI(ST->getTargetLowering()) {}
49 TTI::UnrollingPreferences &UP);
68 unsigned Opcode,
Type *Ty,
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy)
SystemZTTIImpl(const SystemZTargetMachine *TM, const Function &F)
The main scalar evolution driver.
Base class which can be used to help build a TTI implementation.
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
unsigned getNumberOfRegisters(bool Vector)
bool supportsEfficientVectorElementLoadStore()
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP)
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)
bool enableInterleavedAccessVectorization()
The instances of the Type class are immutable: once they are created, they are never changed...
bool prefersVectorizedAddressing()
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
int getIntImmCost(const APInt &Imm, Type *Ty)
unsigned getPrefetchDistance()
Class for arbitrary precision integers.
Represents a single loop in the control flow graph.
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
unsigned getRegisterBitWidth(bool Vector) const
unsigned getMinPrefetchStride()
static const Function * getParent(const Value *V)
unsigned getCacheLineSize()
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
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 * >())
unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy)