diff options
| author | Clement Courbet <courbet@google.com> | 2019-10-08 14:30:24 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2019-10-08 14:30:24 +0000 |
| commit | 2cd0f2895946de546d066f67c88ff365d3210017 (patch) | |
| tree | 1dde8cff5615fac6906b453afef96f2fb7fbc685 /llvm/tools/llvm-exegesis/lib/SnippetGenerator.h | |
| parent | cf3ab6d96c3e9477b05bbbe8b525151320e96d71 (diff) | |
| download | bcm5719-llvm-2cd0f2895946de546d066f67c88ff365d3210017.tar.gz bcm5719-llvm-2cd0f2895946de546d066f67c88ff365d3210017.zip | |
[llvm-exegesis] Add options to SnippetGenerator.
Summary:
This adds a `-max-configs-per-opcode` option to limit the number of
configs per opcode.
Reviewers: gchatelet
Subscribers: tschuett, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68642
llvm-svn: 374054
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/SnippetGenerator.h')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/SnippetGenerator.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h index c2ea1c12473..8e8cd6fcb99 100644 --- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h +++ b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h @@ -51,7 +51,11 @@ public: // Common code for all benchmark modes. class SnippetGenerator { public: - explicit SnippetGenerator(const LLVMState &State); + struct Options { + unsigned MaxConfigsPerOpcode = 1; + }; + + explicit SnippetGenerator(const LLVMState &State, const Options &Opts); virtual ~SnippetGenerator(); @@ -66,6 +70,7 @@ public: protected: const LLVMState &State; + const Options Opts; private: // API to be implemented by subclasses. |

