17 #ifndef LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
36 int getScalarizationOverhead(
Type *Ty,
bool Insert,
bool Extract);
44 TLI(ST->getTargetLowering()) {}
59 unsigned Opcode,
Type *Ty,
74 bool VariableMask,
unsigned Alignment);
108 int getGSScalarCost(
unsigned Opcode,
Type *DataTy,
bool VariableMask,
110 int getGSVectorCost(
unsigned Opcode,
Type *DataTy,
Value *
Ptr,
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
int getGatherScatterOpCost(unsigned Opcode, Type *DataTy, Value *Ptr, bool VariableMask, unsigned Alignment)
Calculate the cost of Gather / Scatter operation.
int getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, ArrayRef< Type * > Tys, FastMathFlags FMF)
The main scalar evolution driver.
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 * >())
bool isLegalMaskedScatter(Type *DataType)
Base class which can be used to help build a TTI implementation.
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
unsigned getNumberOfRegisters(bool Vector)
unsigned getMaxInterleaveFactor(unsigned VF)
bool isLegalMaskedStore(Type *DataType)
int getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwiseForm)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
int getAddressComputationCost(Type *PtrTy, ScalarEvolution *SE, const SCEV *Ptr)
The instances of the Type class are immutable: once they are created, they are never changed...
bool isLegalMaskedGather(Type *DataType)
bool isLegalMaskedLoad(Type *DataType)
int getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
bool areInlineCompatible(const Function *Caller, const Function *Callee) const
bool enableInterleavedAccessVectorization()
int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
Class for arbitrary precision integers.
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
unsigned getRegisterBitWidth(bool Vector)
This class represents an analyzed expression in the program.
int getInterleavedMemoryOpCostAVX512(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
LLVM Value Representation.
static const Function * getParent(const Value *V)
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
Convenience struct for specifying and reasoning about fast-math flags.
X86TTIImpl(const X86TargetMachine *TM, const Function &F)
int getIntImmCost(int64_t)
Calculate the cost of materializing a 64-bit value.
This file describes how to lower LLVM code to machine code.