[PATCH] D106351: [CostModel] Templatize EntryCost::Cost to allow custom cost metrics
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 20 07:18:08 PDT 2021
RKSimon added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/CostTable.h:81-90
+template <size_t N, class CostType>
+inline const TypeConversionCostTblEntryT<CostType> *ConvertCostTableLookup(
+ const llvm::TypeConversionCostTblEntryT<CostType> (&Table)[N], int ISD,
+ MVT Dst, MVT Src) {
+ // Wrapper to fix template argument deduction failures.
+ return ConvertCostTableLookup<CostType>(
+ llvm::ArrayRef<TypeConversionCostTblEntryT<CostType>>(Table), ISD, Dst,
----------------
ABataev wrote:
> Drop `llvm::`?
Sorry - I missed that one!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106351/new/
https://reviews.llvm.org/D106351
More information about the llvm-commits
mailing list