summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-09-27 09:23:04 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-09-27 09:23:04 +0000
commit70ac019efa13010ee2b76a3dd351a92e961c3d51 (patch)
tree8d1e8fd7b5530ff65e813bbe6a3013777bcbee43 /llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
parent31af178f4a2a001ce064202db9072f3f6a8b4497 (diff)
downloadbcm5719-llvm-70ac019efa13010ee2b76a3dd351a92e961c3d51.tar.gz
bcm5719-llvm-70ac019efa13010ee2b76a3dd351a92e961c3d51.zip
[llvm-exegesis][NFC] moving code around.
Summary: Renaming InstructionBuilder into InstructionTemplate and moving code generation tools from MCInstrDescView to CodeTemplate. Reviewers: courbet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D52592 llvm-svn: 343188
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkCode.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkCode.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
index f0032555546..b10dca5c25e 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
@@ -10,19 +10,13 @@
#ifndef LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKCODE_H
#define LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKCODE_H
-#include "llvm/ADT/APInt.h"
+#include "RegisterValue.h"
#include "llvm/MC/MCInst.h"
#include <string>
#include <vector>
namespace exegesis {
-// A simple object storing the value for a particular register.
-struct RegisterValue {
- unsigned Register;
- llvm::APInt Value;
-};
-
// A collection of instructions that are to be assembled, executed and measured.
struct BenchmarkCode {
// The sequence of instructions that are to be repeated.
OpenPOWER on IntegriCloud