1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/unittests/tools/llvm-exegesis
Craig Topper aeed624501 [X86] Merge the different CMOV instructions for each condition code into single instructions that store the condition code as an immediate.
Summary:
Reorder the condition code enum to match their encodings. Move it to MC layer so it can be used by the scheduler models.

This avoids needing an isel pattern for each condition code. And it removes
translation switches for converting between CMOV instructions and condition
codes.

Now the printer, encoder and disassembler take care of converting the immediate.
We use InstAliases to handle the assembly matching. But we print using the
asm string in the instruction definition. The instruction itself is marked
IsCodeGenOnly=1 to hide it from the assembly parser.

This does complicate the scheduler models a little since we can't assign the
A and BE instructions to a separate class now.

I plan to make similar changes for SETcc and Jcc.

Reviewers: RKSimon, spatel, lebedev.ri, andreadb, courbet

Reviewed By: RKSimon

Subscribers: gchatelet, hiraditya, kristina, lebedev.ri, jdoerfert, llvm-commits

Tags: #llvm

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

llvm-svn: 357800
2019-04-05 19:27:41 +00:00
..
AArch64 Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARM Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Common Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PowerPC Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
X86 [X86] Merge the different CMOV instructions for each condition code into single instructions that store the condition code as an immediate. 2019-04-05 19:27:41 +00:00
BenchmarkRunnerTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClusteringTest.cpp [llvm-exegesis] Introduce a 'naive' clustering algorithm (PR40880) 2019-03-28 08:55:01 +00:00
CMakeLists.txt [PowerPC][llvm-exegesis] Add a PowerPC target 2018-11-08 16:51:42 +00:00
PerfHelperTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegisterValueTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00