[llvm] [nfc][InstrProfTest]Add a test fixture to parameterize the read-write test of value profiles (PR #73038)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 13:14:51 PST 2023
================
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/ADT/bit.h"
----------------
minglotus-6 wrote:
yes. removed it.
I tried to use a struct to represent test values rather than using `std::tuple` in the middle, and the header is needed in the middle (if I have need `llvm::endianness`). A struct is a little bit more expressive but chose to use `std::tuple` in order to use `testing::Combine` and `testing::Values` to generate test parameters.
https://github.com/llvm/llvm-project/pull/73038
More information about the llvm-commits
mailing list