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()) {}
113 unsigned Opcode,
Type *Ty,
int getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
bool enableInterleavedAccessVectorization()
bool shouldBuildLookupTablesForConstant(Constant *C) const
unsigned getRegisterBitWidth(bool Vector)
unsigned getMaxInterleaveFactor(unsigned VF)
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 getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
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)
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important base class in LLVM.
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...
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
int getAddressComputationCost(Type *Val, ScalarEvolution *SE, const SCEV *Ptr)
static GCRegistry::Add< ShadowStackGC > C("shadow-stack","Very portable GC for uncooperative code generators")
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.