aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-09-02 11:08:57 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-09-02 11:09:06 +0100
commit7338f9709bba25d23960dfea475efa2e49608c1c (patch)
tree1a47aba1ddf304904bebb9e9a1c40574cb4dd13c /clang/unittests/libclang/LibclangTest.cpp
parent2dd434c3ee1709b981f7c29744f3e17cf40f42d1 (diff)
downloadllvm-7338f9709bba25d23960dfea475efa2e49608c1c.zip
llvm-7338f9709bba25d23960dfea475efa2e49608c1c.tar.gz
llvm-7338f9709bba25d23960dfea475efa2e49608c1c.tar.bz2
[TTI] Improve description of TargetCostKind enums to aid targets in choosing cost values
I'm not sure how much to add to the description as we've tried to allow targets to interpret the TargetCostKind enums in their own way. But we need to make it clear that certain cost kinds need to match threshold numbers used by various passes (and vice-versa when passes are determining a cost-benefit threshold). I'm not keen on the "The weighted sum of size and latency" description, but its very difficult to come up with anything else that's suitably generic (e.g. X86 will use uop counts here to easily work with LoopMicroOpBufferSize thresholds, even though high latency fdiv/fsqrt instructions still often have low uop counts). Differential Revision: https://reviews.llvm.org/D132288
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions