17 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETTRANSFORMINFO_H
40 enum MemIntrinsicType {
41 VECTOR_LDST_TWO_ELEMENTS,
42 VECTOR_LDST_THREE_ELEMENTS,
43 VECTOR_LDST_FOUR_ELEMENTS
46 bool isWideningInstruction(
Type *Ty,
unsigned Opcode,
52 TLI(ST->getTargetLowering()) {}
108 unsigned Opcode,
Type *Ty,
126 TTI::UnrollingPreferences &UP);
139 bool &AllowPromotionWithoutCommonHeader);
154 TTI::ReductionFlags
Flags)
const;
unsigned getMinVectorRegisterBitWidth()
unsigned getPrefetchDistance()
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
The main scalar evolution driver.
Base class which can be used to help build a TTI implementation.
unsigned getMaxInterleaveFactor(unsigned VF)
unsigned getMinPrefetchStride()
int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index)
int getAddressComputationCost(Type *Ty, ScalarEvolution *SE, const SCEV *Ptr)
bool enableInterleavedAccessVectorization()
bool useReductionIntrinsic(unsigned Opcode, Type *Ty, TTI::ReductionFlags Flags) const
bool areInlineCompatible(const Function *Caller, const Function *Callee) const
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool getTgtMemIntrinsic(IntrinsicInst *Inst, MemIntrinsicInfo &Info)
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)
Value * getOrCreateResultFromMemIntrinsic(IntrinsicInst *Inst, Type *ExpectedType)
int getIntImmCost(int64_t Val)
Calculate the cost of materializing a 64-bit value.
The instances of the Type class are immutable: once they are created, they are never changed...
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
unsigned getMaxPrefetchIterationsAhead()
bool shouldConsiderAddressTypePromotion(const Instruction &I, bool &AllowPromotionWithoutCommonHeader)
See if I should be considered for address type promotion.
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
AArch64TTIImpl(const AArch64TargetMachine *TM, const Function &F)
bool shouldExpandReduction(const IntrinsicInst *II) const
unsigned getCacheLineSize()
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 * >())
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP)
Class to represent vector types.
Class for arbitrary precision integers.
unsigned getNumberOfRegisters(bool Vector)
static std::vector< std::string > Flags
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
This class represents an analyzed expression in the program.
int getCostOfKeepingLiveOverCall(ArrayRef< Type * > Tys)
Represents a single loop in the control flow graph.
unsigned getMinVectorRegisterBitWidth() const
unsigned getRegisterBitWidth(bool Vector) const
LLVM Value Representation.
static const Function * getParent(const Value *V)
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
Information about a load/store intrinsic defined by the target.
A wrapper class for inspecting calls to intrinsic functions.
This file describes how to lower LLVM code to machine code.