OSDN Git Service

[NFC][llvm-exegesis] Refactor ResolvedSchedClass & friends
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 29 Mar 2019 14:24:27 +0000 (14:24 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 29 Mar 2019 14:24:27 +0000 (14:24 +0000)
commit6bd5429ddf517c689be12c979127d6a7a4a068b0
treed6e4b4da90f046ab41703de720984734a37267ce
parent61dd19469429a08a57644c65c8cf7e1cd7a49e32
[NFC][llvm-exegesis] Refactor ResolvedSchedClass & friends

Summary:
`ResolvedSchedClass` will need to be used outside of `Analysis`
(before `InstructionBenchmarkClustering` even), therefore promote
it into a non-private top-level class, and while there also
move all of the functions that are only called by `ResolvedSchedClass`
into that same new file.

Reviewers: courbet, gchatelet

Reviewed By: courbet

Subscribers: mgorny, tschuett, mgrang, jdoerfert, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357259 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-exegesis/lib/Analysis.cpp
tools/llvm-exegesis/lib/Analysis.h
tools/llvm-exegesis/lib/CMakeLists.txt
tools/llvm-exegesis/lib/SchedClassResolution.cpp [new file with mode: 0644]
tools/llvm-exegesis/lib/SchedClassResolution.h [new file with mode: 0644]
unittests/tools/llvm-exegesis/X86/CMakeLists.txt
unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp [moved from unittests/tools/llvm-exegesis/X86/AnalysisTest.cpp with 85% similarity]