[llvm-exegesis] Allow benchmarking arbitrary code snippets.
authorClement Courbet <courbet@google.com>
Tue, 25 Sep 2018 07:31:44 +0000 (07:31 +0000)
committerClement Courbet <courbet@google.com>
Tue, 25 Sep 2018 07:31:44 +0000 (07:31 +0000)
commit78b2e73d1514e3bb7a729355f32fc63047efa13d
treea5e8c9f8506c9b38aba4771c5ee28cf2b1093f56
parent90e7ff804508e33cd684a62c58fb31f6901601d9
[llvm-exegesis] Allow benchmarking arbitrary code snippets.

Summary:

This is a step towards fixing PR38048.

Note that right now the measurements are given per instruction. We'll
need to give measurements a per code snippet and update the analysis (PR38731).

Reviewers: gchatelet

Subscribers: tschuett, llvm-commits

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

llvm-svn: 342947
llvm/docs/CommandGuide/llvm-exegesis.rst
llvm/tools/llvm-exegesis/lib/Assembler.h
llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/tools/llvm-exegesis/llvm-exegesis.cpp