Skip to content

[AutoBump] Merge with 5bf37484 (Feb 20) (64) #608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: bump_to_1e1bf797
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e83ad81
[NFC][libc++][TZDB] Fixes formatting.
mordante Feb 20, 2025
c0c1722
[Analysis] Avoid repeated hash lookups (NFC) (#127955)
kazutakahirata Feb 20, 2025
506b31e
[IPO] Avoid repeated hash lookups (NFC) (#127957)
kazutakahirata Feb 20, 2025
c612f79
[ObjectYAML] Avoid repeated hash lookups (NFC) (#127958)
kazutakahirata Feb 20, 2025
4a8f414
[Utils] Avoid repeated hash lookups (NFC) (#127959)
kazutakahirata Feb 20, 2025
be51ef4
[WebAssembly] Avoid repeated hash lookups (NFC) (#127960)
kazutakahirata Feb 20, 2025
02e8fd7
[ARM,AArch64] Fix ABI bugs with over-sized bitfields (#126774)
ostannard Feb 20, 2025
726c4b9
[flang][cuda] Lower match_all_sync functions to nvvm intrinsics (#127…
clementval Feb 20, 2025
f7a10f0
[Index] Un-XFAIL test with msan
vitalybuka Feb 20, 2025
52ded67
[LAA] Always require non-wrapping pointers for runtime checks. (#127543)
fhahn Feb 20, 2025
2fab6db
[VectorCombine] foldSelectShuffle - remove extra adds of old shuffles…
RKSimon Feb 20, 2025
00f5aaf
[libc]: Clean up unnecessary function pointers in scanf (#121215)
vinay-deshmukh Feb 20, 2025
9ba438d
[RISCV] Remove some unnecessary casts from int64_t to uint64_t. NFC
topperc Feb 20, 2025
10b99e9
[SandboxVec][BottomUpVec] Separate vectorization decisions from code …
vporpo Feb 20, 2025
2a7d3f0
[NFC] Add release notes for -Wunsafe-buffer-usage-in-libc-call (#126975)
ziqingluo-90 Feb 20, 2025
19af858
[HLSL] Constant Buffers CodeGen (#124886)
hekota Feb 20, 2025
6e7da07
[Github][CI] Enable New Premerge on PRs (#127894)
boomanaiden154 Feb 20, 2025
b0210fe
[Clang] [NFC] Fix more `-Wreturn-type` warnings in tests everywhere (…
Sirraide Feb 20, 2025
5fadb3d
[CodeGen] Remove static member function Register::isPhysicalRegister.…
topperc Feb 20, 2025
b10ddfa
[libc] Fix missing includes in GPU scanf reader (#128049)
michaelrj-google Feb 20, 2025
5bc5161
[flang] Add support to fir::cg in alias analysis (#127827)
SusanTan Feb 20, 2025
29361b3
[Clang] Fix failing clang-tidy test (#128051)
Sirraide Feb 20, 2025
6d84fae
[gn build] Port 19af8581d51b
llvmgnsyncbot Feb 20, 2025
78d82d3
[lldb] Store StreamAsynchronousIO in a unique_ptr (NFC) (#127961)
JDevlieghere Feb 20, 2025
0ba391a
[BOLT] Improve constant island disassembly (#127971)
maksfb Feb 20, 2025
2e5ec1c
[flang] Add FLANG_PARALLEL_COMPILE_JOBS option (#127364)
tstellar Feb 20, 2025
df42799
Adding dependency to FIRCodeGen to fix buildbots (#128053)
Renaud-K Feb 20, 2025
f34f21a
[bazel] Fix mlir python build after a72616de18c0814ad37b5748d6bdc60b8…
d0k Feb 20, 2025
5bf3748
[NFC][hlsl][Sema] Simplify CBuffer Legacy Size Calculation Control Fl…
V-FEXrt Feb 20, 2025
b8fd1a5
[AutoBump] Merge with 5bf37484 (Feb 20)
jorickert Jun 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/premerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
# do this is that it allows us to take advantage of concurrency groups
# to cancel in progress CI jobs whenever the PR is closed.
- closed
paths:
- .github/workflows/premerge.yaml
push:
branches:
- 'main'
Expand Down
7 changes: 6 additions & 1 deletion bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ void BinaryFunction::print(raw_ostream &OS, std::string Annotation) {
if (!IslandOffset)
return;

// Print label if it exists at this offset.
if (const BinaryData *BD =
BC.getBinaryDataAtAddress(getAddress() + *IslandOffset))
OS << BD->getName() << ":\n";

const size_t IslandSize = getSizeOfDataInCodeAt(*IslandOffset);
BC.printData(OS, BC.extractData(getAddress() + *IslandOffset, IslandSize),
*IslandOffset);
Expand Down Expand Up @@ -1066,7 +1071,7 @@ size_t BinaryFunction::getSizeOfDataInCodeAt(uint64_t Offset) const {
auto Iter = Islands->CodeOffsets.upper_bound(Offset);
if (Iter != Islands->CodeOffsets.end())
return *Iter - Offset;
return getSize() - Offset;
return getMaxSize() - Offset;
}

std::optional<uint64_t>
Expand Down
10 changes: 8 additions & 2 deletions bolt/test/AArch64/data-in-code.s
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
## Check disassembly of BOLT input.
# RUN: llvm-objdump %t.exe -d | FileCheck %s

# RUN: llvm-bolt %t.exe -o %t.bolt --print-disasm | FileCheck %s
# RUN: llvm-bolt %t.exe -o %t.bolt --print-disasm \
# RUN: | FileCheck %s --check-prefixes CHECK,CHECK-BOLT-ONLY

.text
.balign 4
Expand All @@ -16,16 +17,21 @@
.type _start, %function
_start:
mov x0, #0x0
ldr x1, .L1
.word 0x4f82e010
ret
.size _start, .-_start
.L1:
.byte 0x0, 0xff, 0x42
# CHECK-LABEL: _start
# CHECK: mov x0, #0x0
# CHECK-NEXT: ldr x1
# CHECK-BOLT-ONLY-SAME: ISLANDat[[ADDR:]]
# CHECK-NEXT: .word 0x4f82e010
# CHECK-NEXT: ret
# CHECK-BOLT-ONLY-NEXT: ISLANDat[[ADDR]]
# CHECK-NEXT: .short 0xff00
# CHECK-NEXT: .byte 0x42
.size _start, .-_start

## Force relocation mode.
.reloc 0, R_AARCH64_NONE
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/unittests/ASTTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ TEST(ClangdAST, GetContainedAutoParamType) {
auto &&d,
auto *&e,
auto (*f)(int)
){};
){ return 0; };

int withoutAuto(
int a,
Expand All @@ -338,7 +338,7 @@ TEST(ClangdAST, GetContainedAutoParamType) {
int &&d,
int *&e,
int (*f)(int)
){};
){ return 0; };
)cpp");
TU.ExtraArgs.push_back("-std=c++20");
auto AST = TU.build();
Expand Down
6 changes: 4 additions & 2 deletions clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ TEST(WorkspaceSymbols, Unnamed) {
TEST(WorkspaceSymbols, InMainFile) {
TestTU TU;
TU.Code = R"cpp(
int test() {}
int test() { return 0; }
static void test2() {}
)cpp";
EXPECT_THAT(getSymbols(TU, "test"),
Expand Down Expand Up @@ -537,12 +537,14 @@ TEST(DocumentSymbols, InHeaderFile) {
TestTU TU;
TU.AdditionalFiles["bar.h"] = R"cpp(
int foo() {
return 0;
}
)cpp";
TU.Code = R"cpp(
int i; // declaration to finish preamble
#include "bar.h"
int test() {
return 0;
}
)cpp";
EXPECT_THAT(getSymbols(TU.build()),
Expand Down Expand Up @@ -780,7 +782,7 @@ TEST(DocumentSymbols, FuncTemplates) {
TestTU TU;
Annotations Source(R"cpp(
template <class T>
T foo() {}
T foo() { return T{}; }

auto x = foo<int>();
auto y = foo<double>();
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ TEST(ParsedASTTest, NoCrashOnTokensWithTidyCheck) {
// this check runs the preprocessor, we need to make sure it does not break
// our recording logic.
TU.ClangTidyProvider = addTidyChecks("modernize-use-trailing-return-type");
TU.Code = "inline int foo() {}";
TU.Code = "inline int foo() { return 0; }";

auto AST = TU.build();
const syntax::TokenBuffer &T = AST.getTokens();
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/unittests/QualityTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ TEST(QualityTests, SymbolRelevanceSignalExtraction) {

using flags::FLAGS_FOO;

int ::header_main() {}
int ::header_main() { return 0; }
int main();

[[deprecated]]
Expand Down
10 changes: 5 additions & 5 deletions clang-tools-extra/clangd/unittests/RenameTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ TEST(RenameTest, WithinFileRename) {
template<typename T>
class Foo {
public:
static T [[f^oo]]() {}
static T [[f^oo]]() { return T(); }
};

void bar() {
Expand All @@ -225,7 +225,7 @@ TEST(RenameTest, WithinFileRename) {
template<typename T>
class Foo {
public:
T [[f^oo]]() {}
T [[f^oo]]() { return T(); }
};

void bar() {
Expand Down Expand Up @@ -827,7 +827,7 @@ TEST(RenameTest, WithinFileRename) {

// Issue 170: Rename symbol introduced by UsingDecl
R"cpp(
namespace ns { void [[f^oo]](); }
namespace ns { void [[f^oo]](); }

using ns::[[f^oo]];

Expand Down Expand Up @@ -1307,7 +1307,7 @@ TEST(RenameTest, Renameable) {
"no symbol", false},

{R"cpp(// FIXME we probably want to rename both overloads here,
// but renaming currently assumes there's only a
// but renaming currently assumes there's only a
// single canonical declaration.
namespace ns { int foo(int); char foo(char); }
using ns::^foo;
Expand Down Expand Up @@ -1776,7 +1776,7 @@ TEST(CrossFileRenameTests, WithUpToDateIndex) {
void [[foo]]() override {};
};

void func(Base* b, Derived1* d1,
void func(Base* b, Derived1* d1,
Derived2* d2, NotDerived* nd) {
b->[[foo]]();
d1->[[foo]]();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ sizeof...($TemplateParameter[[Elements]]);
$Class[[Foo]].$Field_static[[sharedInstance]].$Field[[someProperty]] $Operator[[=]] 1;
self.$Field[[someProperty]] $Operator[[=]] self.$Field[[someProperty]] $Operator[[+]] self.$Field[[otherMethod]] $Operator[[+]] 1;
self->$Field[[_someProperty]] $Operator[[=]] $Field[[_someProperty]] $Operator[[+]] 1;
return 0;
}
@end
)cpp",
Expand Down
9 changes: 5 additions & 4 deletions clang-tools-extra/clangd/unittests/SemanticSelectionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ TEST(FoldingRanges, ASTAll) {
R"cpp(
#define FOO int foo() {\
int Variable = 42; \
return 0; \
}

// Do not generate folding range for braces within macro expansion.
Expand Down Expand Up @@ -336,18 +337,18 @@ TEST(FoldingRanges, PseudoParserWithoutLineFoldings) {
]]};
)cpp",
R"cpp(
/*[[ Multi
/*[[ Multi
* line
* comment
* comment
]]*/
)cpp",
R"cpp(
//[[ Comment
// 1]]

//[[ Comment
// 2]]

// No folding for single line comment.

/*[[ comment 3
Expand Down
8 changes: 8 additions & 0 deletions clang-tools-extra/clangd/unittests/SymbolInfoTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ TEST(SymbolInfoTests, All) {
void $decl[[foo]]();
int bar() {
fo^o();
return 0;
}
)cpp",
{ExpectedSymbolDetails{"foo", "", "c:@F@foo#", "decl"}}},
Expand All @@ -44,6 +45,7 @@ TEST(SymbolInfoTests, All) {
void $def[[foo]]() {}
int bar() {
fo^o();
return 0;
}
)cpp",
{ExpectedSymbolDetails{"foo", "", "c:@F@foo#", "def", "def"}}},
Expand All @@ -53,6 +55,7 @@ TEST(SymbolInfoTests, All) {
void $def[[foo]]() {}
int bar() {
fo^o();
return 0;
}
)cpp",
{ExpectedSymbolDetails{"foo", "", "c:@F@foo#", "decl", "def"}}},
Expand Down Expand Up @@ -83,6 +86,7 @@ TEST(SymbolInfoTests, All) {
void $decl[[foo]]();
int baz() {
fo^o();
return 0;
}
}
)cpp",
Expand All @@ -96,6 +100,7 @@ TEST(SymbolInfoTests, All) {
namespace barbar {
int baz() {
bar::fo^o();
return 0;
}
}
)cpp",
Expand All @@ -108,6 +113,7 @@ TEST(SymbolInfoTests, All) {
namespace Nbaz {
int baz() {
::fo^o();
return 0;
}
}
}
Expand All @@ -121,6 +127,7 @@ TEST(SymbolInfoTests, All) {
namespace barbar {
int baz() {
fo^o();
return 0;
}
}
)cpp",
Expand All @@ -136,6 +143,7 @@ TEST(SymbolInfoTests, All) {
int baz() {
bar::BarType b;
fo^o(b);
return 0;
}
}
)cpp",
Expand Down
14 changes: 8 additions & 6 deletions clang-tools-extra/clangd/unittests/XRefsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ TEST(HighlightsTest, All) {
)cpp",

R"cpp(// Function
int [[^foo]](int) {}
int [[^foo]](int) { return 0; }
int main() {
[[foo]]([[foo]](42));
auto *X = &[[foo]];
Expand Down Expand Up @@ -2140,7 +2140,7 @@ TEST(FindReferences, WithinAST) {
)cpp",

R"cpp(// Function
int $def[[foo]](int) {}
int $def[[foo]](int) { return 0; }
int main() {
auto *X = &$(main)[[^foo]];
$(main)[[foo]](42);
Expand All @@ -2160,7 +2160,7 @@ TEST(FindReferences, WithinAST) {

R"cpp(// Method call
struct Foo { int $decl(Foo)[[foo]](); };
int Foo::$def(Foo)[[foo]]() {}
int Foo::$def(Foo)[[foo]]() { return 0; }
int main() {
Foo f;
f.$(main)[[^foo]]();
Expand Down Expand Up @@ -2258,7 +2258,7 @@ TEST(FindReferences, WithinAST) {
)cpp",
R"cpp(// Dependent code
template <typename T> void $decl[[foo]](T t);
template <typename T> void bar(T t) { $(bar)[[foo]](t); } // foo in bar is uninstantiated.
template <typename T> void bar(T t) { $(bar)[[foo]](t); } // foo in bar is uninstantiated.
void baz(int x) { $(baz)[[f^oo]](x); }
)cpp",
R"cpp(
Expand Down Expand Up @@ -2508,6 +2508,7 @@ TEST(FindReferences, ExplicitSymbols) {
X $def(test)[[a]];
$(test)[[a]].operator bool();
if ($(test)[[a^]]) {} // ignore implicit conversion-operator AST node
return 0;
}
)cpp",
};
Expand Down Expand Up @@ -2543,7 +2544,7 @@ TEST(FindReferences, UsedSymbolsFromInclude) {
#define BAR 5
int bar1();
int bar2();
class Bar {};
class Bar {};
)cpp");
TU.AdditionalFiles["system/vector"] = guard(R"cpp(
namespace std {
Expand All @@ -2560,7 +2561,7 @@ TEST(FindReferences, UsedSymbolsFromInclude) {
std::vector<Matcher<ReferencesResult::Reference>> ExpectedLocations;
for (const auto &R : T.ranges())
ExpectedLocations.push_back(AllOf(rangeIs(R), attrsAre(0u)));
for (const auto &P : T.points())
for (const auto &P : T.points())
EXPECT_THAT(findReferences(AST, P, 0).References,
UnorderedElementsAreArray(ExpectedLocations))
<< "Failed for Refs at " << P << "\n"
Expand Down Expand Up @@ -2635,6 +2636,7 @@ TEST(FindReferences, NeedsIndexForMacro) {
Annotations IndexedMain(R"cpp(
int indexed_main() {
int a = [[MACRO]](1);
return 0;
}
)cpp");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,11 @@ TEST_F(DefineInlineTest, AddInline) {
// Check we put inline before cv-qualifiers.
ExtraFiles["a.h"] = "const int foo();";
apply(R"cpp(#include "a.h"
const int fo^o() {})cpp",
const int fo^o() { return 0; })cpp",
&EditedFiles);
EXPECT_THAT(EditedFiles, testing::ElementsAre(FileWithContents(
testPath("a.h"), "inline const int foo(){}")));
EXPECT_THAT(EditedFiles,
testing::ElementsAre(FileWithContents(
testPath("a.h"), "inline const int foo(){ return 0; }")));

// No double inline.
ExtraFiles["a.h"] = "inline void foo();";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ TEST_F(ExpandDeducedTypeTest, Test) {
EXPECT_THAT(apply(R"cpp(au^to s = &"foobar";)cpp"),
StartsWith("fail: Could not expand type"));

EXPECT_EQ(apply("ns::Class * foo() { au^to c = foo(); }"),
"ns::Class * foo() { ns::Class * c = foo(); }");
EXPECT_EQ(apply("ns::Class * foo() { au^to c = foo(); return nullptr; }"),
"ns::Class * foo() { ns::Class * c = foo(); return nullptr; }");
EXPECT_EQ(
apply("void ns::Func() { au^to x = new ns::Class::Nested{}; }"),
"void ns::Func() { ns::Class::Nested * x = new ns::Class::Nested{}; }");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ TEST_F(ExtractVariableTest, Test) {
struct T {
int bar(int a = [[1]]) {
int b = [[z]];
return 0;
}
int z = [[1]];
} t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ std::string StringsFunction(std::string s1) { return s1; }
class SomeContainer {};
namespace strings_internal {
void InternalFunction() {}
template <class P> P InternalTemplateFunction(P a) {}
template <class P> void InternalTemplateFunction(P a) { int; }
} // namespace strings_internal

namespace container_internal {
Expand Down
Loading