Pull google/benchmark library to the LLVM treeThis patch pulls google/benchmark v1.4.1 into the LLVM tree so that anyproject could use it for benchmark generation. A dummy benchmark isadded to `l
Pull google/benchmark library to the LLVM treeThis patch pulls google/benchmark v1.4.1 into the LLVM tree so that anyproject could use it for benchmark generation. A dummy benchmark isadded to `llvm/benchmarks/DummyYAML.cpp` to validate the correctness ofthe build process.The current version does not utilize LLVM LNT and LLVM CMakeinfrastructure, but that might be sufficient for most users. Twointroduced CMake variables:* `LLVM_INCLUDE_BENCHMARKS` (`ON` by default) generates benchmark targets* `LLVM_BUILD_BENCHMARKS` (`OFF` by default) adds generated benchmark targets to the list of default LLVM targets (i.e. if `ON` benchmarks will be built upon standard build invocation, e.g. `ninja` or `make` with no specific targets)List of modifications:* `BENCHMARK_ENABLE_TESTING` is disabled* `BENCHMARK_ENABLE_EXCEPTIONS` is disabled* `BENCHMARK_ENABLE_INSTALL` is disabled* `BENCHMARK_ENABLE_GTEST_TESTS` is disabled* `BENCHMARK_DOWNLOAD_DEPENDENCIES` is disabledOriginal discussion can be found here:http://lists.llvm.org/pipermail/llvm-dev/2018-August/125023.htmlReviewed by: dberris, lebedev.riSubscribers: ilya-biryukov, ioeric, EricWF, lebedev.ri, srhines,dschuff, mgorny, krytarowski, fedor.sergeev, mgrang, jfb, llvm-commitsDifferential Revision: https://reviews.llvm.org/D50894llvm-svn: 340809
show more ...