]>
git.lizzy.rs Git - rust.git/log
bjorn3 [Sat, 18 Dec 2021 14:33:31 +0000 (15:33 +0100)]
Slightly reduce the amount of fx.module references
bjorn3 [Fri, 17 Dec 2021 22:23:17 +0000 (23:23 +0100)]
Revert "Update Cranelift to 0.79.0"
This reverts commit
a1037fad7dda722e4d63c5c09f6582079fe02a4c .
There are two regressions in Cranelift with respect to small integer
operations. Both have already been fixed on thebmain branch, but we will
have to wait for a new Cranelift release. They have been fixed by
bytecodealliance/wasmtime#3610 and bytecodealliance/wasmtime#3617.
bjorn3 [Fri, 17 Dec 2021 09:58:04 +0000 (10:58 +0100)]
Update cranelift patch section
bjorn3 [Thu, 16 Dec 2021 17:57:25 +0000 (18:57 +0100)]
Update Cranelift to 0.79.0
bjorn3 [Thu, 16 Dec 2021 13:46:43 +0000 (14:46 +0100)]
Update libc
bjorn3 [Thu, 16 Dec 2021 13:36:02 +0000 (14:36 +0100)]
Rustc tests: ignore a couple more rustdoc tests
bjorn3 [Thu, 16 Dec 2021 13:10:51 +0000 (14:10 +0100)]
Rustup to rustc 1.59.0-nightly (
c5ecc1570 2021-12-15)
bjorn3 [Thu, 16 Dec 2021 12:52:12 +0000 (13:52 +0100)]
bjorn3 [Thu, 16 Dec 2021 12:51:18 +0000 (13:51 +0100)]
Fix unused crate warning
bjorn3 [Wed, 15 Dec 2021 15:53:35 +0000 (16:53 +0100)]
Fix crash when struct argument size is not a multiple of the pointer size
Fixes #1200
Matthias Krüger [Wed, 15 Dec 2021 00:28:06 +0000 (01:28 +0100)]
Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`
The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.
This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
Amanieu d'Antras [Mon, 13 Dec 2021 20:40:17 +0000 (20:40 +0000)]
Remove invalid doc links.
Tomasz Miąsko [Mon, 13 Dec 2021 00:00:00 +0000 (00:00 +0000)]
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`
The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.
This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
bjorn3 [Thu, 9 Dec 2021 12:43:32 +0000 (13:43 +0100)]
Rustfmt
bjorn3 [Thu, 9 Dec 2021 12:36:33 +0000 (13:36 +0100)]
Use cg_ssa for creating the dylib metadata file
The new api was introduced in rust-lang/rust#91604
bjorn3 [Thu, 9 Dec 2021 12:23:10 +0000 (13:23 +0100)]
Rustup to rustc 1.59.0-nightly (
e6b883c74 2021-12-08)
bjorn3 [Tue, 7 Dec 2021 17:25:27 +0000 (18:25 +0100)]
Use const thread_local!
bjorn3 [Tue, 7 Dec 2021 17:22:44 +0000 (18:22 +0100)]
Rustup to rustc 1.59.0-nightly (
0fb1c371d 2021-12-06)
bjorn3 [Tue, 7 Dec 2021 16:57:58 +0000 (17:57 +0100)]
Mara Bos [Fri, 3 Sep 2021 10:36:33 +0000 (12:36 +0200)]
Use IntoIterator for array impl everywhere.
bjorn3 [Sat, 4 Dec 2021 14:03:50 +0000 (15:03 +0100)]
Remove black box inline asm fallback
It isn't used anymore since the introduction of the black_box intrinsic
cynecx [Sat, 4 Sep 2021 20:14:09 +0000 (22:14 +0200)]
cg_cranelift: check may_unwind flag instead of cleanup
cynecx [Sat, 4 Sep 2021 17:25:09 +0000 (19:25 +0200)]
LLVM codgen support for unwinding inline assembly
bjorn3 [Fri, 3 Dec 2021 12:16:34 +0000 (13:16 +0100)]
Test on CI with unstable cg_clif features disabled
Part of #1084
bjorn3 [Fri, 3 Dec 2021 11:20:42 +0000 (12:20 +0100)]
Disable long running libcore tests
bjorn3 [Fri, 3 Dec 2021 11:13:41 +0000 (12:13 +0100)]
Fix vector types containing an array field with mir opts enabled
bjorn3 [Thu, 2 Dec 2021 15:49:27 +0000 (16:49 +0100)]
Rustup to rustc 1.59.0-nightly (
48a5999fc 2021-12-01)
bjorn3 [Thu, 2 Dec 2021 12:31:47 +0000 (13:31 +0100)]
Enable artifact uploads for windows builds
Fixes #1210
bjorn3 [Wed, 1 Dec 2021 17:36:19 +0000 (18:36 +0100)]
Update dependencies
bjorn3 [Wed, 1 Dec 2021 17:34:19 +0000 (18:34 +0100)]
Update object
Petr Sumbera [Wed, 1 Dec 2021 09:03:45 +0000 (10:03 +0100)]
fix sparc64 ABI for aggregates with floating point members
bjorn3 [Fri, 26 Nov 2021 16:05:25 +0000 (17:05 +0100)]
Fix rustc tests
bjorn3 [Fri, 26 Nov 2021 15:21:19 +0000 (16:21 +0100)]
Fix warning
bjorn3 [Fri, 26 Nov 2021 15:21:01 +0000 (16:21 +0100)]
Rustup to rustc 1.58.0-nightly (
dd549dcab 2021-11-25)
bjorn3 [Fri, 26 Nov 2021 14:33:56 +0000 (15:33 +0100)]
Enable unstable-features feature of cg_clif for rust-analyzer
bjorn3 [Thu, 25 Nov 2021 10:43:18 +0000 (11:43 +0100)]
Ensure inline asm wrapper name never starts with a digit
This could previously happen if the cgu name starts with a digit
bjorn3 [Wed, 24 Nov 2021 19:35:57 +0000 (20:35 +0100)]
Include NOTYPE symbols in the archive symbol table
This is necessary for blog os
bjorn3 [Wed, 24 Nov 2021 18:18:22 +0000 (19:18 +0100)]
Use cgu name instead of function name as base for inline asm wrapper name
This fixes using #[inline] functions containing inline assembly from multiple cgus
bjorn3 [Tue, 23 Nov 2021 13:25:28 +0000 (14:25 +0100)]
Version the prebuilt libstd again
__CARGO_DEFAULT_LIB_METADATA got lost in the rewrite of the build system
from bash to rust
bjorn3 [Mon, 22 Nov 2021 17:50:12 +0000 (18:50 +0100)]
Merge pull request #1206 from nbdd0121/master
Improve inline asm support
Gary Guo [Mon, 22 Nov 2021 17:01:43 +0000 (17:01 +0000)]
Fix allocated reg in AT&T style asm
Gary Guo [Mon, 22 Nov 2021 03:15:02 +0000 (03:15 +0000)]
Add RISC-V inline asm support
Gary Guo [Mon, 22 Nov 2021 03:01:42 +0000 (03:01 +0000)]
Dispatch inline asm to the correct arch
Gary Guo [Mon, 22 Nov 2021 02:58:53 +0000 (02:58 +0000)]
x86 inline asm support
Gary Guo [Mon, 22 Nov 2021 02:56:56 +0000 (02:56 +0000)]
Skeleton for multiple arch support
Gary Guo [Mon, 22 Nov 2021 02:50:09 +0000 (02:50 +0000)]
Overlap input and output stack slots
Gary Guo [Mon, 22 Nov 2021 02:38:50 +0000 (02:38 +0000)]
Skip registers saved by calling convention
Gary Guo [Mon, 22 Nov 2021 02:28:16 +0000 (02:28 +0000)]
Code cleanup as a follow up to the previous commit
Gary Guo [Mon, 22 Nov 2021 02:05:56 +0000 (02:05 +0000)]
Move stack slot allocation to a new fn
Gary Guo [Mon, 22 Nov 2021 01:48:22 +0000 (01:48 +0000)]
Remove expect_reg
Gary Guo [Mon, 22 Nov 2021 01:44:32 +0000 (01:44 +0000)]
Implement register allocation for inline assembly
bjorn3 [Thu, 18 Nov 2021 18:30:28 +0000 (19:30 +0100)]
Update to latest portable-simd version
bjorn3 [Thu, 18 Nov 2021 18:27:49 +0000 (19:27 +0100)]
Implement simd_reduce_{min,max} for floats
bjorn3 [Thu, 18 Nov 2021 18:27:32 +0000 (19:27 +0100)]
Implement new simd_shuffle signature
bjorn3 [Wed, 17 Nov 2021 20:01:35 +0000 (21:01 +0100)]
Rustup to rustc 1.58.0-nightly (
d914f17ca 2021-11-16)
bjorn3 [Fri, 29 Oct 2021 14:22:45 +0000 (16:22 +0200)]
Use crates.io releases of Cranelift
I originally switched the Cranelift dependencies to use git as cg_clif
required a lot of new Cranelift features. With crates.io dependencies I
would have to wait for a new release every time. With git dependencies I
could start using the new features as soon as they were merged.
Currently there aren't a lot of new Cranelift features necessary anymore
and those that are useful are no longer blocking compilation of lots of
crates. There was some concern expressed about using git dependencies in
the main rust repo, so all together I think it is best to switch to
crates.io releases and if necessary wait a bit before merging changes
requiring newer Cranelift commits.
bjorn3 [Wed, 27 Oct 2021 14:44:51 +0000 (16:44 +0200)]
Revert libc update
It causes the macOS CI to fail. See rust-lang/libc#2484
bjorn3 [Wed, 27 Oct 2021 12:37:57 +0000 (14:37 +0200)]
Disable rustc test requiring rustdoc
bjorn3 [Wed, 27 Oct 2021 12:17:26 +0000 (14:17 +0200)]
Rustup to rustc 1.58.0-nightly (
e269e6bf4 2021-10-26)
bjorn3 [Wed, 27 Oct 2021 12:05:12 +0000 (14:05 +0200)]
bjorn3 [Thu, 21 Oct 2021 18:18:01 +0000 (20:18 +0200)]
Remove unncesessary TryFrom and TryInto impls
bjorn3 [Thu, 21 Oct 2021 13:19:38 +0000 (15:19 +0200)]
Update Cranelift and object
Camille GILLOT [Sat, 16 Oct 2021 20:31:48 +0000 (22:31 +0200)]
Make hash_result an Option.
bjorn3 [Sun, 17 Oct 2021 20:42:19 +0000 (22:42 +0200)]
Remove unnecessary Lazy
Found by m-ou-se in https://github.com/bjorn3/rustc_codegen_cranelift/pull/1166#discussion_r730468919
bjorn3 [Sun, 17 Oct 2021 15:05:00 +0000 (17:05 +0200)]
Disable a failing test
bjorn3 [Sun, 17 Oct 2021 13:29:57 +0000 (15:29 +0200)]
Re-enable incremental compilation for the sysroot
rust-lang/rust#74946 for fixed
Amanieu d'Antras [Thu, 14 Oct 2021 23:41:31 +0000 (01:41 +0200)]
Remove alloc::prelude
As per the libs team decision in #58935.
Closes #58935
bjorn3 [Wed, 13 Oct 2021 14:59:59 +0000 (16:59 +0200)]
Update Cranelift
bjorn3 [Tue, 12 Oct 2021 12:47:57 +0000 (14:47 +0200)]
Update Cranelift
Deadbeef [Tue, 12 Oct 2021 05:06:37 +0000 (05:06 +0000)]
Add const_eval_select intrinsic
bjorn3 [Sat, 9 Oct 2021 13:16:19 +0000 (15:16 +0200)]
Rustup to rustc 1.57.0-nightly (
54bb4fec6 2021-10-08)
bjorn3 [Sat, 9 Oct 2021 13:02:14 +0000 (15:02 +0200)]
bors [Fri, 8 Oct 2021 09:04:06 +0000 (09:04 +0000)]
Auto merge of #89619 - michaelwoerister:incr-vtables, r=nagisa
Turn vtable_allocation() into a query
This PR removes the untracked vtable-const-allocation cache from the `tcx` and turns the `vtable_allocation()` method into a query.
The change is pretty straightforward and should be backportable without too much effort.
Fixes https://github.com/rust-lang/rust/issues/89598.
Michael Woerister [Thu, 7 Oct 2021 09:29:01 +0000 (11:29 +0200)]
Turn tcx.vtable_allocation() into a query.
Camille GILLOT [Sat, 14 Nov 2020 02:02:03 +0000 (03:02 +0100)]
Move rustc_middle::middle::cstore to rustc_session.
bjorn3 [Sat, 2 Oct 2021 12:51:08 +0000 (14:51 +0200)]
Rustfmt
bjorn3 [Sat, 2 Oct 2021 12:50:15 +0000 (14:50 +0200)]
Rustup to rustc 1.57.0-nightly (
c02371c44 2021-10-01)
bjorn3 [Sat, 2 Oct 2021 12:42:18 +0000 (14:42 +0200)]
bjorn3 [Fri, 1 Oct 2021 13:37:48 +0000 (15:37 +0200)]
Update Cranelift
This version no longer has the old x86 backend
Camille Gillot [Tue, 28 Sep 2021 18:49:57 +0000 (20:49 +0200)]
Update compiler/rustc_codegen_cranelift/scripts/filter_profile.rs
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
Camille GILLOT [Fri, 24 Sep 2021 16:15:36 +0000 (18:15 +0200)]
Move EncodedMetadata to rustc_metadata.
Camille GILLOT [Sat, 14 Nov 2020 00:59:00 +0000 (01:59 +0100)]
Move encode_metadata out of CrateStore.
bjorn3 [Thu, 30 Sep 2021 13:22:19 +0000 (15:22 +0200)]
Update dependencies
bjorn3 [Thu, 30 Sep 2021 13:17:43 +0000 (15:17 +0200)]
Update Cranelift
bjorn3 [Mon, 27 Sep 2021 09:20:04 +0000 (11:20 +0200)]
Fix unused import warning
TryInto is part of the 2021 edition prelude
bjorn3 [Mon, 27 Sep 2021 09:17:24 +0000 (11:17 +0200)]
Rustup to rustc 1.57.0-nightly (
05044c2e6 2021-09-26)
bjorn3 [Mon, 27 Sep 2021 09:11:18 +0000 (11:11 +0200)]
bors [Sun, 26 Sep 2021 23:31:01 +0000 (23:31 +0000)]
Auto merge of #89092 - bjorn3:sync_cg_clif-2021-09-19, r=bjorn3
Sync rustc_codegen_cranelift
Nothing exciting this time. Mostly internal refactorings.
r? `@ghost`
`@rustbot` label +A-codegen +A-cranelift +T-compiler
Gary Guo [Mon, 6 Sep 2021 17:33:23 +0000 (18:33 +0100)]
Introduce `Rvalue::ShallowInitBox`
Mark Rousskov [Sun, 19 Sep 2021 16:49:55 +0000 (12:49 -0400)]
Migrate to 2021
Mark Rousskov [Sun, 19 Sep 2021 14:36:17 +0000 (10:36 -0400)]
Adjust to SourceType::InTree in several places
These were left over in migrations to subtrees, which should generally be treated
as-if it was local.
Also fixes a warning caused by this change.
bjorn3 [Sun, 19 Sep 2021 11:58:19 +0000 (13:58 +0200)]
Merge branch 'sync_from_rust'
bjorn3 [Sun, 19 Sep 2021 11:56:58 +0000 (13:56 +0200)]
Merge commit '
61667dedf55e3e5aa584f7ae2bd0471336b92ce9 ' into sync_cg_clif-2021-09-19
bjorn3 [Sun, 19 Sep 2021 11:53:32 +0000 (13:53 +0200)]
Rustup to rustc 1.57.0-nightly (
aa8f2d432 2021-09-18)
bjorn3 [Sun, 19 Sep 2021 11:43:54 +0000 (13:43 +0200)]
Eduard-Mihai Burtescu [Wed, 1 Sep 2021 21:29:15 +0000 (00:29 +0300)]
Querify `fn_abi_of_{fn_ptr,instance}`.
Eduard-Mihai Burtescu [Wed, 1 Sep 2021 21:09:34 +0000 (00:09 +0300)]
ty::layout: replicate `layout_of` setup for `fn_abi_of_{fn_ptr,instance}`.
Eduard-Mihai Burtescu [Thu, 26 Aug 2021 18:58:34 +0000 (21:58 +0300)]
ty::layout: intern `FnAbi`s as `&'tcx`.
bors [Sun, 12 Sep 2021 23:49:24 +0000 (23:49 +0000)]
Auto merge of #88839 - nbdd0121:alignof, r=nagisa
Introduce NullOp::AlignOf
This PR introduces `Rvalue::NullaryOp(NullOp::AlignOf, ty)`, which will be lowered from `align_of`, similar to `size_of` lowering to `Rvalue::NullaryOp(NullOp::SizeOf, ty)`.
The changes are originally part of #88700 but since it's not dependent on other changes and could have performance impact on its own, it's separated into its own PR.
Gary Guo [Tue, 7 Sep 2021 15:06:07 +0000 (16:06 +0100)]
Introduce NullOp::AlignOf