1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/unittests/tools/llvm-exegesis/X86
Clement Courbet 9c2e0e0fa4 [llvm-exegesis] Add loop mode for repeating the snippet.
Summary:
Before this change the Executable function was made by duplicating the
snippet. This change adds a --repetion-mode={loop|duplicate} flag that
allows choosing between this behaviour and wrapping the snippet instructions
in a loop.

The new mode can help measurements when the snippet fits in the DSB by
short-cirtcuiting decoding. The loop adds a dec + jmp to the measurements, but
since these are not part of the critical path, they execute in parallel
with the measured code and do not impact measurements in practice.

Overview of the change:
 - New SnippetRepetitor abstraction that handles repeating the snippet.
   The assembler delegates repeating the instructions to this class.
 - ExegesisTarget learns how to decrement loop counter and jump.
 - Some refactoring of the assembler into FunctionFiller/BasicBlockFiller.

Reviewers: gchatelet

Subscribers: mgorny, tschuett, llvm-commits

Tags: #llvm

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

llvm-svn: 373083
2019-09-27 12:56:24 +00:00
..
AssemblerTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BenchmarkResultTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [llvm-exegesis] Add loop mode for repeating the snippet. 2019-09-27 12:56:24 +00:00
RegisterAliasingTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SchedClassResolutionTest.cpp [NFC][llvm-exegesis] Refactor ResolvedSchedClass & friends 2019-03-29 14:24:27 +00:00
SnippetGeneratorTest.cpp [llvm-exegesis] Add loop mode for repeating the snippet. 2019-09-27 12:56:24 +00:00
SnippetRepetitorTest.cpp [llvm-exegesis] Add loop mode for repeating the snippet. 2019-09-27 12:56:24 +00:00
TargetTest.cpp [llvm-exegesis] Allow the target to disable the selection of some registers. 2019-03-26 15:44:57 +00:00