17 #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H
38 unsigned getScalarizationOverhead(
Type *Ty,
bool Insert,
bool Extract);
46 TLI(ST->getTargetLowering()) {}
52 :
BaseT(std::move(static_cast<
BaseT &>(Arg))), ST(std::move(Arg.ST)),
53 TLI(std::move(Arg.TLI)) {}
109 unsigned Opcode,
Type *Ty,
unsigned getRegisterBitWidth(bool Vector)
unsigned getFPOpCost(Type *Ty)
unsigned getMaxInterleaveFactor(unsigned VF)
unsigned getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
unsigned getAddressComputationCost(Type *Val, bool IsComplex)
Base class which can be used to help build a TTI implementation.
bool isThumb1Only() const
ARMTTIImpl(const ARMBaseTargetMachine *TM, Function &F)
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
unsigned getNumberOfRegisters(bool Vector)
unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
unsigned getIntImmCost(const APInt &Imm, Type *Ty)
The instances of the Type class are immutable: once they are created, they are never changed...
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
ARMTTIImpl(ARMTTIImpl &&Arg)
unsigned getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
ARMTTIImpl(const ARMTTIImpl &Arg)
Class for arbitrary precision integers.
const ARM::ArchExtKind Kind
static const Function * getParent(const Value *V)
unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, TTI::OperandValueKind Op1Info=TTI::OK_AnyValue, TTI::OperandValueKind Op2Info=TTI::OK_AnyValue, TTI::OperandValueProperties Opd1PropInfo=TTI::OP_None, TTI::OperandValueProperties Opd2PropInfo=TTI::OP_None)
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
This file describes how to lower LLVM code to machine code.