diff options
author | Clement Courbet <courbet@google.com> | 2018-04-04 08:22:54 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-04-04 08:22:54 +0000 |
commit | 7949b3b1dcbdbd815dd28122871761f742b08278 (patch) | |
tree | 1adcd98e14a5ef1947a83f250bff3b6eac0af7c0 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | |
parent | 7287b2c1ec669791df8b1c704e2457338f6bee47 (diff) | |
download | bcm5719-llvm-7949b3b1dcbdbd815dd28122871761f742b08278.tar.gz bcm5719-llvm-7949b3b1dcbdbd815dd28122871761f742b08278.zip |
Revert r329156 "Add llvm-exegesis tool."
Breaks a bunch of bots.
llvm-svn: 329157
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.h')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h deleted file mode 100644 index 6c238fd1484..00000000000 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h +++ /dev/null @@ -1,53 +0,0 @@ -//===-- BenchmarkResult.h ---------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -/// -/// \file -/// Defines classes to represent measurements and serialize/deserialize them to -// Yaml. -/// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKRESULT_H -#define LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKRESULT_H - -#include "llvm/ADT/StringRef.h" -#include "llvm/Support/YAMLTraits.h" -#include <string> -#include <vector> - -namespace exegesis { - -struct AsmTemplate { - std::string Name; -}; - -struct BenchmarkMeasure { - std::string Key; - double Value; - std::string DebugString; -}; - -// The result of an instruction benchmark. -struct InstructionBenchmark { - AsmTemplate AsmTmpl; - std::string CpuName; - std::string LLVMTriple; - size_t NumRepetitions = 0; - std::vector<BenchmarkMeasure> Measurements; - std::string Error; - - static InstructionBenchmark readYamlOrDie(llvm::StringRef Filename); - - // Unfortunately this function is non const because of YAML traits. - void writeYamlOrDie(const llvm::StringRef Filename); -}; - -} // namespace exegesis - -#endif // LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKRESULT_H |