summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-11-08 11:45:14 +0000
committerClement Courbet <courbet@google.com>2018-11-08 11:45:14 +0000
commitc0950ae99090d13515328eb2f6714fe0e86c28b0 (patch)
tree0f5ff0d4c85b6d5379eb1e72d61b6673c229b7c9 /llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
parent797004d2ea98342aa9a5e6d458f44a4e2e8f18cd (diff)
downloadbcm5719-llvm-c0950ae99090d13515328eb2f6714fe0e86c28b0.tar.gz
bcm5719-llvm-c0950ae99090d13515328eb2f6714fe0e86c28b0.zip
[llvm-exegesis] Add a snippet generator to generate snippets to compute ROB sizes.
llvm-svn: 346394
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkCode.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkCode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
index 38bea2519a6..dda1b29c126 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
@@ -27,6 +27,10 @@ struct BenchmarkCode {
// registers initial values.
std::vector<RegisterValue> RegisterInitialValues;
+ // Before the code is executed some instructions are added to copy the
+ // scratch register into the specified registers.
+ std::vector<unsigned> ScratchRegisterCopies;
+
// We also need to provide the registers that are live on entry for the
// assembler to generate proper prologue/epilogue.
std::vector<unsigned> LiveIns;
OpenPOWER on IntegriCloud