summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-25 11:22:23 +0000
committerClement Courbet <courbet@google.com>2018-06-25 11:22:23 +0000
commitcff2caac75a270a81b7ea08b9f091c6567378fb3 (patch)
tree102ce749c4eb809671f9b6399650ee7ceb09925e /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
parent5b6b500687374c2e51bf8eeb2f7f776cc173cc31 (diff)
downloadbcm5719-llvm-cff2caac75a270a81b7ea08b9f091c6567378fb3.tar.gz
bcm5719-llvm-cff2caac75a270a81b7ea08b9f091c6567378fb3.zip
[llvm-exegesis][NFC] clang-format
llvm-svn: 335452
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index f9ecbae060d..59f954b8e93 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -91,22 +91,22 @@ BenchmarkRunner::runOne(const BenchmarkConfiguration &Configuration,
// that the inside instructions are repeated.
constexpr const int kMinInstructionsForSnippet = 16;
{
- auto ObjectFilePath = writeObjectFile(
- GenerateInstructions(kMinInstructionsForSnippet));
+ auto ObjectFilePath =
+ writeObjectFile(GenerateInstructions(kMinInstructionsForSnippet));
if (llvm::Error E = ObjectFilePath.takeError()) {
InstrBenchmark.Error = llvm::toString(std::move(E));
return InstrBenchmark;
}
const ExecutableFunction EF(State.createTargetMachine(),
- getObjectFromFile(*ObjectFilePath));
+ getObjectFromFile(*ObjectFilePath));
const auto FnBytes = EF.getFunctionBytes();
InstrBenchmark.AssembledSnippet.assign(FnBytes.begin(), FnBytes.end());
}
// Assemble NumRepetitions instructions repetitions of the snippet for
// measurements.
- auto ObjectFilePath = writeObjectFile(
- GenerateInstructions(InstrBenchmark.NumRepetitions));
+ auto ObjectFilePath =
+ writeObjectFile(GenerateInstructions(InstrBenchmark.NumRepetitions));
if (llvm::Error E = ObjectFilePath.takeError()) {
InstrBenchmark.Error = llvm::toString(std::move(E));
return InstrBenchmark;
@@ -114,7 +114,7 @@ BenchmarkRunner::runOne(const BenchmarkConfiguration &Configuration,
llvm::outs() << "Check generated assembly with: /usr/bin/objdump -d "
<< *ObjectFilePath << "\n";
const ExecutableFunction EF(State.createTargetMachine(),
- getObjectFromFile(*ObjectFilePath));
+ getObjectFromFile(*ObjectFilePath));
InstrBenchmark.Measurements = runMeasurements(EF, NumRepetitions);
return InstrBenchmark;
OpenPOWER on IntegriCloud