[llvm-exegesis][NFC] Refactor snippet file reading out of tool main.
authorClement Courbet <courbet@google.com>
Mon, 30 Sep 2019 12:50:25 +0000 (12:50 +0000)
committerClement Courbet <courbet@google.com>
Mon, 30 Sep 2019 12:50:25 +0000 (12:50 +0000)
commit3e13816be286b6d50650da466368953966716c8c
tree80414eb2934639b4bcb2da989cc8e6e0251bf0e1
parentdab6f0746d17dc087a846c2d42f380c98e5513fe
[llvm-exegesis][NFC] Refactor snippet file reading out of tool main.

Summary: Add unit tests.

Reviewers: gchatelet

Subscribers: mgorny, tschuett, llvm-commits

Tags: #llvm

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

llvm-svn: 373202
llvm/tools/llvm-exegesis/lib/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/SnippetFile.cpp [new file with mode: 0644]
llvm/tools/llvm-exegesis/lib/SnippetFile.h [new file with mode: 0644]
llvm/tools/llvm-exegesis/llvm-exegesis.cpp
llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp [new file with mode: 0644]