mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
[llvm-mca] run clang-format on a bunch of files. NFC
llvm-svn: 330811
This commit is contained in:
parent
dbed0f6c1f
commit
f2ed62e68e
@ -67,7 +67,8 @@ void RegisterFile::addRegisterFile(ArrayRef<MCRegisterCostEntry> Entries,
|
|||||||
// An empty set of register classes means: this register file contains all
|
// An empty set of register classes means: this register file contains all
|
||||||
// the physical registers specified by the target.
|
// the physical registers specified by the target.
|
||||||
if (Entries.empty()) {
|
if (Entries.empty()) {
|
||||||
for (std::pair<WriteState *, IndexPlusCostPairTy> &Mapping : RegisterMappings)
|
for (std::pair<WriteState *, IndexPlusCostPairTy> &Mapping :
|
||||||
|
RegisterMappings)
|
||||||
Mapping.second = std::make_pair(RegisterFileIndex, 1U);
|
Mapping.second = std::make_pair(RegisterFileIndex, 1U);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,8 @@ class DispatchStatistics : public View {
|
|||||||
void printDispatchStalls(llvm::raw_ostream &OS) const;
|
void printDispatchStalls(llvm::raw_ostream &OS) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DispatchStatistics() : NumDispatched(0), NumCycles(0),
|
DispatchStatistics()
|
||||||
|
: NumDispatched(0), NumCycles(0),
|
||||||
HWStalls(HWStallEvent::LastGenericEvent) {}
|
HWStalls(HWStallEvent::LastGenericEvent) {}
|
||||||
|
|
||||||
void onInstructionEvent(const HWInstructionEvent &Event) override;
|
void onInstructionEvent(const HWInstructionEvent &Event) override;
|
||||||
|
@ -466,7 +466,6 @@ public:
|
|||||||
bool canBeDispatched(unsigned Idx, const InstrDesc &Desc) const;
|
bool canBeDispatched(unsigned Idx, const InstrDesc &Desc) const;
|
||||||
void scheduleInstruction(unsigned Idx, Instruction &MCIS);
|
void scheduleInstruction(unsigned Idx, Instruction &MCIS);
|
||||||
|
|
||||||
|
|
||||||
/// Issue an instruction.
|
/// Issue an instruction.
|
||||||
void issueInstruction(unsigned Index, Instruction &IS);
|
void issueInstruction(unsigned Index, Instruction &IS);
|
||||||
|
|
||||||
|
@ -38,10 +38,10 @@
|
|||||||
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
|
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
|
||||||
#include "llvm/MC/MCRegisterInfo.h"
|
#include "llvm/MC/MCRegisterInfo.h"
|
||||||
#include "llvm/MC/MCStreamer.h"
|
#include "llvm/MC/MCStreamer.h"
|
||||||
#include "llvm/Support/Host.h"
|
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
#include "llvm/Support/ErrorOr.h"
|
#include "llvm/Support/ErrorOr.h"
|
||||||
#include "llvm/Support/FileSystem.h"
|
#include "llvm/Support/FileSystem.h"
|
||||||
|
#include "llvm/Support/Host.h"
|
||||||
#include "llvm/Support/InitLLVM.h"
|
#include "llvm/Support/InitLLVM.h"
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
#include "llvm/Support/MemoryBuffer.h"
|
||||||
#include "llvm/Support/SourceMgr.h"
|
#include "llvm/Support/SourceMgr.h"
|
||||||
@ -97,20 +97,18 @@ static cl::opt<bool>
|
|||||||
cl::desc("Print register file statistics"),
|
cl::desc("Print register file statistics"),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool> PrintDispatchStats("dispatch-stats",
|
||||||
PrintDispatchStats("dispatch-stats",
|
cl::desc("Print dispatch statistics"),
|
||||||
cl::desc("Print dispatch statistics"),
|
cl::init(false));
|
||||||
cl::init(false));
|
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool> PrintSchedulerStats("scheduler-stats",
|
||||||
PrintSchedulerStats("scheduler-stats",
|
cl::desc("Print scheduler statistics"),
|
||||||
cl::desc("Print scheduler statistics"),
|
cl::init(false));
|
||||||
cl::init(false));
|
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
PrintRetireStats("retire-stats",
|
PrintRetireStats("retire-stats",
|
||||||
cl::desc("Print retire control unit statistics"),
|
cl::desc("Print retire control unit statistics"),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
PrintResourcePressureView("resource-pressure",
|
PrintResourcePressureView("resource-pressure",
|
||||||
|
Loading…
Reference in New Issue
Block a user