18 #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H 19 #define LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H 34 class ARMTargetLowering;
38 class ScalarEvolution;
58 ARM::FeatureVFP2, ARM::FeatureVFP3, ARM::FeatureNEON, ARM::FeatureThumb2,
59 ARM::FeatureFP16, ARM::FeatureVFP4, ARM::FeatureFPARMv8,
60 ARM::FeatureFullFP16, ARM::FeatureFP16FML, ARM::FeatureHWDivThumb,
61 ARM::FeatureHWDivARM, ARM::FeatureDB, ARM::FeatureV7Clrex,
62 ARM::FeatureAcquireRelease, ARM::FeatureSlowFPBrcc,
63 ARM::FeaturePerfMon, ARM::FeatureTrustZone, ARM::Feature8MSecExt,
64 ARM::FeatureCrypto, ARM::FeatureCRC, ARM::FeatureRAS,
65 ARM::FeatureFPAO, ARM::FeatureFuseAES, ARM::FeatureZCZeroing,
66 ARM::FeatureProfUnpredicate, ARM::FeatureSlowVGETLNi32,
67 ARM::FeatureSlowVDUP32, ARM::FeaturePreferVMOVSR,
68 ARM::FeaturePrefISHSTBarrier, ARM::FeatureMuxedUnits,
69 ARM::FeatureSlowOddRegister, ARM::FeatureSlowLoadDSubreg,
70 ARM::FeatureDontWidenVMOVS, ARM::FeatureExpandMLx,
71 ARM::FeatureHasVMLxHazards, ARM::FeatureNEONForFPMovs,
72 ARM::FeatureNEONForFP, ARM::FeatureCheckVLDnAlign,
73 ARM::FeatureHasSlowFPVMLx, ARM::FeatureVMLxForwarding,
74 ARM::FeaturePref32BitThumb, ARM::FeatureAvoidPartialCPSR,
75 ARM::FeatureCheapPredicableCPSR, ARM::FeatureAvoidMOVsShOp,
76 ARM::FeatureHasRetAddrStack, ARM::FeatureHasNoBranchPredictor,
77 ARM::FeatureDSP, ARM::FeatureMP, ARM::FeatureVirtualization,
78 ARM::FeatureMClass, ARM::FeatureRClass, ARM::FeatureAClass,
79 ARM::FeatureNaClTrap, ARM::FeatureStrictAlign, ARM::FeatureLongCalls,
80 ARM::FeatureExecuteOnly, ARM::FeatureReserveR9, ARM::FeatureNoMovt,
81 ARM::FeatureNoNegativeImmediates
90 TLI(ST->getTargetLowering()) {}
160 unsigned Opcode,
Type *Ty,
172 unsigned AddressSpace,
173 bool UseMaskForCond =
false,
174 bool UseMaskForGaps =
false);
193 #endif // LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
bool enableInterleavedAccessVectorization()
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
This class represents lattice values for constants.
unsigned getMaxInterleaveFactor(unsigned VF)
bool needsRelocation() const
This method classifies the entry according to whether or not it may generate a relocation entry...
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
int 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, ArrayRef< const Value *> Args=ArrayRef< const Value *>())
The main scalar evolution driver.
bool isThumb1Only() const
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, bool UseMaskForCond=false, bool UseMaskForGaps=false)
unsigned getMaxInterleaveFactor() const
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)
int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
unsigned getNumberOfRegisters(bool Vector)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool isTargetDarwin() const
ARMTTIImpl(const ARMBaseTargetMachine *TM, const Function &F)
amdgpu Simplify well known AMD library false Value * Callee
Container class for subtarget features.
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important base class in LLVM.
bool shouldBuildLookupTablesForConstant(Constant *C) const
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
int getAddressComputationCost(Type *Val, ScalarEvolution *SE, const SCEV *Ptr)
Class for arbitrary precision integers.
bool isFPVectorizationPotentiallyUnsafe()
Floating-point computation using ARMv8 AArch32 Advanced SIMD instructions remains unchanged from ARMv...
bool areInlineCompatible(const Function *Caller, const Function *Callee) const
This class represents an analyzed expression in the program.
Represents a single loop in the control flow graph.
int getIntImmCost(const APInt &Imm, Type *Ty)
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP)
static const Function * getParent(const Value *V)
int getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty)
unsigned getRegisterBitWidth(bool Vector) const
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
constexpr char Args[]
Key for Kernel::Metadata::mArgs.