OSDN Git Service

[llvm-exegesis] Add instructions to BenchmarkResult Key.
authorClement Courbet <courbet@google.com>
Tue, 5 Jun 2018 10:56:19 +0000 (10:56 +0000)
committerClement Courbet <courbet@google.com>
Tue, 5 Jun 2018 10:56:19 +0000 (10:56 +0000)
commitbed775073b82a4898b170613755abadd450b0157
tree2b0ba2ae7333dfb6da9342bc0a3699f56ad5fade
parent3f2a06592b378a2d713ef30a82ae0716a1d9224c
[llvm-exegesis] Add instructions to BenchmarkResult Key.

We want llvm-exegesis to explore instructions (effect of initial register values, effect of operand selection). To enable this a BenchmarkResult muststore all the relevant data in its key. This patch starts adding such data. Here we simply allow to store the generated instructions, following patches will add operands and initial values for registers.

https://reviews.llvm.org/D47764

Authored by: Guilluame Chatelet

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334008 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-exegesis/lib/BenchmarkResult.cpp
tools/llvm-exegesis/lib/BenchmarkResult.h
tools/llvm-exegesis/llvm-exegesis.cpp
unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp