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/unittests | |
| 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/unittests')
| -rw-r--r-- | llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp index c5a69250999..9eac269ed6d 100644 --- a/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp @@ -45,7 +45,7 @@ protected: template <typename SnippetGeneratorT> class SnippetGeneratorTest : public X86SnippetGeneratorTest { protected: - SnippetGeneratorTest() : Generator(State) {} + SnippetGeneratorTest() : Generator(State, SnippetGenerator::Options()) {} std::vector<CodeTemplate> checkAndGetCodeTemplates(unsigned Opcode) { randomGenerator().seed(0); // Initialize seed. @@ -335,7 +335,8 @@ TEST_F(UopsSnippetGeneratorTest, MemoryUse) { class FakeSnippetGenerator : public SnippetGenerator { public: - FakeSnippetGenerator(const LLVMState &State) : SnippetGenerator(State) {} + FakeSnippetGenerator(const LLVMState &State, const Options &Opts) + : SnippetGenerator(State, Opts) {} Instruction createInstruction(unsigned Opcode) { return State.getIC().getInstr(Opcode); |

