Skip to content

Commit 96551c8

Browse files
committed
clang-format
1 parent a066d96 commit 96551c8

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

polly/lib/Analysis/ScopDetectionDiagnostic.cpp

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ bool ReportNonAffBranch::classof(const RejectReason *RR) {
373373

374374
std::string ReportNoBasePtr::getRemarkName() const { return "NoBasePtr"; }
375375

376-
const BasicBlock *ReportNoBasePtr::getRemarkBB() const { return Inst->getParent(); }
376+
const BasicBlock *ReportNoBasePtr::getRemarkBB() const {
377+
return Inst->getParent();
378+
}
377379

378380
std::string ReportNoBasePtr::getMessage() const { return "No base pointer"; }
379381

@@ -482,7 +484,9 @@ ReportLoopBound::ReportLoopBound(Loop *L, const SCEV *LoopCount)
482484

483485
std::string ReportLoopBound::getRemarkName() const { return "LoopBound"; }
484486

485-
const BasicBlock *ReportLoopBound::getRemarkBB() const { return L->getHeader(); }
487+
const BasicBlock *ReportLoopBound::getRemarkBB() const {
488+
return L->getHeader();
489+
}
486490

487491
std::string ReportLoopBound::getMessage() const {
488492
return "Non affine loop bound '" + *LoopCount +
@@ -506,7 +510,9 @@ std::string ReportLoopHasNoExit::getRemarkName() const {
506510
return "LoopHasNoExit";
507511
}
508512

509-
const BasicBlock *ReportLoopHasNoExit::getRemarkBB() const { return L->getHeader(); }
513+
const BasicBlock *ReportLoopHasNoExit::getRemarkBB() const {
514+
return L->getHeader();
515+
}
510516

511517
std::string ReportLoopHasNoExit::getMessage() const {
512518
return "Loop " + L->getHeader()->getName() + " has no exit.";
@@ -582,7 +588,9 @@ ReportFuncCall::ReportFuncCall(Instruction *Inst)
582588

583589
std::string ReportFuncCall::getRemarkName() const { return "FuncCall"; }
584590

585-
const BasicBlock *ReportFuncCall::getRemarkBB() const { return Inst->getParent(); }
591+
const BasicBlock *ReportFuncCall::getRemarkBB() const {
592+
return Inst->getParent();
593+
}
586594

587595
std::string ReportFuncCall::getMessage() const {
588596
return "Call instruction: " + *Inst;
@@ -735,7 +743,9 @@ ReportAlloca::ReportAlloca(Instruction *Inst)
735743

736744
std::string ReportAlloca::getRemarkName() const { return "Alloca"; }
737745

738-
const BasicBlock *ReportAlloca::getRemarkBB() const { return Inst->getParent(); }
746+
const BasicBlock *ReportAlloca::getRemarkBB() const {
747+
return Inst->getParent();
748+
}
739749

740750
std::string ReportAlloca::getMessage() const {
741751
return "Alloca instruction: " + *Inst;
@@ -807,7 +817,9 @@ ReportUnprofitable::ReportUnprofitable(Region *R)
807817

808818
std::string ReportUnprofitable::getRemarkName() const { return "Unprofitable"; }
809819

810-
const BasicBlock *ReportUnprofitable::getRemarkBB() const { return R->getEntry(); }
820+
const BasicBlock *ReportUnprofitable::getRemarkBB() const {
821+
return R->getEntry();
822+
}
811823

812824
std::string ReportUnprofitable::getMessage() const {
813825
return "Region can not profitably be optimized!";

0 commit comments

Comments
 (0)