17 #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_ARM_ARMTARGETTRANSFORMINFO_H
43 ARM::FeatureVFP2, ARM::FeatureVFP3, ARM::FeatureNEON, ARM::FeatureThumb2,
44 ARM::FeatureFP16, ARM::FeatureVFP4, ARM::FeatureFPARMv8,
45 ARM::FeatureFullFP16, ARM::FeatureHWDivThumb,
46 ARM::FeatureHWDivARM, ARM::FeatureDB, ARM::FeatureV7Clrex,
47 ARM::FeatureAcquireRelease, ARM::FeatureSlowFPBrcc,
48 ARM::FeaturePerfMon, ARM::FeatureTrustZone, ARM::Feature8MSecExt,
49 ARM::FeatureCrypto, ARM::FeatureCRC, ARM::FeatureRAS,
50 ARM::FeatureFPAO, ARM::FeatureFuseAES, ARM::FeatureZCZeroing,
51 ARM::FeatureProfUnpredicate, ARM::FeatureSlowVGETLNi32,
52 ARM::FeatureSlowVDUP32, ARM::FeaturePreferVMOVSR,
53 ARM::FeaturePrefISHSTBarrier, ARM::FeatureMuxedUnits,
54 ARM::FeatureSlowOddRegister, ARM::FeatureSlowLoadDSubreg,
55 ARM::FeatureDontWidenVMOVS, ARM::FeatureExpandMLx,
56 ARM::FeatureHasVMLxHazards, ARM::FeatureNEONForFPMovs,
57 ARM::FeatureNEONForFP, ARM::FeatureCheckVLDnAlign,
58 ARM::FeatureHasSlowFPVMLx, ARM::FeatureVMLxForwarding,
59 ARM::FeaturePref32BitThumb, ARM::FeatureAvoidPartialCPSR,
60 ARM::FeatureCheapPredicableCPSR, ARM::FeatureAvoidMOVsShOp,
61 ARM::FeatureHasRetAddrStack, ARM::FeatureHasNoBranchPredictor,
62 ARM::FeatureDSP, ARM::FeatureMP, ARM::FeatureVirtualization,
63 ARM::FeatureMClass, ARM::FeatureRClass, ARM::FeatureAClass,
64 ARM::FeatureNaClTrap, ARM::FeatureStrictAlign, ARM::FeatureLongCalls,
65 ARM::FeatureExecuteOnly, ARM::FeatureReserveR9, ARM::FeatureNoMovt,
66 ARM::FeatureNoNegativeImmediates
75 TLI(ST->getTargetLowering()) {}
147 unsigned Opcode,
Type *Ty,
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
bool enableInterleavedAccessVectorization()
bool shouldBuildLookupTablesForConstant(Constant *C) const
unsigned getMaxInterleaveFactor(unsigned VF)
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
The main scalar evolution driver.
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
Base class which can be used to help build a TTI implementation.
bool isThumb1Only() const
bool isTargetDarwin() const
int getFPOpCost(Type *Ty)
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)
bool areInlineCompatible(const Function *Caller, const Function *Callee) const
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)...
ARMTTIImpl(const ARMBaseTargetMachine *TM, const Function &F)
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.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
bool needsRelocation() const
This method classifies the entry according to whether or not it may generate a relocation entry...
unsigned getRegisterBitWidth(bool Vector) const
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...
This class represents an analyzed expression in the program.
unsigned getMaxInterleaveFactor() const
int getIntImmCost(const APInt &Imm, Type *Ty)
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 * >())
static const Function * getParent(const Value *V)
int getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty)
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
This file describes how to lower LLVM code to machine code.