Skip to content

Commit 547b537

Browse files
committed
Format our changes.
1 parent 3d30213 commit 547b537

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ using namespace llvm;
130130

131131
static cl::opt<bool>
132132
EmbedBitcodeFinal("embed-bitcode-final", cl::NotHidden,
133-
cl::desc("Embed final IR as bitcode after all optimisations and transformations have run."));
133+
cl::desc("Embed final IR as bitcode after all "
134+
"optimisations and transformations have run."));
134135

135136
const char DWARFGroupName[] = "dwarf";
136137
const char DWARFGroupDescription[] = "DWARF Emission";
@@ -1391,8 +1392,7 @@ void AsmPrinter::emitBBAddrMapSection(const MachineFunction &MF) {
13911392
const Instruction *Term = CorrBB->getTerminator();
13921393
assert(Term != nullptr);
13931394
if ((isa<BranchInst>(Term)) &&
1394-
(!(dyn_cast<const BranchInst>(Term))->isConditional()))
1395-
{
1395+
(!(dyn_cast<const BranchInst>(Term))->isConditional())) {
13961396
CorrBB = CorrBB->getUniqueSuccessor();
13971397
assert(CorrBB != nullptr);
13981398
if (MergedBBs.count(CorrBB) == 0) {

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,8 @@ bool FastISel::selectInstruction(const Instruction *I) {
15621562
/// (fall-through) successor, and update the CFG.
15631563
void FastISel::fastEmitBranch(MachineBasicBlock *MSucc,
15641564
const DebugLoc &DbgLoc) {
1565-
if ((!YkNoFallThrough) && (FuncInfo.MBB->getBasicBlock()->sizeWithoutDebug() > 1) &&
1565+
if ((!YkNoFallThrough) &&
1566+
(FuncInfo.MBB->getBasicBlock()->sizeWithoutDebug() > 1) &&
15661567
FuncInfo.MBB->isLayoutSuccessor(MSucc)) {
15671568
// For more accurate line information if this is the only non-debug
15681569
// instruction in the block then emit it, otherwise we have the

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,8 +2370,8 @@ void SelectionDAGBuilder::visitBr(const BranchInst &I) {
23702370

23712371
// If this is not a fall-through branch or optimizations are switched off,
23722372
// emit the branch.
2373-
if ((YkNoFallThrough) || (Succ0MBB != NextBlock(BrMBB) ||
2374-
TM.getOptLevel() == CodeGenOpt::None))
2373+
if ((YkNoFallThrough) ||
2374+
(Succ0MBB != NextBlock(BrMBB) || TM.getOptLevel() == CodeGenOpt::None))
23752375
DAG.setRoot(DAG.getNode(ISD::BR, getCurSDLoc(),
23762376
MVT::Other, getControlRoot(),
23772377
DAG.getBasicBlock(Succ0MBB)));

llvm/lib/CodeGen/TargetPassConfig.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,13 @@ static cl::opt<bool> DisableSelectOptimize(
266266
"disable-select-optimize", cl::init(true), cl::Hidden,
267267
cl::desc("Disable the select-optimization pass from running"));
268268

269-
static cl::opt<bool> YkBlockDisambiguate(
270-
"yk-block-disambiguate", cl::init(false), cl::NotHidden,
271-
cl::desc("Disambiguate blocks for yk"));
272-
273269
static cl::opt<bool>
274-
YkPatchCtrlPoint("yk-patch-control-point",
275-
cl::init(false), cl::NotHidden,
276-
cl::desc("Patch yk_mt_control_point()"));
270+
YkBlockDisambiguate("yk-block-disambiguate", cl::init(false), cl::NotHidden,
271+
cl::desc("Disambiguate blocks for yk"));
272+
273+
static cl::opt<bool> YkPatchCtrlPoint("yk-patch-control-point", cl::init(false),
274+
cl::NotHidden,
275+
cl::desc("Patch yk_mt_control_point()"));
277276

278277
/// Allow standard passes to be disabled by command line options. This supports
279278
/// simple binary flags that either suppress the pass or do nothing.

llvm/lib/Target/X86/X86FastISel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,10 +2591,10 @@ bool X86FastISel::TryEmitSmallMemcpy(X86AddressMode DestAM,
25912591
// This is only necessary for intrinsics which may emit machine code.
25922592
void annotateIntrinsic(const IntrinsicInst *II, bool Inlined) {
25932593
IntrinsicInst *CI = const_cast<IntrinsicInst *>(II);
2594-
LLVMContext& C = CI->getContext();
2594+
LLVMContext &C = CI->getContext();
25952595
ConstantInt *CInt;
2596-
CInt = ConstantInt::get(C, APInt(1, Inlined ? 1: 0));
2597-
MDNode* N = MDNode::get(C, ConstantAsMetadata::get(CInt));
2596+
CInt = ConstantInt::get(C, APInt(1, Inlined ? 1 : 0));
2597+
MDNode *N = MDNode::get(C, ConstantAsMetadata::get(CInt));
25982598
CI->setMetadata("yk.intrinsic.inlined", N);
25992599
}
26002600

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ static cl::opt<bool> ExperimentalUnorderedISEL(
9393
"stores respectively."),
9494
cl::Hidden);
9595

96-
static cl::opt<bool> YkDisableTailCallCodegen(
97-
"yk-disable-tail-call-codegen", cl::init(false),
98-
cl::desc("Do not optimise tail calls"),
99-
cl::Hidden);
96+
static cl::opt<bool>
97+
YkDisableTailCallCodegen("yk-disable-tail-call-codegen", cl::init(false),
98+
cl::desc("Do not optimise tail calls"),
99+
cl::Hidden);
100100

101101
/// Call this when the user attempts to do something unsupported, like
102102
/// returning a double without SSE2 enabled on x86_64. This is not fatal, unlike

0 commit comments

Comments
 (0)