Skip to content

Commit 5e60356

Browse files
committed
don't attempt to read buildid-list for pre-aggregated profile
Created using spr 1.3.4
2 parents f6b275f + a45a9e5 commit 5e60356

File tree

1,774 files changed

+44338
-33534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,774 files changed

+44338
-33534
lines changed

.ci/metrics/metrics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
# Lists the Github workflows we want to track. Maps the Github job name to
2222
# the metric name prefix in grafana.
2323
# This metric name is also used as a key in the job->name map.
24-
GITHUB_WORKFLOW_TO_TRACK = {"LLVM Premerge Checks": "github_llvm_premerge_checks"}
24+
GITHUB_WORKFLOW_TO_TRACK = {"CI Checks": "github_llvm_premerge_checks"}
2525

2626
# Lists the Github jobs to track for a given workflow. The key is the stable
2727
# name (metric name) of the workflow (see GITHUB_WORKFLOW_TO_TRACK).
2828
# Each value is a map to link the github job name to the corresponding metric
2929
# name.
3030
GITHUB_JOB_TO_TRACK = {
3131
"github_llvm_premerge_checks": {
32-
"Linux Premerge Checks (Test Only - Please Ignore Results)": "premerge_linux",
33-
"Windows Premerge Checks (Test Only - Please Ignore Results)": "premerge_windows",
32+
"Build and Test Linux (Test Only - Please Ignore Results)": "premerge_linux",
33+
"Build and Test Windows (Test Only - Please Ignore Results)": "premerge_windows",
3434
}
3535
}
3636

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
stage1:
3838
if: github.repository_owner == 'llvm'
3939
runs-on: libcxx-self-hosted-linux
40-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
40+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
4141
continue-on-error: false
4242
strategy:
4343
fail-fast: false
@@ -75,7 +75,7 @@ jobs:
7575
stage2:
7676
if: github.repository_owner == 'llvm'
7777
runs-on: libcxx-self-hosted-linux
78-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
78+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
7979
needs: [ stage1 ]
8080
continue-on-error: false
8181
strategy:
@@ -163,7 +163,7 @@ jobs:
163163
- config: 'generic-msan'
164164
machine: libcxx-self-hosted-linux
165165
runs-on: ${{ matrix.machine }}
166-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
166+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
167167
steps:
168168
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
169169
- name: ${{ matrix.config }}

.github/workflows/premerge.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: LLVM Premerge Checks
1+
name: CI Checks
22

33
permissions:
44
contents: read
@@ -25,7 +25,7 @@ concurrency:
2525

2626
jobs:
2727
premerge-checks-linux:
28-
name: Linux Premerge Checks (Test Only - Please Ignore Results)
28+
name: Build and Test Linux (Test Only - Please Ignore Results)
2929
if: >-
3030
github.repository_owner == 'llvm' &&
3131
(github.event_name != 'pull_request' || github.event.action != 'closed')
@@ -74,7 +74,7 @@ jobs:
7474
include-hidden-files: 'true'
7575

7676
premerge-checks-windows:
77-
name: Windows Premerge Checks (Test Only - Please Ignore Results)
77+
name: Build and Test Windows (Test Only - Please Ignore Results)
7878
if: >-
7979
github.repository_owner == 'llvm' &&
8080
(github.event_name != 'pull_request' || github.event.action != 'closed')

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,6 @@ int DataAggregator::prepareToParse(StringRef Name, PerfProcessInfo &Process,
450450
Error DataAggregator::preprocessProfile(BinaryContext &BC) {
451451
this->BC = &BC;
452452

453-
if (std::optional<StringRef> FileBuildID = BC.getFileBuildID()) {
454-
outs() << "BOLT-INFO: binary build-id is: " << *FileBuildID << "\n";
455-
processFileBuildID(*FileBuildID);
456-
} else {
457-
errs() << "BOLT-WARNING: build-id will not be checked because we could "
458-
"not read one from input binary\n";
459-
}
460-
461453
auto ErrorCallback = [](int ReturnCode, StringRef ErrBuf) {
462454
errs() << "PERF-ERROR: return code " << ReturnCode << "\n" << ErrBuf;
463455
exit(1);
@@ -476,6 +468,14 @@ Error DataAggregator::preprocessProfile(BinaryContext &BC) {
476468
goto heatmap;
477469
}
478470

471+
if (std::optional<StringRef> FileBuildID = BC.getFileBuildID()) {
472+
outs() << "BOLT-INFO: binary build-id is: " << *FileBuildID << "\n";
473+
processFileBuildID(*FileBuildID);
474+
} else {
475+
errs() << "BOLT-WARNING: build-id will not be checked because we could "
476+
"not read one from input binary\n";
477+
}
478+
479479
if (BC.IsLinuxKernel) {
480480
// Current MMap parsing logic does not work with linux kernel.
481481
// MMap entries for linux kernel uses PERF_RECORD_MMAP

bolt/lib/Profile/Heatmap.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,10 @@ void Heatmap::printSectionHotness(raw_ostream &OS) const {
304304

305305
uint64_t UnmappedHotness = 0;
306306
auto RecordUnmappedBucket = [&](uint64_t Address, uint64_t Frequency) {
307-
if (opts::Verbosity >= 1)
308-
errs() << "Couldn't map the address bucket ["
309-
<< formatv("{0:x}, {1:x}", Address, Address + BucketSize)
310-
<< "] containing " << Frequency
311-
<< " samples to a text section in the binary.\n";
307+
errs() << "Couldn't map the address bucket [0x" << Twine::utohexstr(Address)
308+
<< ", 0x" << Twine::utohexstr(Address + BucketSize)
309+
<< "] containing " << Frequency
310+
<< " samples to a text section in the binary.";
312311
UnmappedHotness += Frequency;
313312
};
314313

clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static SourceLocation getStartOfNextLine(SourceLocation Loc,
113113
const SourceManager &SM,
114114
const LangOptions &LangOpts) {
115115
std::unique_ptr<Lexer> Lex = getLexerStartingFromLoc(Loc, SM, LangOpts);
116-
if (!Lex.get())
116+
if (!Lex)
117117
return SourceLocation();
118118
llvm::SmallVector<char, 16> Line;
119119
// FIXME: this is a bit hacky to get ReadToEndOfLine work.
@@ -647,9 +647,8 @@ static SourceLocation getLocAfterNamespaceLBrace(const NamespaceDecl *NsDecl,
647647
const LangOptions &LangOpts) {
648648
std::unique_ptr<Lexer> Lex =
649649
getLexerStartingFromLoc(NsDecl->getBeginLoc(), SM, LangOpts);
650-
assert(Lex.get() &&
651-
"Failed to create lexer from the beginning of namespace.");
652-
if (!Lex.get())
650+
assert(Lex && "Failed to create lexer from the beginning of namespace.");
651+
if (!Lex)
653652
return SourceLocation();
654653
Token Tok;
655654
while (!Lex->LexFromRawLexer(Tok) && Tok.isNot(tok::TokenKind::l_brace)) {

clang-tools-extra/clang-doc/Representation.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,13 @@ struct TypedefInfo : public SymbolInfo {
415415

416416
TypeInfo Underlying;
417417

418-
// Inidicates if this is a new C++ "using"-style typedef:
418+
// Underlying type declaration
419+
SmallString<16> TypeDeclaration;
420+
421+
/// Comment description for the typedef.
422+
std::vector<CommentInfo> Description;
423+
424+
// Indicates if this is a new C++ "using"-style typedef:
419425
// using MyVector = std::vector<int>
420426
// False means it's a C-style typedef:
421427
// typedef std::vector<int> MyVector;
@@ -458,7 +464,8 @@ struct EnumValueInfo {
458464
// constant. This will be empty for implicit enumeration values.
459465
SmallString<16> ValueExpr;
460466

461-
std::vector<CommentInfo> Description; /// Comment description of this field.
467+
/// Comment description of this field.
468+
std::vector<CommentInfo> Description;
462469
};
463470

464471
// TODO: Expand to allow for documenting templating.

0 commit comments

Comments
 (0)