[llvm-exegesis] Improve Register Setup (roll forward of D51856).
commitdb98902adc6431c9cc4ddec50fe174cfc9e626d6
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 20 Sep 2018 12:22:18 +0000 (20 12:22 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 20 Sep 2018 12:22:18 +0000 (20 12:22 +0000)
tree6bcb3b3a94114c87fe6a7e94f1d6e0ecb32426c7
parentf724c01683a66e2916b0f5ce26b98b59fd5df59d
[llvm-exegesis] Improve Register Setup (roll forward of D51856).

Summary:
Added function to set a register to a particular value + tests.
Add EFLAGS test, use new setRegTo instead of setRegToConstant.

Reviewers: courbet, javed.absar

Subscribers: llvm-commits, tschuett, mgorny

Differential Revision: https://reviews.llvm.org/D52297

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342644 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
tools/llvm-exegesis/lib/AArch64/Target.cpp
tools/llvm-exegesis/lib/Assembler.cpp
tools/llvm-exegesis/lib/Assembler.h
tools/llvm-exegesis/lib/BenchmarkCode.h
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
tools/llvm-exegesis/lib/SnippetGenerator.cpp
tools/llvm-exegesis/lib/SnippetGenerator.h
tools/llvm-exegesis/lib/Target.cpp
tools/llvm-exegesis/lib/Target.h
tools/llvm-exegesis/lib/X86/Target.cpp
unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
unittests/tools/llvm-exegesis/ARM/AssemblerTest.cpp
unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
unittests/tools/llvm-exegesis/X86/AssemblerTest.cpp
unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
unittests/tools/llvm-exegesis/X86/TargetTest.cpp