OSDN Git Service

[llvm-exegesis] Improve Register Setup.
authorGuillaume Chatelet <gchatelet@google.com>
Tue, 18 Sep 2018 11:26:48 +0000 (11:26 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 18 Sep 2018 11:26:48 +0000 (11:26 +0000)
commit3208ea15c53d823e31b82aaac58b635a486a3644
treee73271699934050562fbd4c9b4c66c3832fc3c09
parent4692688a036d2414965dbee5f31dcb16fa075bfd
[llvm-exegesis] Improve Register Setup.

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: mgorny, tschuett, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342466 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