[llvm] r330811 - [llvm-mca] run clang-format on a bunch of files. NFC
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 03:27:30 PDT 2018
Author: adibiagio
Date: Wed Apr 25 03:27:30 2018
New Revision: 330811
URL: http://llvm.org/viewvc/llvm-project?rev=330811&view=rev
Log:
[llvm-mca] run clang-format on a bunch of files. NFC
Modified:
llvm/trunk/tools/llvm-mca/Dispatch.cpp
llvm/trunk/tools/llvm-mca/DispatchStatistics.h
llvm/trunk/tools/llvm-mca/Scheduler.h
llvm/trunk/tools/llvm-mca/llvm-mca.cpp
Modified: llvm/trunk/tools/llvm-mca/Dispatch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Dispatch.cpp?rev=330811&r1=330810&r2=330811&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Dispatch.cpp (original)
+++ llvm/trunk/tools/llvm-mca/Dispatch.cpp Wed Apr 25 03:27:30 2018
@@ -67,7 +67,8 @@ void RegisterFile::addRegisterFile(Array
// An empty set of register classes means: this register file contains all
// the physical registers specified by the target.
if (Entries.empty()) {
- for (std::pair<WriteState *, IndexPlusCostPairTy> &Mapping : RegisterMappings)
+ for (std::pair<WriteState *, IndexPlusCostPairTy> &Mapping :
+ RegisterMappings)
Mapping.second = std::make_pair(RegisterFileIndex, 1U);
return;
}
Modified: llvm/trunk/tools/llvm-mca/DispatchStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/DispatchStatistics.h?rev=330811&r1=330810&r2=330811&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/DispatchStatistics.h (original)
+++ llvm/trunk/tools/llvm-mca/DispatchStatistics.h Wed Apr 25 03:27:30 2018
@@ -62,7 +62,8 @@ class DispatchStatistics : public View {
void printDispatchStalls(llvm::raw_ostream &OS) const;
public:
- DispatchStatistics() : NumDispatched(0), NumCycles(0),
+ DispatchStatistics()
+ : NumDispatched(0), NumCycles(0),
HWStalls(HWStallEvent::LastGenericEvent) {}
void onInstructionEvent(const HWInstructionEvent &Event) override;
Modified: llvm/trunk/tools/llvm-mca/Scheduler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Scheduler.h?rev=330811&r1=330810&r2=330811&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Scheduler.h (original)
+++ llvm/trunk/tools/llvm-mca/Scheduler.h Wed Apr 25 03:27:30 2018
@@ -466,7 +466,6 @@ public:
bool canBeDispatched(unsigned Idx, const InstrDesc &Desc) const;
void scheduleInstruction(unsigned Idx, Instruction &MCIS);
-
/// Issue an instruction.
void issueInstruction(unsigned Index, Instruction &IS);
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=330811&r1=330810&r2=330811&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/llvm-mca.cpp (original)
+++ llvm/trunk/tools/llvm-mca/llvm-mca.cpp Wed Apr 25 03:27:30 2018
@@ -38,10 +38,10 @@
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Host.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
@@ -97,20 +97,18 @@ static cl::opt<bool>
cl::desc("Print register file statistics"),
cl::init(false));
-static cl::opt<bool>
- PrintDispatchStats("dispatch-stats",
- cl::desc("Print dispatch statistics"),
- cl::init(false));
-
-static cl::opt<bool>
- PrintSchedulerStats("scheduler-stats",
- cl::desc("Print scheduler statistics"),
- cl::init(false));
+static cl::opt<bool> PrintDispatchStats("dispatch-stats",
+ cl::desc("Print dispatch statistics"),
+ cl::init(false));
+
+static cl::opt<bool> PrintSchedulerStats("scheduler-stats",
+ cl::desc("Print scheduler statistics"),
+ cl::init(false));
static cl::opt<bool>
PrintRetireStats("retire-stats",
- cl::desc("Print retire control unit statistics"),
- cl::init(false));
+ cl::desc("Print retire control unit statistics"),
+ cl::init(false));
static cl::opt<bool>
PrintResourcePressureView("resource-pressure",
More information about the llvm-commits
mailing list