[llvm] r327125 - [llvm-mca] Run clang-format on the source code. NFC
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 9 04:50:43 PST 2018
Author: adibiagio
Date: Fri Mar 9 04:50:42 2018
New Revision: 327125
URL: http://llvm.org/viewvc/llvm-project?rev=327125&view=rev
Log:
[llvm-mca] Run clang-format on the source code. NFC
Modified:
llvm/trunk/tools/llvm-mca/BackendStatistics.cpp
llvm/trunk/tools/llvm-mca/BackendStatistics.h
llvm/trunk/tools/llvm-mca/ResourcePressureView.h
llvm/trunk/tools/llvm-mca/TimelineView.cpp
llvm/trunk/tools/llvm-mca/TimelineView.h
llvm/trunk/tools/llvm-mca/llvm-mca.cpp
Modified: llvm/trunk/tools/llvm-mca/BackendStatistics.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendStatistics.cpp?rev=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendStatistics.cpp (original)
+++ llvm/trunk/tools/llvm-mca/BackendStatistics.cpp Fri Mar 9 04:50:42 2018
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
/// \file
-///
+///
/// Functionalities used by the BackendPrinter to print out histograms
/// related to number of {dispatch/issue/retire} per number of cycles.
///
@@ -42,7 +42,8 @@ void BackendStatistics::printRetireUnitS
OS << Buffer;
}
-void BackendStatistics::printDispatchUnitStatistics(llvm::raw_ostream &OS) const {
+void BackendStatistics::printDispatchUnitStatistics(
+ llvm::raw_ostream &OS) const {
std::string Buffer;
raw_string_ostream TempStream(Buffer);
TempStream << "\n\nDispatch Logic - "
@@ -76,8 +77,8 @@ void BackendStatistics::printSchedulerSt
}
void BackendStatistics::printRATStatistics(raw_ostream &OS,
- unsigned TotalMappings,
- unsigned MaxUsedMappings) const {
+ unsigned TotalMappings,
+ unsigned MaxUsedMappings) const {
std::string Buffer;
raw_string_ostream TempStream(Buffer);
TempStream << "\n\nRegister Alias Table:";
@@ -88,11 +89,12 @@ void BackendStatistics::printRATStatisti
OS << Buffer;
}
-void BackendStatistics::printDispatchStalls(raw_ostream &OS,
- unsigned RATStalls, unsigned RCUStalls,
- unsigned SCHEDQStalls,
- unsigned LDQStalls, unsigned STQStalls,
- unsigned DGStalls) const {
+void BackendStatistics::printDispatchStalls(raw_ostream &OS, unsigned RATStalls,
+ unsigned RCUStalls,
+ unsigned SCHEDQStalls,
+ unsigned LDQStalls,
+ unsigned STQStalls,
+ unsigned DGStalls) const {
std::string Buffer;
raw_string_ostream TempStream(Buffer);
TempStream << "\n\nDynamic Dispatch Stall Cycles:\n";
@@ -113,8 +115,9 @@ void BackendStatistics::printDispatchSta
OS << Buffer;
}
-void BackendStatistics::printSchedulerUsage(raw_ostream &OS,
- const MCSchedModel &SM, const ArrayRef<BufferUsageEntry> &Usage) const {
+void BackendStatistics::printSchedulerUsage(
+ raw_ostream &OS, const MCSchedModel &SM,
+ const ArrayRef<BufferUsageEntry> &Usage) const {
std::string Buffer;
raw_string_ostream TempStream(Buffer);
TempStream << "\n\nScheduler's queue usage:\n";
@@ -135,4 +138,3 @@ void BackendStatistics::printSchedulerUs
}
} // namespace mca
-
Modified: llvm/trunk/tools/llvm-mca/BackendStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendStatistics.h?rev=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendStatistics.h (original)
+++ llvm/trunk/tools/llvm-mca/BackendStatistics.h Fri Mar 9 04:50:42 2018
@@ -124,10 +124,11 @@ public:
void onCycleEnd(unsigned Cycle) override { updateHistograms(); }
void printView(llvm::raw_ostream &OS) const override {
- printDispatchStalls(OS, B.getNumRATStalls(), B.getNumRCUStalls(), B.getNumSQStalls(),
- B.getNumLDQStalls(), B.getNumSTQStalls(), B.getNumDispatchGroupStalls());
+ printDispatchStalls(OS, B.getNumRATStalls(), B.getNumRCUStalls(),
+ B.getNumSQStalls(), B.getNumLDQStalls(),
+ B.getNumSTQStalls(), B.getNumDispatchGroupStalls());
printRATStatistics(OS, B.getTotalRegisterMappingsCreated(),
- B.getMaxUsedRegisterMappings());
+ B.getMaxUsedRegisterMappings());
printDispatchUnitStatistics(OS);
printSchedulerStatistics(OS);
printRetireUnitStatistics(OS);
Modified: llvm/trunk/tools/llvm-mca/ResourcePressureView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/ResourcePressureView.h?rev=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/ResourcePressureView.h (original)
+++ llvm/trunk/tools/llvm-mca/ResourcePressureView.h Fri Mar 9 04:50:42 2018
@@ -58,8 +58,8 @@
#ifndef LLVM_TOOLS_LLVM_MCA_RESOURCEPRESSUREVIEW_H
#define LLVM_TOOLS_LLVM_MCA_RESOURCEPRESSUREVIEW_H
-#include "View.h"
#include "SourceMgr.h"
+#include "View.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include <map>
Modified: llvm/trunk/tools/llvm-mca/TimelineView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/TimelineView.cpp?rev=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/TimelineView.cpp (original)
+++ llvm/trunk/tools/llvm-mca/TimelineView.cpp Fri Mar 9 04:50:42 2018
@@ -175,14 +175,16 @@ void TimelineView::printTimelineViewEntr
if (Entry.CycleDispatched != Entry.CycleExecuted) {
// Zero latency instructions have the same value for CycleDispatched,
// CycleIssued and CycleExecuted.
- for (unsigned I = Entry.CycleDispatched + 1, E = Entry.CycleIssued; I < E; ++I)
+ for (unsigned I = Entry.CycleDispatched + 1, E = Entry.CycleIssued; I < E;
+ ++I)
OS << '=';
if (Entry.CycleIssued == Entry.CycleExecuted)
OS << 'E';
else {
if (Entry.CycleDispatched != Entry.CycleIssued)
OS << 'e';
- for (unsigned I = Entry.CycleIssued + 1, E = Entry.CycleExecuted; I < E; ++I)
+ for (unsigned I = Entry.CycleIssued + 1, E = Entry.CycleExecuted; I < E;
+ ++I)
OS << 'e';
OS << 'E';
}
Modified: llvm/trunk/tools/llvm-mca/TimelineView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/TimelineView.h?rev=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/TimelineView.h (original)
+++ llvm/trunk/tools/llvm-mca/TimelineView.h Fri Mar 9 04:50:42 2018
@@ -100,8 +100,8 @@
#ifndef LLVM_TOOLS_LLVM_MCA_TIMELINEVIEW_H
#define LLVM_TOOLS_LLVM_MCA_TIMELINEVIEW_H
-#include "View.h"
#include "SourceMgr.h"
+#include "View.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/raw_ostream.h"
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=327125&r1=327124&r2=327125&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/llvm-mca.cpp (original)
+++ llvm/trunk/tools/llvm-mca/llvm-mca.cpp Fri Mar 9 04:50:42 2018
@@ -21,6 +21,10 @@
//
//===----------------------------------------------------------------------===//
+#include "BackendPrinter.h"
+#include "BackendStatistics.h"
+#include "ResourcePressureView.h"
+#include "TimelineView.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCObjectFileInfo.h"
@@ -37,11 +41,6 @@
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/ToolOutputFile.h"
-#include "BackendPrinter.h"
-#include "BackendStatistics.h"
-#include "ResourcePressureView.h"
-#include "TimelineView.h"
-
using namespace llvm;
More information about the llvm-commits
mailing list