llvm-project/llvm/tools/llvm-exegesis
Justin Lebar fb45968e62 Use C++14-style return type deduction in LLVM.
Summary:
Simplifies the C++11-style "-> decltype(...)" return-type deduction.

Note that you have to be careful about whether the function return type
is `auto` or `decltype(auto)`.  The difference is that bare `auto`
strips const and reference, just like lambda return type deduction.  In
some cases that's what we want (or more likely, we know that the return
type is a value type), but whenever we're wrapping a templated function
which might return a reference, we need to be sure that the return type
is decltype(auto).

No functional change.

Subscribers: dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74383
2020-02-11 07:38:42 -08:00
..
lib Use C++14-style return type deduction in LLVM. 2020-02-11 07:38:42 -08:00
CMakeLists.txt [llvm-exegesis] Add MCParser to LLVM_LINK_COMPONENTS 2018-09-25 08:25:29 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-exegesis.cpp [llvm-exegesis] Improve error reporting in BenchmarkRunner.cpp 2020-02-07 16:29:52 +01:00