[llvm] r335452 - [llvm-exegesis][NFC] clang-format
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 04:22:23 PDT 2018
Author: courbet
Date: Mon Jun 25 04:22:23 2018
New Revision: 335452
URL: http://llvm.org/viewvc/llvm-project?rev=335452&view=rev
Log:
[llvm-exegesis][NFC] clang-format
Modified:
llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp
llvm/trunk/tools/llvm-exegesis/lib/Target.cpp
llvm/trunk/tools/llvm-exegesis/lib/Target.h
llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp
llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp Mon Jun 25 04:22:23 2018
@@ -91,22 +91,22 @@ BenchmarkRunner::runOne(const BenchmarkC
// 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 BenchmarkC
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;
Modified: llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp Mon Jun 25 04:22:23 2018
@@ -86,8 +86,7 @@ Instruction::Instruction(const llvm::MCI
InstructionInstance::InstructionInstance(const Instruction &Instr)
: Instr(Instr), VariableValues(Instr.Variables.size()) {}
-InstructionInstance::InstructionInstance(InstructionInstance &&) =
- default;
+InstructionInstance::InstructionInstance(InstructionInstance &&) = default;
InstructionInstance &InstructionInstance::
operator=(InstructionInstance &&) = default;
@@ -135,8 +134,7 @@ llvm::MCInst InstructionInstance::random
SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default;
-SnippetPrototype &SnippetPrototype::
-operator=(SnippetPrototype &&) = default;
+SnippetPrototype &SnippetPrototype::operator=(SnippetPrototype &&) = default;
bool RegisterOperandAssignment::
operator==(const RegisterOperandAssignment &Other) const {
Modified: llvm/trunk/tools/llvm-exegesis/lib/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Target.cpp?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Target.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Target.cpp Mon Jun 25 04:22:23 2018
@@ -10,19 +10,19 @@
namespace exegesis {
-ExegesisTarget::~ExegesisTarget() {} // anchor.
+ExegesisTarget::~ExegesisTarget() {} // anchor.
-static ExegesisTarget* FirstTarget = nullptr;
+static ExegesisTarget *FirstTarget = nullptr;
const ExegesisTarget *ExegesisTarget::lookup(llvm::Triple TT) {
- for (const ExegesisTarget* T = FirstTarget; T != nullptr; T = T->Next) {
+ for (const ExegesisTarget *T = FirstTarget; T != nullptr; T = T->Next) {
if (T->matchesArch(TT.getArch()))
return T;
}
return nullptr;
}
-void ExegesisTarget::registerTarget(ExegesisTarget *Target){
+void ExegesisTarget::registerTarget(ExegesisTarget *Target) {
if (FirstTarget == nullptr) {
FirstTarget = Target;
return;
@@ -33,4 +33,4 @@ void ExegesisTarget::registerTarget(Exeg
Target->Next = FirstTarget;
FirstTarget = Target;
}
-} // namespace exegesis
+} // namespace exegesis
Modified: llvm/trunk/tools/llvm-exegesis/lib/Target.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Target.h?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Target.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Target.h Mon Jun 25 04:22:23 2018
@@ -38,9 +38,9 @@ public:
private:
virtual bool matchesArch(llvm::Triple::ArchType Arch) const = 0;
- const ExegesisTarget* Next = nullptr;
+ const ExegesisTarget *Next = nullptr;
};
-} // namespace exegesis
+} // namespace exegesis
#endif // LLVM_TOOLS_LLVM_EXEGESIS_TARGET_H
Modified: llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp Mon Jun 25 04:22:23 2018
@@ -97,7 +97,8 @@ UopsBenchmarkRunner::isInfeasible(const
return llvm::make_error<BenchmarkFailure>(
"Infeasible : has unknown operands");
if (llvm::any_of(MCInstrDesc.operands(), hasMemoryOperand))
- return llvm::make_error<BenchmarkFailure>("Infeasible : has memory operands");
+ return llvm::make_error<BenchmarkFailure>(
+ "Infeasible : has memory operands");
return llvm::Error::success();
}
Modified: llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp?rev=335452&r1=335451&r2=335452&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp Mon Jun 25 04:22:23 2018
@@ -29,7 +29,7 @@ class ExegesisX86Target : public Exegesi
} // namespace
-static ExegesisTarget* getTheExegesisX86Target() {
+static ExegesisTarget *getTheExegesisX86Target() {
static ExegesisX86Target Target;
return &Target;
}
@@ -38,4 +38,4 @@ void InitializeX86ExegesisTarget() {
ExegesisTarget::registerTarget(getTheExegesisX86Target());
}
-} // namespace exegesis
+} // namespace exegesis
More information about the llvm-commits
mailing list