5268 Commits

Author SHA1 Message Date
LLVM GN Syncbot
411e61db1c [gn build] Port cc380f6e9ba4 2025-07-23 11:37:19 +00:00
Arthur Eubanks
999b35629f
[gn build] Manually partially port #108276 (#149595)
Fixes windows gn clang build.

Don't worry about exporting clang symbols on windows in gn build for
now.
2025-07-22 10:19:02 -07:00
Nico Weber
33bfbacdcb [gn build] Port 58be6226eb89 2025-07-22 09:57:46 -04:00
LLVM GN Syncbot
a1bf0d1394 [gn build] Port 287b9447cc12 2025-07-22 13:23:14 +00:00
LLVM GN Syncbot
76ab6a2a76 [gn build] Port f78c4ce55bc4 2025-07-22 12:25:50 +00:00
LLVM GN Syncbot
49d7a9b14e [gn build] Port aa7ada1dfbe2 2025-07-21 15:05:23 +00:00
LLVM GN Syncbot
39389d55dd [gn build] Port 7355ea3f6b21 2025-07-21 15:05:22 +00:00
LLVM GN Syncbot
890952ebfc [gn build] Port 401b5ccf6b50 2025-07-21 15:05:20 +00:00
LLVM GN Syncbot
89f09a887d [gn build] Port 6c257754d955 2025-07-20 09:23:47 +00:00
LLVM GN Syncbot
0dfac65595 [gn build] Port d344c383e20a 2025-07-20 08:14:16 +00:00
Louis Dionne
0e40695804
[libc++] Remove unused _LIBCPP_HAS_NO_STD_MODULES macro from __config_site (#148902)
Since 1d6b6132f, that macro isn't used anywhere anymore.
2025-07-18 11:06:27 -04:00
LLVM GN Syncbot
8b06814954 [gn build] Port 8f3e78f9715c 2025-07-18 12:12:24 +00:00
Nico Weber
4bbc70ed28 [gn] port d994487db78 (llvm-ir2vec) 2025-07-18 08:11:55 -04:00
LLVM GN Syncbot
ace6e20e52 [gn build] Port 2194bca2b78c 2025-07-17 07:53:11 +00:00
Daniel Bertalan
fb3972dd06 [lld-macho] Move Linker Optimization Hints pass to a separate file
Moving it away from the arm64 `TargetInfo` class will let us enable it
more easily for arm64_32 and the soon-to-be-added arm64e target as well.

This is the NFC part of #148964
2025-07-16 21:13:54 +02:00
Sirraide
1600450f90
[Clang] Reintroduce obsolete libclang symbols to avoid an ABI break (#149079)
For more context, see
https://github.com/llvm/llvm-project/pull/119269#issuecomment-3075444493,
but briefly, when removing ARCMigrate, I also removed some symbols in
libclang, which constitutes an ABI break that we don’t want, so this pr
reintroduces the removed symbols; the declarations are marked as
deprecated for future removal, and the implementations print an error
and do nothing, which is what we used to do when ARCMigrate was
disabled.
2025-07-16 15:48:53 +02:00
LLVM GN Syncbot
9ea27b841c [gn build] Port 88a498c3b110 2025-07-16 13:03:44 +00:00
enh-google
62bd778fd4
Remove workarounds for NDK versions before 2017's r16. (#148879) 2025-07-16 07:39:17 -04:00
LLVM GN Syncbot
3483ac50e3 [gn build] Port 5ae49393957c 2025-07-16 09:14:14 +00:00
LLVM GN Syncbot
c364e6234e [gn build] Port 3e4153c97b54 2025-07-16 08:35:37 +00:00
LLVM GN Syncbot
fd543b3c46 [gn build] Port 7f2bcd97cf4a 2025-07-15 21:15:47 +00:00
LLVM GN Syncbot
8917f84d29 [gn build] Port eec98bef84b8 2025-07-15 18:46:40 +00:00
LLVM GN Syncbot
d64a236445 [gn build] Port ee9b84f5bed7 2025-07-15 18:46:39 +00:00
LLVM GN Syncbot
28463928a9 [gn build] Port 0d2e11f3e834 2025-07-15 18:46:38 +00:00
Nico Weber
c9f03b8c6e [gn] port 5951c44573 2025-07-15 14:06:09 -04:00
Tobias Hieta
01f36b39bd Bump version to 22.0.0-git 2025-07-15 16:03:12 +02:00
Peter Collingbourne
de31584001
Reapply "compiler-rt: Introduce runtime functions for emulated PAC."
This reverts commit 0c0aa56cdcf1fe3970a5f3875db412530512fc07.

This time with the following fixes for buildbot failures:
- Add underscore prefixes to symbol names on Apple platforms.
- Modify the test so that it skips the crash tests on platforms where
  they are not expected to pass:
  - Platforms that implement FEAT_PAuth but not FEAT_FPAC (e.g.
    Apple M1, Cortex-A78C)
  - Platforms where DA key is disabled (e.g. older Linux kernels,
    Linux kernels with PAC disabled, likely Windows)

Original commit message follows:

The emulated PAC runtime functions emulate the ARMv8.3a pointer
authentication instructions and are intended for use in heterogeneous
testing environments. For more information, see the associated RFC:
https://discourse.llvm.org/t/rfc-emulated-pac/85557

Reviewers: mstorsjo, pawosm-arm, atrosinenko

Reviewed By: atrosinenko

Pull Request: https://github.com/llvm/llvm-project/pull/148094
2025-07-14 13:13:32 -07:00
LLVM GN Syncbot
ea8ff792e3 [gn build] Port b9ccc0ca38dc 2025-07-14 13:44:22 +00:00
LLVM GN Syncbot
b6313b381a [gn build] Port 59b39c0031ed 2025-07-13 16:23:36 +00:00
LLVM GN Syncbot
f2e244f443 [gn build] Port 2f4a804e6eb5 2025-07-12 07:04:26 +00:00
LLVM GN Syncbot
67588d3075 [gn build] Port bf94c8ddb321 2025-07-11 18:05:14 +00:00
LLVM GN Syncbot
6bed7b7947 [gn build] Port def7bbbe17c6 2025-07-11 08:42:32 +00:00
LLVM GN Syncbot
78eb92b383 [gn build] Port 3076794e924f 2025-07-10 21:58:56 +00:00
Peter Collingbourne
0c0aa56cdc Revert "compiler-rt: Introduce runtime functions for emulated PAC."
As well as followup "builtins: Speculative MSVC fix."

This reverts commits 5b1db59fb87b4146f827d17396f54ef30ae0dc40 and
f1c4df5b7bb79efb3e9be7fa5f8176506499d0a6.

Needs fixes for failing tests which will take time to implement.
2025-07-10 13:16:36 -07:00
LLVM GN Syncbot
eaac713591 [gn build] Port 76b1dcfac5da 2025-07-10 16:53:26 +00:00
Nico Weber
4453792e8d [gn] port 7daa1defd2426 (CGPluginTest)
The test isn't passing for me locally yet, so it's not yet part
of the build.
2025-07-10 11:12:59 -04:00
Peter Collingbourne
a37f0a00a2 gn build: Port db03408b2445 2025-07-09 16:32:13 -07:00
Peter Collingbourne
5b1db59fb8
compiler-rt: Introduce runtime functions for emulated PAC.
The emulated PAC runtime functions emulate the ARMv8.3a pointer
authentication instructions and are intended for use in heterogeneous
testing environments. For more information, see the associated RFC:
https://discourse.llvm.org/t/rfc-emulated-pac/85557

Reviewers: llvm-beanz, petrhosek

Pull Request: https://github.com/llvm/llvm-project/pull/133530
2025-07-09 16:18:37 -07:00
Peter Collingbourne
7f3afab918
Extract SipHash implementation into a header.
This is so that we'll be able to use it in compiler-rt as well.
Dependencies on LLVM Support were removed from the header by restoring
code from the original SipHash implementation.

Reviewers: kuhar, dwblaikie, ahmedbougacha

Reviewed By: dwblaikie

Pull Request: https://github.com/llvm/llvm-project/pull/134197
2025-07-09 16:07:16 -07:00
LLVM GN Syncbot
0863979e84 [gn build] Port c44c142afc93 2025-07-08 18:34:13 +00:00
Nico Weber
2485c51715 [gn] port 058056329982d 2025-07-08 20:08:41 +02:00
Matt Arsenault
1915fa15c3
Utils: Add pass to declare runtime libcalls (#147534)
This will be useful for testing the set of calls for different systems,
and eventually the product of context specific modifiers applied. In
the future we should also know the type signatures, and be able to
emit the correct one.
2025-07-09 00:52:22 +09:00
LLVM GN Syncbot
4b2212322f [gn build] Port f9999184ddde 2025-07-08 14:24:00 +00:00
LLVM GN Syncbot
e7ceaecefa [gn build] Port 45689b26eb4b 2025-07-08 09:02:37 +00:00
LLVM GN Syncbot
5d83fe8a1a [gn build] Port 4fed7c22fb0f 2025-07-07 17:14:38 +00:00
LLVM GN Syncbot
113ea3d15b [gn build] Port ca697096aa6f 2025-07-05 16:13:32 +00:00
LLVM GN Syncbot
f17a6387da [gn build] Port 1121d64ba96d 2025-07-05 16:13:31 +00:00
LLVM GN Syncbot
a1789497f9 [gn build] Port 56e3fc4c42d1 2025-07-04 14:59:58 +00:00
LLVM GN Syncbot
a3dea0addd [gn build] Port 795b17d0b821 2025-07-03 18:26:14 +00:00
Jason Molenda
dfcef35ff1
[lldb][NFC][MachO] Clean up LC_THREAD reading code, remove i386 corefile (#146480)
While fixing bugs in the x86_64 LC_THREAD parser in ObjectFileMachO, I
noticed that the other LC_THREAD parsers are all less clear than they
should be.

To recap, a Mach-O LC_THREAD load command has a byte size for the entire
payload. Within the payload, there will be one or more register sets
provided. A register set starts with a UInt32 "flavor", the type of
register set defined in the system headers, and a UInt32 "count", the
number of UInt32 words of memory for this register set. After one
register set, there may be additional sets. A parser can skip an unknown
register set flavor by using the count field to get to the next register
set. When the total byte size of the LC_THREAD load command has been
parsed, it is completed.

This patch fixes the riscv/arm/arm64 LC_THREAD parsers to use the total
byte size as the exit condition, and to skip past unrecognized register
sets, instead of stopping parsing.

Instead of fixing the i386 corefile support, I removed it. The last
macOS that supported 32-bit Intel code was macOS 10.14 in 2018. I also
removed i386 KDP support, 32-bit intel kernel debugging hasn't been
supported for even longer than that.

It would be preferable to do these things separately, but I couldn't
bring myself to update the i386 LC_THREAD parser, and it required very
few changes to remove this support entirely.
2025-07-02 10:21:38 -07:00