[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)
commit1d1330c5463f90ce2172a0110be9b625534614fa
treec77b1edaf54b211cd8b73804011d1d1c8e0ff177
parent12685d0f7cd870b64aff47016f2bc4cd7210fb14
[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

llvm-svn: 357259
llvm/tools/llvm-exegesis/lib/Analysis.cpp
llvm/tools/llvm-exegesis/lib/Analysis.h
llvm/tools/llvm-exegesis/lib/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp [new file with mode: 0644]
llvm/tools/llvm-exegesis/lib/SchedClassResolution.h [new file with mode: 0644]
llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp [moved from llvm/unittests/tools/llvm-exegesis/X86/AnalysisTest.cpp with 85% similarity]