14#ifndef LLVM_CODEGEN_COSTTABLE_H_
15#define LLVM_CODEGEN_COSTTABLE_H_
25template <
typename CostType>
34template <
class CostType>
38 return ISD == Entry.ISD && Ty == Entry.Type;
47template <
size_t N,
class CostType>
48inline const CostTblEntryT<CostType> *
55template <
typename CostType>
65template <
class CostType>
71 return ISD == Entry.ISD && Src == Entry.Src && Dst == Entry.Dst;
80template <
size_t N,
class CostType>
81inline const TypeConversionCostTblEntryT<CostType> *
Represent a constant reference to an array (0 or more elements consecutively in memory),...
ISD namespace - This namespace contains an enum which represents all of the SelectionDAG node types a...
This is an optimization pass for GlobalISel generic memory operations.
const CostTblEntryT< CostType > * CostTableLookup(ArrayRef< CostTblEntryT< CostType > > Tbl, int ISD, MVT Ty)
Find in cost table.
TypeConversionCostTblEntryT< uint16_t > TypeConversionCostTblEntry
CostTblEntryT< uint16_t > CostTblEntry
auto find_if(R &&Range, UnaryPredicate P)
Provide wrappers to std::find_if which take ranges instead of having to pass begin/end explicitly.
const TypeConversionCostTblEntryT< CostType > * ConvertCostTableLookup(ArrayRef< TypeConversionCostTblEntryT< CostType > > Tbl, int ISD, MVT Dst, MVT Src)
Find in type conversion cost table.
MVT::SimpleValueType Type
Type Conversion Cost Table.