llvm::ConvertCostTableLookup

Find in type conversion cost table.

Synopsis

Declared in <llvm/CodeGen/CostTable.h>

template<class CostType>
TypeConversionCostTblEntryT<CostType> const*
ConvertCostTableLookup(
    ArrayRef<TypeConversionCostTblEntryT<CostType>> Tbl,
    int ISD,
    MVT Dst,
    MVT Src);

Return Value

The matching entry, or nullptr if none is found.

Parameters

NameDescription
TblType-conversion cost table to search.
ISDSelectionDAG conversion opcode to match.
DstDestination machine value type to match.
SrcSource machine value type to match.