[llvm] r328428 - [llvm-mca] run clang-format on all files.
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 24 09:05:36 PDT 2018
Author: adibiagio
Date: Sat Mar 24 09:05:36 2018
New Revision: 328428
URL: http://llvm.org/viewvc/llvm-project?rev=328428&view=rev
Log:
[llvm-mca] run clang-format on all files.
This also addresses Simon's review comment in D44839.
Modified:
llvm/trunk/tools/llvm-mca/BackendPrinter.cpp
llvm/trunk/tools/llvm-mca/BackendPrinter.h
llvm/trunk/tools/llvm-mca/BackendStatistics.h
llvm/trunk/tools/llvm-mca/Dispatch.cpp
llvm/trunk/tools/llvm-mca/HWEventListener.cpp
llvm/trunk/tools/llvm-mca/InstrBuilder.cpp
llvm/trunk/tools/llvm-mca/Instruction.h
llvm/trunk/tools/llvm-mca/LSUnit.cpp
llvm/trunk/tools/llvm-mca/LSUnit.h
llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp
llvm/trunk/tools/llvm-mca/ResourcePressureView.h
llvm/trunk/tools/llvm-mca/Scheduler.h
llvm/trunk/tools/llvm-mca/SourceMgr.h
llvm/trunk/tools/llvm-mca/SummaryView.cpp
llvm/trunk/tools/llvm-mca/TimelineView.cpp
llvm/trunk/tools/llvm-mca/TimelineView.h
llvm/trunk/tools/llvm-mca/View.cpp
llvm/trunk/tools/llvm-mca/View.h
llvm/trunk/tools/llvm-mca/llvm-mca.cpp
Modified: llvm/trunk/tools/llvm-mca/BackendPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendPrinter.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendPrinter.cpp (original)
+++ llvm/trunk/tools/llvm-mca/BackendPrinter.cpp Sat Mar 24 09:05:36 2018
@@ -24,5 +24,4 @@ void BackendPrinter::printReport(llvm::r
for (const auto &V : Views)
V->printView(OS);
}
-
} // namespace mca.
Modified: llvm/trunk/tools/llvm-mca/BackendPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendPrinter.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendPrinter.h (original)
+++ llvm/trunk/tools/llvm-mca/BackendPrinter.h Sat Mar 24 09:05:36 2018
@@ -26,7 +26,6 @@
namespace mca {
-
/// \brief A printer class that knows how to collects statistics on the
/// code analyzed by the llvm-mca tool.
///
@@ -48,7 +47,6 @@ public:
void printReport(llvm::raw_ostream &OS) const;
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/BackendStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendStatistics.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendStatistics.h (original)
+++ llvm/trunk/tools/llvm-mca/BackendStatistics.h Sat Mar 24 09:05:36 2018
@@ -130,8 +130,8 @@ class BackendStatistics : public View {
public:
BackendStatistics(const llvm::MCSubtargetInfo &sti)
- : STI(sti), NumDispatched(0), NumIssued(0), NumRetired(0),
- NumCycles(0), HWStalls(HWStallEvent::LastGenericEvent),
+ : STI(sti), NumDispatched(0), NumIssued(0), NumRetired(0), NumCycles(0),
+ HWStalls(HWStallEvent::LastGenericEvent),
// TODO: The view currently assumes a single register file. This will
// change in future.
RegisterFiles(1) {}
Modified: llvm/trunk/tools/llvm-mca/Dispatch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Dispatch.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Dispatch.cpp (original)
+++ llvm/trunk/tools/llvm-mca/Dispatch.cpp Sat Mar 24 09:05:36 2018
@@ -223,8 +223,8 @@ unsigned RetireControlUnit::reserveSlot(
return TokenID;
}
-void DispatchUnit::notifyInstructionDispatched(
- unsigned Index, ArrayRef<unsigned> UsedRegs) {
+void DispatchUnit::notifyInstructionDispatched(unsigned Index,
+ ArrayRef<unsigned> UsedRegs) {
DEBUG(dbgs() << "[E] Instruction Dispatched: " << Index << '\n');
Owner->notifyInstructionEvent(HWInstructionDispatchedEvent(Index, UsedRegs));
}
@@ -389,5 +389,4 @@ void DispatchUnit::dump() const {
RCU->dump();
}
#endif
-
} // namespace mca
Modified: llvm/trunk/tools/llvm-mca/HWEventListener.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/HWEventListener.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/HWEventListener.cpp (original)
+++ llvm/trunk/tools/llvm-mca/HWEventListener.cpp Sat Mar 24 09:05:36 2018
@@ -18,5 +18,4 @@ namespace mca {
// Anchor the vtable here.
void HWEventListener::anchor() {}
-
} // namespace mca
Modified: llvm/trunk/tools/llvm-mca/InstrBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/InstrBuilder.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/InstrBuilder.cpp (original)
+++ llvm/trunk/tools/llvm-mca/InstrBuilder.cpp Sat Mar 24 09:05:36 2018
@@ -23,10 +23,10 @@ namespace mca {
using namespace llvm;
-static void
-initializeUsedResources(InstrDesc &ID, const MCSchedClassDesc &SCDesc,
- const MCSubtargetInfo &STI,
- ArrayRef<uint64_t> ProcResourceMasks) {
+static void initializeUsedResources(InstrDesc &ID,
+ const MCSchedClassDesc &SCDesc,
+ const MCSubtargetInfo &STI,
+ ArrayRef<uint64_t> ProcResourceMasks) {
const MCSchedModel &SM = STI.getSchedModel();
// Populate resources consumed.
Modified: llvm/trunk/tools/llvm-mca/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Instruction.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Instruction.h (original)
+++ llvm/trunk/tools/llvm-mca/Instruction.h Sat Mar 24 09:05:36 2018
@@ -309,7 +309,6 @@ public:
void cycleEvent();
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/LSUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/LSUnit.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/LSUnit.cpp (original)
+++ llvm/trunk/tools/llvm-mca/LSUnit.cpp Sat Mar 24 09:05:36 2018
@@ -12,8 +12,8 @@
///
//===----------------------------------------------------------------------===//
-#include "Instruction.h"
#include "LSUnit.h"
+#include "Instruction.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
@@ -76,7 +76,8 @@ bool LSUnit::isReady(unsigned Index) con
assert((IsALoad || IsAStore) && "Instruction is not in queue!");
unsigned LoadBarrierIndex = LoadBarriers.empty() ? 0 : *LoadBarriers.begin();
- unsigned StoreBarrierIndex = StoreBarriers.empty() ? 0 : *StoreBarriers.begin();
+ unsigned StoreBarrierIndex =
+ StoreBarriers.empty() ? 0 : *StoreBarriers.begin();
if (IsALoad && LoadBarrierIndex) {
if (Index > LoadBarrierIndex)
Modified: llvm/trunk/tools/llvm-mca/LSUnit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/LSUnit.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/LSUnit.h (original)
+++ llvm/trunk/tools/llvm-mca/LSUnit.h Sat Mar 24 09:05:36 2018
@@ -144,7 +144,6 @@ public:
bool isReady(unsigned Index) const;
void onInstructionExecuted(unsigned Index);
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp (original)
+++ llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp Sat Mar 24 09:05:36 2018
@@ -170,5 +170,4 @@ void ResourcePressureView::printResource
Buffer = "";
}
}
-
} // namespace mca
Modified: llvm/trunk/tools/llvm-mca/ResourcePressureView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/ResourcePressureView.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/ResourcePressureView.h (original)
+++ llvm/trunk/tools/llvm-mca/ResourcePressureView.h Sat Mar 24 09:05:36 2018
@@ -106,7 +106,6 @@ public:
printResourcePressurePerInstruction(OS, Executions);
}
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/Scheduler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Scheduler.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Scheduler.h (original)
+++ llvm/trunk/tools/llvm-mca/Scheduler.h Sat Mar 24 09:05:36 2018
@@ -418,9 +418,9 @@ class Scheduler {
std::map<unsigned, Instruction *> ReadyQueue;
std::map<unsigned, Instruction *> IssuedQueue;
- void notifyInstructionIssued(
- unsigned Index,
- llvm::ArrayRef<std::pair<ResourceRef, double>> Used);
+ void
+ notifyInstructionIssued(unsigned Index,
+ llvm::ArrayRef<std::pair<ResourceRef, double>> Used);
void notifyInstructionExecuted(unsigned Index);
void notifyInstructionReady(unsigned Index);
void notifyResourceAvailable(const ResourceRef &RR);
Modified: llvm/trunk/tools/llvm-mca/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/SourceMgr.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/SourceMgr.h (original)
+++ llvm/trunk/tools/llvm-mca/SourceMgr.h Sat Mar 24 09:05:36 2018
@@ -59,7 +59,6 @@ public:
bool isEmpty() const { return size() == 0; }
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/SummaryView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/SummaryView.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/SummaryView.cpp (original)
+++ llvm/trunk/tools/llvm-mca/SummaryView.cpp Sat Mar 24 09:05:36 2018
@@ -38,5 +38,4 @@ void SummaryView::printView(raw_ostream
TempStream.flush();
OS << Buffer;
}
-
} // namespace mca.
Modified: llvm/trunk/tools/llvm-mca/TimelineView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/TimelineView.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/TimelineView.cpp (original)
+++ llvm/trunk/tools/llvm-mca/TimelineView.cpp Sat Mar 24 09:05:36 2018
@@ -233,5 +233,4 @@ void TimelineView::printTimeline(raw_ost
OS << Buffer;
}
}
-
} // namespace mca
Modified: llvm/trunk/tools/llvm-mca/TimelineView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/TimelineView.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/TimelineView.h (original)
+++ llvm/trunk/tools/llvm-mca/TimelineView.h Sat Mar 24 09:05:36 2018
@@ -173,7 +173,6 @@ public:
printAverageWaitTimes(OS);
}
};
-
} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/View.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/View.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/View.cpp (original)
+++ llvm/trunk/tools/llvm-mca/View.cpp Sat Mar 24 09:05:36 2018
@@ -17,5 +17,4 @@
namespace mca {
void View::anchor() {}
-
} // namespace mca
Modified: llvm/trunk/tools/llvm-mca/View.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/View.h?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/View.h (original)
+++ llvm/trunk/tools/llvm-mca/View.h Sat Mar 24 09:05:36 2018
@@ -27,7 +27,6 @@ public:
virtual ~View() = default;
void anchor() override;
};
-
-}
+} // namespace mca
#endif
Modified: llvm/trunk/tools/llvm-mca/llvm-mca.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/llvm-mca.cpp?rev=328428&r1=328427&r2=328428&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/llvm-mca.cpp (original)
+++ llvm/trunk/tools/llvm-mca/llvm-mca.cpp Sat Mar 24 09:05:36 2018
@@ -342,7 +342,8 @@ int main(int argc, char **argv) {
Printer->addView(llvm::make_unique<mca::BackendStatistics>(*STI));
if (PrintResourcePressureView)
- Printer->addView(llvm::make_unique<mca::ResourcePressureView>(*STI, *IP, *S));
+ Printer->addView(
+ llvm::make_unique<mca::ResourcePressureView>(*STI, *IP, *S));
if (PrintTimelineView) {
Printer->addView(llvm::make_unique<mca::TimelineView>(
More information about the llvm-commits
mailing list