17 #ifndef LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
36 unsigned getScalarizationOverhead(
Type *Ty,
bool Insert,
bool Extract);
44 TLI(ST->getTargetLowering()) {}
50 :
BaseT(std::move(static_cast<
BaseT &>(Arg))), ST(std::move(Arg.ST)),
51 TLI(std::move(Arg.TLI)) {}
66 unsigned Opcode,
Type *Ty,
unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
unsigned getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
Base class which can be used to help build a TTI implementation.
unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
unsigned getNumberOfRegisters(bool Vector)
unsigned getMaxInterleaveFactor(unsigned VF)
X86TTIImpl(X86TTIImpl &&Arg)
unsigned getIntImmCost(int64_t)
Calculate the cost of materializing a 64-bit value.
unsigned getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwiseForm)
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
X86TTIImpl(const X86TTIImpl &Arg)
The instances of the Type class are immutable: once they are created, they are never changed...
bool isLegalMaskedStore(Type *DataType, int Consecutive)
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
X86TTIImpl(const X86TargetMachine *TM, Function &F)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
bool hasCompatibleFunctionAttributes(const Function *Caller, const Function *Callee) const
Class for arbitrary precision integers.
unsigned getRegisterBitWidth(bool Vector)
unsigned 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)
unsigned getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
const ARM::ArchExtKind Kind
static const Function * getParent(const Value *V)
unsigned getAddressComputationCost(Type *PtrTy, bool IsComplex)
This file describes how to lower LLVM code to machine code.
bool isLegalMaskedLoad(Type *DataType, int Consecutive)