forked from rust-lang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Update toolchain to LLVM 18 #105
Merged
LucasSte
merged 117 commits into
anza-xyz:solana-rustc/18.1-2024-05-19
from
LucasSte:solana-rustc/18.1-2024-05-19
Aug 19, 2024
Merged
Update toolchain to LLVM 18 #105
LucasSte
merged 117 commits into
anza-xyz:solana-rustc/18.1-2024-05-19
from
LucasSte:solana-rustc/18.1-2024-05-19
Aug 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…a-xyz#4) * [BPF] Make rust allocation builtins unavailable for BPF target - the calls to rust alloc/dealloc routines need to be preserved and not replaced by compiler generated builtin inlined code
* [SOL][BPF] Adjust BPF tests * [SOL][BPF] Improve reporting of stack size is too large - issue only one warning for each function - report the function location if debug information is available
Co-authored-by: Jack May <[email protected]>
* [SOL] Make lld thread-safe with llvm when used in-process Every time Solang tries to link a web-assembly file in-process, the linker re-inits llvm which is not thread-safe with the rest of solang. Signed-off-by: Sean Young <[email protected]> * [SOL][BPF] Enable the _ExtInt extension on the BPF Target for Solana Signed-off-by: Sean Young <[email protected]>
Solana extends BPF so that structs type information is not fully supported in BTF. This leads to ICE crashes and some unsupported relocations being emitted in binary files that linker errors on. For, now the debug information is simply disabled when compiling for Solana to avoid the errors in Debug builds.
* Fix issue with copying 16-byte aligned memory
LucasSte
force-pushed
the
solana-rustc/18.1-2024-05-19
branch
from
July 7, 2024 16:14
72b3ff4
to
3b6ff9f
Compare
LucasSte
force-pushed
the
solana-rustc/18.1-2024-05-19
branch
from
August 16, 2024 17:44
d1bb2f0
to
c513290
Compare
LucasSte
force-pushed
the
solana-rustc/18.1-2024-05-19
branch
2 times, most recently
from
August 16, 2024 22:06
3e640d1
to
2920e58
Compare
LucasSte
force-pushed
the
solana-rustc/18.1-2024-05-19
branch
from
August 18, 2024 21:21
2920e58
to
ff311cc
Compare
LucasSte
force-pushed
the
solana-rustc/18.1-2024-05-19
branch
from
August 18, 2024 21:29
ff311cc
to
0f67554
Compare
Besides the basic adjustments for Rust 1.79, I included here the implementation of atomic load and store and atomic swap as they were now necessary to compiler Rust 1.79. I registered the SBF target and removed the debug checks for relocations in the linker. The latter is not implemented for the SBF target, but it is used in the Rust test suit. |
dmakarov
approved these changes
Aug 19, 2024
LucasSte
merged commit Aug 19, 2024
646ec14
into
anza-xyz:solana-rustc/18.1-2024-05-19
18 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Besides cherry-picking the commits, I added a panic in the BPF target when someone tries to use it with Solana. The upstream BPF target accumulated too many changes that conflict with our previous ones, so I'm dropping the support for it. The next release won't include changes in the BPF target.
Check
BPFSubtarget.cpp