OSDN Git Service

[llvm-exegesis] Serial snippet: Restrict the set of back-to-back instructions
authorClement Courbet <courbet@google.com>
Wed, 22 Jan 2020 08:33:50 +0000 (09:33 +0100)
committerClement Courbet <courbet@google.com>
Wed, 22 Jan 2020 10:00:43 +0000 (11:00 +0100)
commit5be8b2ec4a0f73900b4b41f6c67ac7d0091d6ac7
tree74a27115cc40bad9f6a42753af3858dbd9f63b04
parent1d549e68d4ac58e5fcdc1c9c6d2d09334fab4fbf
[llvm-exegesis] Serial snippet: Restrict the set of back-to-back instructions

Summary:
Right now when picking a back-to-back instruction at random, we might select
instructions that we do not know how to handle.
Add a ExegesisTarget hook to possibly filter instructions.

Reviewers: gchatelet

Subscribers: tschuett, mstojanovic, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73161
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/unittests/tools/llvm-exegesis/X86/TargetTest.cpp