Skip to content

Commit 02c63d6

Browse files
committed
[llvm] clang-format changes
1 parent 2007865 commit 02c63d6

File tree

7 files changed

+52
-39
lines changed

7 files changed

+52
-39
lines changed

llvm/include/llvm/CodeGenTypes/LowLevelType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#ifndef LLVM_CODEGEN_LOWLEVELTYPE_H
2727
#define LLVM_CODEGEN_LOWLEVELTYPE_H
2828

29-
#include "llvm/Support/Compiler.h"
3029
#include "llvm/ADT/DenseMapInfo.h"
3130
#include "llvm/CodeGenTypes/MachineValueType.h"
31+
#include "llvm/Support/Compiler.h"
3232
#include "llvm/Support/Debug.h"
3333
#include <cassert>
3434

llvm/include/llvm/CodeGenTypes/MachineValueType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef LLVM_CODEGEN_MACHINEVALUETYPE_H
1717
#define LLVM_CODEGEN_MACHINEVALUETYPE_H
1818

19-
#include "llvm/Support/Compiler.h"
2019
#include "llvm/ADT/Sequence.h"
20+
#include "llvm/Support/Compiler.h"
2121
#include "llvm/Support/ErrorHandling.h"
2222
#include "llvm/Support/MathExtras.h"
2323
#include "llvm/Support/TypeSize.h"

llvm/lib/CodeGen/MachineDominators.cpp

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,28 @@ static cl::opt<bool, true> VerifyMachineDomInfoX(
3737

3838
namespace llvm {
3939
template class LLVM_EXPORT_TEMPLATE DomTreeNodeBase<MachineBasicBlock>;
40-
template class LLVM_EXPORT_TEMPLATE DominatorTreeBase<MachineBasicBlock, false>; // DomTreeBase
40+
template class LLVM_EXPORT_TEMPLATE
41+
DominatorTreeBase<MachineBasicBlock, false>; // DomTreeBase
4142

4243
namespace DomTreeBuilder {
4344
template LLVM_EXPORT_TEMPLATE void Calculate<MBBDomTree>(MBBDomTree &DT);
44-
template LLVM_EXPORT_TEMPLATE void CalculateWithUpdates<MBBDomTree>(MBBDomTree &DT, MBBUpdates U);
45+
template LLVM_EXPORT_TEMPLATE void
46+
CalculateWithUpdates<MBBDomTree>(MBBDomTree &DT, MBBUpdates U);
4547

46-
template LLVM_EXPORT_TEMPLATE void InsertEdge<MBBDomTree>(MBBDomTree &DT, MachineBasicBlock *From,
47-
MachineBasicBlock *To);
48+
template LLVM_EXPORT_TEMPLATE void
49+
InsertEdge<MBBDomTree>(MBBDomTree &DT, MachineBasicBlock *From,
50+
MachineBasicBlock *To);
4851

49-
template LLVM_EXPORT_TEMPLATE void DeleteEdge<MBBDomTree>(MBBDomTree &DT, MachineBasicBlock *From,
50-
MachineBasicBlock *To);
52+
template LLVM_EXPORT_TEMPLATE void
53+
DeleteEdge<MBBDomTree>(MBBDomTree &DT, MachineBasicBlock *From,
54+
MachineBasicBlock *To);
5155

52-
template LLVM_EXPORT_TEMPLATE void ApplyUpdates<MBBDomTree>(MBBDomTree &DT, MBBDomTreeGraphDiff &,
53-
MBBDomTreeGraphDiff *);
56+
template LLVM_EXPORT_TEMPLATE void
57+
ApplyUpdates<MBBDomTree>(MBBDomTree &DT, MBBDomTreeGraphDiff &,
58+
MBBDomTreeGraphDiff *);
5459

55-
template LLVM_EXPORT_TEMPLATE bool Verify<MBBDomTree>(const MBBDomTree &DT,
56-
MBBDomTree::VerificationLevel VL);
60+
template LLVM_EXPORT_TEMPLATE bool
61+
Verify<MBBDomTree>(const MBBDomTree &DT, MBBDomTree::VerificationLevel VL);
5762
} // namespace DomTreeBuilder
5863
}
5964

llvm/lib/CodeGen/MachineLoopInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
using namespace llvm;
2929

3030
// Explicitly instantiate methods in LoopInfoImpl.h for MI-level Loops.
31-
template class LLVM_EXPORT_TEMPLATE llvm::LoopBase<MachineBasicBlock, MachineLoop>;
32-
template class LLVM_EXPORT_TEMPLATE llvm::LoopInfoBase<MachineBasicBlock, MachineLoop>;
31+
template class LLVM_EXPORT_TEMPLATE
32+
llvm::LoopBase<MachineBasicBlock, MachineLoop>;
33+
template class LLVM_EXPORT_TEMPLATE
34+
llvm::LoopInfoBase<MachineBasicBlock, MachineLoop>;
3335

3436
AnalysisKey MachineLoopAnalysis::Key;
3537

llvm/lib/CodeGen/MachinePassManager.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ AnalysisKey FunctionAnalysisManagerMachineFunctionProxy::Key;
2626
namespace llvm {
2727
template class LLVM_EXPORT_TEMPLATE AnalysisManager<MachineFunction>;
2828
template class PassManager<MachineFunction>;
29-
template class LLVM_EXPORT_TEMPLATE InnerAnalysisManagerProxy<MachineFunctionAnalysisManager,
30-
Module>;
31-
template class LLVM_EXPORT_TEMPLATE InnerAnalysisManagerProxy<MachineFunctionAnalysisManager,
32-
Function>;
33-
template class LLVM_EXPORT_TEMPLATE OuterAnalysisManagerProxy<ModuleAnalysisManager,
34-
MachineFunction>;
29+
template class LLVM_EXPORT_TEMPLATE
30+
InnerAnalysisManagerProxy<MachineFunctionAnalysisManager, Module>;
31+
template class LLVM_EXPORT_TEMPLATE
32+
InnerAnalysisManagerProxy<MachineFunctionAnalysisManager, Function>;
33+
template class LLVM_EXPORT_TEMPLATE
34+
OuterAnalysisManagerProxy<ModuleAnalysisManager, MachineFunction>;
3535
} // namespace llvm
3636

3737
bool FunctionAnalysisManagerMachineFunctionProxy::Result::invalidate(

llvm/lib/CodeGen/MachinePostDominators.cpp

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,25 @@
1818
using namespace llvm;
1919

2020
namespace llvm {
21-
template class LLVM_EXPORT_TEMPLATE DominatorTreeBase<MachineBasicBlock, true>; // PostDomTreeBase
21+
template class LLVM_EXPORT_TEMPLATE
22+
DominatorTreeBase<MachineBasicBlock, true>; // PostDomTreeBase
2223

2324
namespace DomTreeBuilder {
2425

25-
template LLVM_EXPORT_TEMPLATE void Calculate<MBBPostDomTree>(MBBPostDomTree &DT);
26-
template LLVM_EXPORT_TEMPLATE void InsertEdge<MBBPostDomTree>(MBBPostDomTree &DT,
27-
MachineBasicBlock *From,
28-
MachineBasicBlock *To);
29-
template LLVM_EXPORT_TEMPLATE void DeleteEdge<MBBPostDomTree>(MBBPostDomTree &DT,
30-
MachineBasicBlock *From,
31-
MachineBasicBlock *To);
32-
template LLVM_EXPORT_TEMPLATE void ApplyUpdates<MBBPostDomTree>(MBBPostDomTree &DT,
33-
MBBPostDomTreeGraphDiff &,
34-
MBBPostDomTreeGraphDiff *);
35-
template LLVM_EXPORT_TEMPLATE bool Verify<MBBPostDomTree>(const MBBPostDomTree &DT,
36-
MBBPostDomTree::VerificationLevel VL);
26+
template LLVM_EXPORT_TEMPLATE void
27+
Calculate<MBBPostDomTree>(MBBPostDomTree &DT);
28+
template LLVM_EXPORT_TEMPLATE void
29+
InsertEdge<MBBPostDomTree>(MBBPostDomTree &DT, MachineBasicBlock *From,
30+
MachineBasicBlock *To);
31+
template LLVM_EXPORT_TEMPLATE void
32+
DeleteEdge<MBBPostDomTree>(MBBPostDomTree &DT, MachineBasicBlock *From,
33+
MachineBasicBlock *To);
34+
template LLVM_EXPORT_TEMPLATE void
35+
ApplyUpdates<MBBPostDomTree>(MBBPostDomTree &DT, MBBPostDomTreeGraphDiff &,
36+
MBBPostDomTreeGraphDiff *);
37+
template LLVM_EXPORT_TEMPLATE bool
38+
Verify<MBBPostDomTree>(const MBBPostDomTree &DT,
39+
MBBPostDomTree::VerificationLevel VL);
3740

3841
} // namespace DomTreeBuilder
3942
extern bool VerifyMachineDomInfo;

llvm/lib/CodeGen/RegAllocScore.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
#include "llvm/Support/CommandLine.h"
2424

2525
using namespace llvm;
26-
LLVM_ABI cl::opt<double> CopyWeight("regalloc-copy-weight", cl::init(0.2), cl::Hidden);
27-
LLVM_ABI cl::opt<double> LoadWeight("regalloc-load-weight", cl::init(4.0), cl::Hidden);
28-
LLVM_ABI cl::opt<double> StoreWeight("regalloc-store-weight", cl::init(1.0), cl::Hidden);
29-
LLVM_ABI cl::opt<double> CheapRematWeight("regalloc-cheap-remat-weight", cl::init(0.2),
30-
cl::Hidden);
26+
LLVM_ABI cl::opt<double> CopyWeight("regalloc-copy-weight", cl::init(0.2),
27+
cl::Hidden);
28+
LLVM_ABI cl::opt<double> LoadWeight("regalloc-load-weight", cl::init(4.0),
29+
cl::Hidden);
30+
LLVM_ABI cl::opt<double> StoreWeight("regalloc-store-weight", cl::init(1.0),
31+
cl::Hidden);
32+
LLVM_ABI cl::opt<double> CheapRematWeight("regalloc-cheap-remat-weight",
33+
cl::init(0.2), cl::Hidden);
3134
LLVM_ABI cl::opt<double> ExpensiveRematWeight("regalloc-expensive-remat-weight",
32-
cl::init(1.0), cl::Hidden);
35+
cl::init(1.0), cl::Hidden);
3336
#define DEBUG_TYPE "regalloc-score"
3437

3538
RegAllocScore &RegAllocScore::operator+=(const RegAllocScore &Other) {

0 commit comments

Comments
 (0)