52 #define DEBUG_TYPE "x86tti"
121 unsigned Opcode,
Type *Ty,
130 assert(ISD &&
"Invalid opcode");
159 bool Op1Signed =
false;
161 bool Op2Signed =
false;
164 bool signedMode = Op1Signed | Op2Signed;
165 unsigned OpMinSize =
std::max(Op1MinSize, Op2MinSize);
169 if (!signedMode && OpMinSize <= 8)
173 if (!signedMode && OpMinSize <= 16)
178 return LT.first * Entry->Cost;
202 static const CostTblEntry AVX512BWUniformConstCostTable[] = {
213 if (
const auto *Entry =
CostTableLookup(AVX512BWUniformConstCostTable, ISD,
215 return LT.first * Entry->Cost;
218 static const CostTblEntry AVX512UniformConstCostTable[] = {
229 if (
const auto *Entry =
CostTableLookup(AVX512UniformConstCostTable, ISD,
231 return LT.first * Entry->Cost;
234 static const CostTblEntry AVX2UniformConstCostTable[] = {
249 if (
const auto *Entry =
CostTableLookup(AVX2UniformConstCostTable, ISD,
251 return LT.first * Entry->Cost;
254 static const CostTblEntry SSE2UniformConstCostTable[] = {
277 return LT.first * 32;
279 return LT.first * 15;
284 if (
const auto *Entry =
286 return LT.first * Entry->Cost;
299 if (
const auto *Entry =
301 return LT.first * Entry->Cost;
321 if (
const auto *Entry =
323 return LT.first * Entry->Cost;
334 if (
const auto *Entry =
CostTableLookup(AVX512DQCostTable, ISD, LT.second))
335 return LT.first * Entry->Cost;
368 return LT.first * Entry->Cost;
396 return LT.first * Entry->Cost;
415 if (ISD ==
ISD::SHL &&
LT.second == MVT::v16i16 &&
416 (Op2Info == TargetTransformInfo::OK_UniformConstantValue ||
417 Op2Info == TargetTransformInfo::OK_NonUniformConstantValue))
423 return LT.first * Entry->Cost;
458 return LT.first * Entry->Cost;
460 static const CostTblEntry SSE2UniformShiftCostTable[] = {
477 ((Op2Info == TargetTransformInfo::OK_UniformConstantValue) ||
478 (Op2Info == TargetTransformInfo::OK_UniformValue))) {
481 if (ISD ==
ISD::SRA &&
LT.second == MVT::v4i64 &&
ST->hasAVX2())
484 if (
const auto *Entry =
486 return LT.first * Entry->Cost;
490 Op2Info == TargetTransformInfo::OK_NonUniformConstantValue) {
494 if (((VT == MVT::v8i16 || VT == MVT::v4i32) &&
ST->hasSSE2()) ||
495 ((VT == MVT::v16i16 || VT == MVT::v8i32) &&
ST->hasAVX()))
537 return LT.first * Entry->Cost;
583 return LT.first * Entry->Cost;
594 return LT.first * Entry->Cost;
623 return LT.first * Entry->Cost;
674 return LT.first * Entry->Cost;
683 return LT.first * Entry->Cost;
686 return BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info);
705 MVT LegalVT = LT.second;
713 unsigned NumOfSrcs = (VecTySize + LegalVTSize - 1) / LegalVTSize;
715 unsigned NumOfDests = LT.first;
720 unsigned NumOfShuffles = (NumOfSrcs - 1) * NumOfDests;
721 return NumOfShuffles *
731 int NumOfDests = LT.first;
732 int NumOfShufflesPerDest = LT.first * 2 - 1;
733 LT.first = NumOfDests * NumOfShufflesPerDest;
749 if (
const auto *Entry =
751 return LT.first * Entry->Cost;
776 if (
const auto *Entry =
778 return LT.first * Entry->Cost;
821 return LT.first * Entry->Cost;
851 return LT.first * Entry->Cost;
880 return LT.first * Entry->Cost;
893 return LT.first * Entry->Cost;
911 return LT.first * Entry->Cost;
939 return LT.first * Entry->Cost;
949 return LT.first * Entry->Cost;
951 return BaseT::getShuffleCost(
Kind, Tp, Index, SubTp);
957 assert(ISD &&
"Invalid opcode");
1267 LTDest.second, LTSrc.second))
1268 return LTSrc.first * Entry->Cost;
1326 MVT MTy = LT.second;
1329 assert(ISD &&
"Invalid opcode");
1370 return LT.first * Entry->Cost;
1374 return LT.first * Entry->Cost;
1378 return LT.first * Entry->Cost;
1382 return LT.first * Entry->Cost;
1386 return LT.first * Entry->Cost;
1395 unsigned ScalarizationCostPassed) {
1577 case Intrinsic::bitreverse:
1580 case Intrinsic::bswap:
1583 case Intrinsic::ctlz:
1586 case Intrinsic::ctpop:
1589 case Intrinsic::cttz:
1592 case Intrinsic::sqrt:
1599 MVT MTy = LT.second;
1604 return LT.first * Entry->Cost;
1608 return LT.first * Entry->Cost;
1612 return LT.first * Entry->Cost;
1616 return LT.first * Entry->Cost;
1620 return LT.first * Entry->Cost;
1624 return LT.first * Entry->Cost;
1628 return LT.first * Entry->Cost;
1632 return LT.first * Entry->Cost;
1636 return LT.first * Entry->Cost;
1640 return LT.first * Entry->Cost;
1644 return LT.first * Entry->Cost;
1647 return LT.first * Entry->Cost;
1667 if (!LT.second.isVector())
1671 unsigned Width = LT.second.getVectorNumElements();
1672 Index = Index % Width;
1675 if (ScalarType->isFloatingPointTy() && Index == 0)
1681 int RegisterFileMoveCost = 0;
1682 if (Opcode == Instruction::ExtractElement && ScalarType->isPointerTy())
1683 RegisterFileMoveCost = 1;
1691 if (
VectorType *VTy = dyn_cast<VectorType>(Src)) {
1692 unsigned NumElem = VTy->getVectorNumElements();
1696 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32)
1701 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64)
1711 return NumElem * Cost + SplitCost;
1721 int Cost = LT.first * 1;
1750 int MaskCmpCost = NumElem * (BranchCost + ScalarCompareCost);
1757 return MemopCost + ValueSplitCost + MaskSplitCost + MaskCmpCost;
1764 if (VT.isSimple() && LT.second != VT.getSimpleVT() &&
1770 else if (LT.second.getVectorNumElements() > NumElem) {
1777 return Cost + LT.first*4;
1780 return Cost+LT.first;
1789 unsigned NumVectorInstToHideOverhead = 10;
1800 return NumVectorInstToHideOverhead;
1813 MVT MTy = LT.second;
1816 assert(ISD &&
"Invalid opcode");
1861 if (
const auto *Entry =
CostTableLookup(AVX1CostTblPairWise, ISD, MTy))
1862 return LT.first * Entry->Cost;
1865 if (
const auto *Entry =
CostTableLookup(SSE42CostTblPairWise, ISD, MTy))
1866 return LT.first * Entry->Cost;
1869 if (
const auto *Entry =
CostTableLookup(AVX1CostTblNoPairWise, ISD, MTy))
1870 return LT.first * Entry->Cost;
1873 if (
const auto *Entry =
CostTableLookup(SSE42CostTblNoPairWise, ISD, MTy))
1874 return LT.first * Entry->Cost;
1913 ImmVal = Imm.
sext((BitSize + 63) & ~0x3fU);
1918 for (
unsigned ShiftVal = 0; ShiftVal < BitSize; ShiftVal += 64) {
1937 unsigned ImmIdx = ~0U;
1941 case Instruction::GetElementPtr:
1951 case Instruction::ICmp:
1959 if (ImmVal == 0x100000000ULL || ImmVal == 0xffffffff)
1964 case Instruction::And:
1972 case Instruction::Sub:
1973 case Instruction::Mul:
1974 case Instruction::UDiv:
1975 case Instruction::SDiv:
1976 case Instruction::URem:
1977 case Instruction::SRem:
1978 case Instruction::Or:
1979 case Instruction::Xor:
1983 case Instruction::Shl:
1984 case Instruction::LShr:
1985 case Instruction::AShr:
1989 case Instruction::Trunc:
1990 case Instruction::ZExt:
1991 case Instruction::SExt:
1992 case Instruction::IntToPtr:
1993 case Instruction::PtrToInt:
1994 case Instruction::BitCast:
1995 case Instruction::PHI:
2003 if (Idx == ImmIdx) {
2004 int NumConstants = (BitSize + 63) / 64;
2027 case Intrinsic::sadd_with_overflow:
2028 case Intrinsic::uadd_with_overflow:
2029 case Intrinsic::ssub_with_overflow:
2030 case Intrinsic::usub_with_overflow:
2031 case Intrinsic::smul_with_overflow:
2032 case Intrinsic::umul_with_overflow:
2036 case Intrinsic::experimental_stackmap:
2040 case Intrinsic::experimental_patchpoint_void:
2041 case Intrinsic::experimental_patchpoint_i64:
2050 int X86TTIImpl::getGSVectorCost(
unsigned Opcode,
Type *SrcVTy,
Value *
Ptr,
2053 assert(isa<VectorType>(SrcVTy) &&
"Unexpected type in getGSVectorCost");
2064 if (IndexSize < 64 || !GEP)
2067 unsigned NumOfVarIndices = 0;
2079 ++NumOfVarIndices > 1)
2082 return (
unsigned)32;
2088 unsigned IndexSize = (VF >= 16) ? getIndexSizeInBits(Ptr,
DL) :
2095 int SplitFactor =
std::max(IdxsLT.first, SrcLT.first);
2096 if (SplitFactor > 1) {
2099 return SplitFactor * getGSVectorCost(Opcode, SplitSrcTy, Ptr, Alignment,
2105 const int GSOverhead = 2;
2118 int X86TTIImpl::getGSScalarCost(
unsigned Opcode,
Type *SrcVTy,
2119 bool VariableMask,
unsigned Alignment,
2120 unsigned AddressSpace) {
2123 int MaskUnpackCost = 0;
2128 int ScalarCompareCost =
2132 MaskUnpackCost += VF * (BranchCost + ScalarCompareCost);
2139 int InsertExtractCost = 0;
2141 for (
unsigned i = 0; i < VF; ++i)
2143 InsertExtractCost +=
2146 for (
unsigned i = 0; i < VF; ++i)
2148 InsertExtractCost +=
2151 return MemoryOpCost + MaskUnpackCost + InsertExtractCost;
2156 Value *Ptr,
bool VariableMask,
2157 unsigned Alignment) {
2163 assert(PtrTy &&
"Unexpected type for Ptr argument");
2166 bool Scalarize =
false;
2176 if (VF == 2 || (VF == 4 && !ST->
hasVLX()))
2180 return getGSScalarCost(Opcode, SrcVTy, VariableMask, Alignment,
2183 return getGSVectorCost(Opcode, SrcVTy, Ptr, Alignment, AddressSpace);
2188 int DataWidth = isa<PointerType>(ScalarTy) ?
2191 return ((DataWidth == 32 || DataWidth == 64) && ST->
hasAVX()) ||
2192 ((DataWidth == 8 || DataWidth == 16) && ST->
hasBWI());
2213 int DataWidth = isa<PointerType>(ScalarTy) ?
2217 return (DataWidth == 32 || DataWidth == 64) && ST->
hasAVX512();
2237 return (CallerBits & CalleeBits) == CalleeBits;
2242 MaxLoadSize = ST->
is64Bit() ? 8 : 4;
2269 unsigned AddressSpace) {
2273 if (Indices.
size() && Indices.
size() != Factor)
2275 Alignment, AddressSpace);
2287 Alignment, AddressSpace);
2296 unsigned NumOfMemOps = (VecTySize + LegalVTSize - 1) / LegalVTSize;
2301 unsigned MemOpCost =
2308 Alignment, AddressSpace);
2331 static const CostTblEntry AVX2InterleavedStoreTbl[] = {
2346 if (
const auto *Entry =
2348 return NumOfMemOps * MemOpCost + Entry->Cost;
2351 "Expected Store Instruction at this point");
2352 if (
const auto *Entry =
2354 return NumOfMemOps * MemOpCost + Entry->Cost;
2358 Alignment, AddressSpace);
2369 unsigned AddressSpace) {
2380 unsigned NumOfMemOps = (VecTySize + LegalVTSize - 1) / LegalVTSize;
2385 unsigned MemOpCost =
2395 unsigned ShuffleCost =
2398 unsigned NumOfLoadsInInterleaveGrp =
2399 Indices.
size() ? Indices.
size() : Factor;
2402 unsigned NumOfResults =
2404 NumOfLoadsInInterleaveGrp;
2408 unsigned NumOfUnfoldedLoads =
2409 NumOfResults > 1 ? NumOfMemOps : NumOfMemOps / 2;
2412 unsigned NumOfShufflesPerResult =
2413 std::max((
unsigned)1, (
unsigned)(NumOfMemOps - 1));
2418 unsigned NumOfMoves = 0;
2420 NumOfMoves = NumOfResults * NumOfShufflesPerResult / 2;
2422 int Cost = NumOfResults * NumOfShufflesPerResult * ShuffleCost +
2423 NumOfUnfoldedLoads * MemOpCost + NumOfMoves;
2430 "Expected Store Instruction at this point");
2434 unsigned NumOfSources = Factor;
2435 unsigned ShuffleCost =
2437 unsigned NumOfShufflesPerStore = NumOfSources - 1;
2441 unsigned NumOfMoves = NumOfMemOps * NumOfShufflesPerStore / 2;
2442 int Cost = NumOfMemOps * (MemOpCost + NumOfShufflesPerStore * ShuffleCost) +
2451 unsigned AddressSpace) {
2452 auto isSupportedOnAVX512 = [](
Type *VecTy,
bool &RequiresBW) {
2465 bool HasAVX512Solution = isSupportedOnAVX512(VecTy, RequiresBW);
2466 if (ST->
hasAVX512() && HasAVX512Solution && (!RequiresBW || ST->
hasBWI()))
2468 Alignment, AddressSpace);
2471 Alignment, AddressSpace);
2474 Alignment, AddressSpace);
constexpr bool isUInt< 32 >(uint64_t x)
X = FP_ROUND(Y, TRUNC) - Rounding 'Y' from a larger floating point type down to the precision of the ...
A parsed version of the target data layout string in and methods for querying it. ...
Value * getPointerOperand()
static IntegerType * getInt1Ty(LLVMContext &C)
unsigned getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, ArrayRef< Value * > Args, FastMathFlags FMF, unsigned VF=1)
Get intrinsic cost based on arguments.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
uint64_t getZExtValue() const
Get zero extended value.
DELETED_NODE - This is an illegal value that is used to catch errors.
Cost tables and simple lookup functions.
int getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
int getGatherScatterOpCost(unsigned Opcode, Type *DataTy, Value *Ptr, bool VariableMask, unsigned Alignment)
Calculate the cost of Gather / Scatter operation.
const TargetMachine & getTargetMachine() const
unsigned getLoadStoreVecRegBitWidth(unsigned AS) const
const Value * getSplatValue(const Value *V)
Get splat value if the input is a splat vector or return nullptr.
unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract)
Estimate the overhead of scalarizing an instruction.
unsigned getNumOperands() const
The main scalar evolution driver.
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 * >())
unsigned getSizeInBits() const
bool isDoubleTy() const
Return true if this is 'double', a 64-bit IEEE fp type.
Type * getScalarType() const
If this is a vector type, return the element type, otherwise return 'this'.
bool isLegalMaskedScatter(Type *DataType)
Type Conversion Cost Table.
unsigned getAddressSpace() const
Return the address space of the Pointer type.
int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
unsigned getNumberOfRegisters(bool Vector)
unsigned getMaxInterleaveFactor(unsigned VF)
bool isLegalMaskedStore(Type *DataType)
unsigned getAddressComputationCost(Type *Ty, ScalarEvolution *, const SCEV *)
Shift and rotation operations.
const TypeConversionCostTblEntry * ConvertCostTableLookup(ArrayRef< TypeConversionCostTblEntry > Tbl, int ISD, MVT Dst, MVT Src)
Find in type conversion cost table, TypeTy must be comparable to CompareTy by ==. ...
unsigned getStoreSize() const
Return the number of bytes overwritten by a store of the specified value type.
Type * getVectorElementType() const
int InstructionOpcodeToISD(unsigned Opcode) const
Get the ISD node that corresponds to the Instruction class opcode.
unsigned getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I)
unsigned getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwise)
Try to calculate arithmetic and shuffle op costs for reduction operations.
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
[SU]INT_TO_FP - These operators convert integers (whose interpreted sign depends on the first letter)...
LLVMContext & getContext() const
Return the LLVMContext in which this type was uniqued.
int getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwiseForm)
bool is64Bit() const
Is this x86_64? (disregarding specific ABI / programming model)
Simple integer binary arithmetic operators.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool expandMemCmp(Instruction *I, unsigned &MaxLoadSize)
EVT getValueType(const DataLayout &DL, Type *Ty, bool AllowUnknown=false) const
Return the EVT corresponding to this LLVM type.
int getAddressComputationCost(Type *PtrTy, ScalarEvolution *SE, const SCEV *Ptr)
size_t size() const
size - Get the array size.
Class to represent pointers.
FP_TO_[US]INT - Convert a floating point value to a signed or unsigned integer.
an instruction for type-safe pointer arithmetic to access elements of arrays and structs ...
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
Container class for subtarget features.
unsigned getVectorNumElements() const
constexpr bool isPowerOf2_32(uint32_t Value)
Return true if the argument is a power of two > 0.
The instances of the Type class are immutable: once they are created, they are never changed...
unsigned getRegisterBitWidth(bool Vector) const
Simple binary floating point operators.
bool isVectorTy() const
True if this is an instance of VectorType.
bool isLegalMaskedGather(Type *DataType)
int getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, ArrayRef< Type * > Tys, FastMathFlags FMF, unsigned ScalarizationCostPassed=UINT_MAX)
bool isVector() const
Return true if this is a vector value type.
int64_t getSExtValue() const
Get sign extended value.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
bool isFloatTy() const
Return true if this is 'float', a 32-bit IEEE fp type.
APInt sext(unsigned width) const
Sign extend to a new width.
APInt ashr(unsigned ShiftAmt) const
Arithmetic right-shift function.
bool isLegalMaskedLoad(Type *DataType)
unsigned getBitWidth() const
Return the number of bits in the APInt.
Value * getOperand(unsigned i) const
int getMaskedMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
bool areInlineCompatible(const Function *Caller, const Function *Callee) const
int getInterleavedMemoryOpCostAVX2(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
X = FP_EXTEND(Y) - Extend a smaller FP type into a larger FP type.
bool isPointerTy() const
True if this is an instance of PointerType.
bool enableInterleavedAccessVectorization()
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)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
virtual const TargetSubtargetInfo * getSubtargetImpl(const Function &) const
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
unsigned getCFInstrCost(unsigned Opcode)
unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
static IntegerType * get(LLVMContext &C, unsigned NumBits)
This static method is the primary way of constructing an IntegerType.
constexpr bool isInt< 32 >(int64_t x)
Type * getType() const
All values are typed, get the type of this value.
bool isUnalignedMem32Slow() const
Byte Swap and Counting operators.
int getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, const Instruction *I=nullptr)
const FeatureBitset & getFeatureBits() const
getFeatureBits - Return the feature bits.
Class to represent vector types.
Class for arbitrary precision integers.
bool isIntegerTy() const
True if this is an instance of IntegerType.
std::pair< int, MVT > getTypeLegalizationCost(const DataLayout &DL, Type *Ty) const
Estimate the cost of type-legalization and the legalized type.
ZERO_EXTEND - Used for integer types, zeroing the new bits.
unsigned getVectorNumElements() const
unsigned getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace, const Instruction *I=nullptr)
const CostTblEntry * CostTableLookup(ArrayRef< CostTblEntry > Tbl, int ISD, MVT Ty)
Find in cost table, TypeTy must be comparable to CompareTy by ==.
This class represents an analyzed expression in the program.
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I=nullptr)
unsigned getPointerSizeInBits(unsigned AS=0) const
Layout pointer size, in bits FIXME: The defaults need to be removed once all of the backends/clients ...
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
uint64_t getTypeStoreSize(Type *Ty) const
Returns the maximum number of bytes that may be overwritten by storing the specified type...
unsigned getAtomicMemIntrinsicMaxElementSize() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
int getInterleavedMemoryOpCostAVX512(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, unsigned Alignment, unsigned AddressSpace)
bool isSimple() const
Test if the given EVT is simple (as opposed to being extended).
unsigned getPrimitiveSizeInBits() const LLVM_READONLY
Return the basic size of this type if it is a primitive type.
LLVM Value Representation.
APInt sextOrTrunc(unsigned width) const
Sign extend or truncate to width.
static VectorType * get(Type *ElementType, unsigned NumElements)
This static method is the primary way to construct an VectorType.
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
Primary interface to the complete machine description for the target machine.
Convenience struct for specifying and reasoning about fast-math flags.
SetCC operator - This evaluates to a true value iff the condition is true.
MVT getVectorElementType() const
TRUNCATE - Completely drop the high bits.
static IntegerType * getInt8Ty(LLVMContext &C)
MVT getSimpleVT() const
Return the SimpleValueType held in the specified simple EVT.
int getIntImmCost(int64_t)
Calculate the cost of materializing a 64-bit value.
This file describes how to lower LLVM code to machine code.