Skip to content

Commit 9f28621

Browse files
authored
[Attributor][NFC] Clang format (#129163)
1 parent e0c6909 commit 9f28621

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

llvm/include/llvm/Transforms/IPO/Attributor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,8 @@ struct InformationCache {
12081208
TargetTriple(M.getTargetTriple()) {
12091209
if (UseExplorer)
12101210
Explorer = new (Allocator) MustBeExecutedContextExplorer(
1211-
/* ExploreInterBlock */ true, /* ExploreCFGForward */ true,
1211+
/* ExploreInterBlock */
1212+
true, /* ExploreCFGForward */ true,
12121213
/* ExploreCFGBackward */ true,
12131214
/* LIGetter */
12141215
[&](const Function &F) { return AG.getAnalysis<LoopAnalysis>(F); },

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,8 @@ bool Attributor::getAssumedSimplifiedValues(
14781478
// AAPotentialValues.
14791479
const auto *PotentialValuesAA =
14801480
getOrCreateAAFor<AAPotentialValues>(IRP, AA, DepClassTy::OPTIONAL);
1481-
if (PotentialValuesAA && PotentialValuesAA->getAssumedSimplifiedValues(*this, Values, S)) {
1481+
if (PotentialValuesAA &&
1482+
PotentialValuesAA->getAssumedSimplifiedValues(*this, Values, S)) {
14821483
UsedAssumedInformation |= !PotentialValuesAA->isAtFixpoint();
14831484
} else if (IRP.getPositionKind() != IRPosition::IRP_RETURNED) {
14841485
Values.push_back({IRP.getAssociatedValue(), IRP.getCtxI()});

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ STATISTIC(NumIndirectCallsPromoted, "Number of indirect calls promoted");
129129
STATS_DECL_(BUILD_STAT_NAME(NAME, TYPE), MSG);
130130
#define STATS_TRACK(NAME, TYPE) ++(BUILD_STAT_NAME(NAME, TYPE));
131131
#define STATS_DECLTRACK(NAME, TYPE, MSG) \
132-
{ \
133-
STATS_DECL(NAME, TYPE, MSG) \
134-
STATS_TRACK(NAME, TYPE) \
135-
}
132+
{STATS_DECL(NAME, TYPE, MSG) STATS_TRACK(NAME, TYPE)}
136133
#define STATS_DECLTRACK_ARG_ATTR(NAME) \
137134
STATS_DECLTRACK(NAME, Arguments, BUILD_STAT_MSG_IR_ATTR(arguments, NAME))
138135
#define STATS_DECLTRACK_CSARG_ATTR(NAME) \
@@ -2420,7 +2417,7 @@ struct AANoFreeCallSiteArgument final : AANoFreeFloating {
24202417
}
24212418

24222419
/// See AbstractAttribute::trackStatistics()
2423-
void trackStatistics() const override{STATS_DECLTRACK_CSARG_ATTR(nofree)};
2420+
void trackStatistics() const override { STATS_DECLTRACK_CSARG_ATTR(nofree) };
24242421
};
24252422

24262423
/// NoFree attribute for function return value.
@@ -6078,7 +6075,9 @@ struct AANoCaptureCallSiteArgument final : AANoCaptureImpl {
60786075
}
60796076

60806077
/// See AbstractAttribute::trackStatistics()
6081-
void trackStatistics() const override{STATS_DECLTRACK_CSARG_ATTR(nocapture)};
6078+
void trackStatistics() const override {
6079+
STATS_DECLTRACK_CSARG_ATTR(nocapture)
6080+
};
60826081
};
60836082

60846083
/// NoCapture attribute for floating values.

0 commit comments

Comments
 (0)