Skip to content

Commit d5a600b

Browse files
committed
clang-format.
1 parent 30c910a commit d5a600b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,18 +1986,18 @@ void AsmPrinter::emitFunctionBody() {
19861986
emitBasicBlockStart(MBB);
19871987
DenseMap<StringRef, unsigned> MnemonicCounts;
19881988

1989-
SmallVector<int> PrefetchTargets =
1990-
MBB.getPrefetchTargetCallsiteIndexes();
1989+
SmallVector<int> PrefetchTargets = MBB.getPrefetchTargetCallsiteIndexes();
19911990
auto PrefetchTargetIt = PrefetchTargets.begin();
19921991
int CurrentCallsiteIndex = -1;
19931992
// Helper to emit a symbol for the prefetch target and proceed to the next
19941993
// one.
19951994
auto EmitPrefetchTargetSymbolIfNeeded = [&]() {
19961995
if (PrefetchTargetIt != PrefetchTargets.end() &&
1997-
*PrefetchTargetIt == CurrentCallsiteIndex) {
1996+
*PrefetchTargetIt == CurrentCallsiteIndex) {
19981997
MCSymbol *PrefetchTargetSymbol = OutContext.getOrCreateSymbol(
19991998
Twine("__llvm_prefetch_target_") + MF->getName() + Twine("_") +
2000-
utostr(MBB.getBBID()->BaseID) + Twine("_") + utostr(static_cast<unsigned>(*PrefetchTargetIt + 1)));
1999+
utostr(MBB.getBBID()->BaseID) + Twine("_") +
2000+
utostr(static_cast<unsigned>(*PrefetchTargetIt + 1)));
20012001
// If the function is weak-linkage it may be replaced by a strong
20022002
// version, in which case the prefetch targets should also be replaced.
20032003
OutStreamer->emitSymbolAttribute(

llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ BasicBlockSectionsProfileReader::getPrefetchTargetsForFunction(
166166
// This is the beginning of the basic block for `i = 0` and immediately after
167167
// the `i`-th call for every `i > 0`.
168168
//
169-
// Example: A basic block in function "foo" with BBID 10 and two call instructions (call_A, call_B).
170-
// This block is conceptually split into subblocks, with the prefetch target
171-
// symbol emitted at the beginning of each subblock.
169+
// Example: A basic block in function "foo" with BBID 10 and two call
170+
// instructions (call_A, call_B). This block is conceptually split into
171+
// subblocks, with the prefetch target symbol emitted at the beginning of each
172+
// subblock.
172173
//
173174
// +----------------------------------+
174175
// | __llvm_prefetch_target_foo_10_0: | <- Subblock 0 (before call_A)
@@ -352,8 +353,8 @@ Error BasicBlockSectionsProfileReader::ReadV1Profile() {
352353
SmallVector<StringRef, 2> PrefetchTargetStr;
353354
Values[0].split(PrefetchTargetStr, ',');
354355
if (PrefetchTargetStr.size() != 2)
355-
return createProfileParseError(
356-
Twine("Callsite target expected: ") + Values[0]);
356+
return createProfileParseError(Twine("Callsite target expected: ") +
357+
Values[0]);
357358
auto TargetBBID = parseUniqueBBID(PrefetchTargetStr[0]);
358359
if (!TargetBBID)
359360
return TargetBBID.takeError();

0 commit comments

Comments
 (0)