std::vector<uint8_t> AssembledSnippet;
// How to aggregate measurements.
enum ResultAggregationModeE { Min, Max, Mean, MinVariance };
+
+ InstructionBenchmark() = default;
+ InstructionBenchmark(InstructionBenchmark &&) = default;
+
+ InstructionBenchmark(const InstructionBenchmark &) = delete;
+ InstructionBenchmark &operator=(const InstructionBenchmark &) = delete;
+ InstructionBenchmark &operator=(InstructionBenchmark &&) = delete;
+
// Read functions.
static Expected<InstructionBenchmark> readYaml(const LLVMState &State,
MemoryBufferRef Buffer);
const auto FromDiskVector =
ExitOnErr(InstructionBenchmark::readYamls(State, *Buffer));
ASSERT_EQ(FromDiskVector.size(), size_t{1});
- const auto FromDisk = FromDiskVector[0];
+ const auto &FromDisk = FromDiskVector[0];
EXPECT_THAT(FromDisk.Key.Instructions,
Pointwise(EqMCInst(), ToDisk.Key.Instructions));
EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config);
const auto FromDiskVector =
ExitOnErr(InstructionBenchmark::readYamls(State, *Buffer));
ASSERT_EQ(FromDiskVector.size(), size_t{1});
- const auto FromDisk = FromDiskVector[0];
+ const auto &FromDisk = FromDiskVector[0];
EXPECT_THAT(FromDisk.Key.Instructions,
Pointwise(EqMCInst(), ToDisk.Key.Instructions));
EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config);