aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-07-20 15:31:24 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-07-20 15:31:39 +0100
commit4ffc3c3726e9fd2fd1be80983d7f0fbbf5a7572c (patch)
treeda0830b2c9170f2b65801479585dd4c8bf8fa6ce /llvm/lib/Object/ObjectFile.cpp
parentd62bbbebbf709b1eaebaace62c58e759cbd32005 (diff)
downloadllvm-4ffc3c3726e9fd2fd1be80983d7f0fbbf5a7572c.zip
llvm-4ffc3c3726e9fd2fd1be80983d7f0fbbf5a7572c.tar.gz
llvm-4ffc3c3726e9fd2fd1be80983d7f0fbbf5a7572c.tar.bz2
[CostModel] Templatize EntryCost::Cost to allow custom cost metrics
We currently use an unsigned value for our CostTblEntry and TypeConversionCostTblEntry cost tables which is limiting depending on how the target wishes to handle various CostKinds etc. For instance, targets might wish to store separate instruction count, latency or throughput values etc. On D46276 we have been investigating storing a code snippet to improve latency/throughput cost calculations. There is a slight problem in that template argument deduction was struggling to match the now templatized Costs[] tables in a ArrayRef constructor - I've added helper wrappers for CostTableLookup/ConvertCostTableLookup which avoids us having to update all existing calls with a template hint. Differential Revision: https://reviews.llvm.org/D106351
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions