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()) {}
74 unsigned Opcode,
Type *Ty,
98 unsigned AddressSpace,
99 bool UseMaskForCond =
false,
100 bool UseMaskForGaps =
false);
107 unsigned ScalarizationCostPassed = UINT_MAX);
This class represents lattice values for constants.
unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy)
SystemZTTIImpl(const SystemZTargetMachine *TM, const Function &F)
bool isLSRCostLess(TargetTransformInfo::LSRCost &C1, TargetTransformInfo::LSRCost &C2)
The main scalar evolution driver.
An instruction for reading from memory.
Base class which can be used to help build a TTI implementation.
unsigned getInliningThresholdMultiplier()
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()
bool hasDivRemOp(Type *DataType, bool IsSigned)
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...
unsigned getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, const Instruction *I)
unsigned getRegisterBitWidth(bool Vector) const
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)
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond=false, bool UseMaskForGaps=false)
unsigned getMinPrefetchStride()
int getIntrinsicInstrCost(Intrinsic::ID ID, Type *RetTy, ArrayRef< Value *> Args, FastMathFlags FMF, unsigned VF=1)
static const Function * getParent(const Value *V)
Convenience struct for specifying and reasoning about fast-math flags.
bool LSRWithInstrQueries()
unsigned getCacheLineSize()
bool isFoldableLoad(const LoadInst *Ld, const Instruction *&FoldedValue)
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 *>())
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy)