]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoSlightly reduce the amount of fx.module references
bjorn3 [Sat, 18 Dec 2021 14:33:31 +0000 (15:33 +0100)]
Slightly reduce the amount of fx.module references

2 years agoRevert "Update Cranelift to 0.79.0"
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.

2 years agoUpdate cranelift patch section
bjorn3 [Fri, 17 Dec 2021 09:58:04 +0000 (10:58 +0100)]
Update cranelift patch section

2 years agoUpdate Cranelift to 0.79.0
bjorn3 [Thu, 16 Dec 2021 17:57:25 +0000 (18:57 +0100)]
Update Cranelift to 0.79.0

2 years agoUpdate libc
bjorn3 [Thu, 16 Dec 2021 13:46:43 +0000 (14:46 +0100)]
Update libc

2 years agoRustc tests: ignore a couple more rustdoc tests
bjorn3 [Thu, 16 Dec 2021 13:36:02 +0000 (14:36 +0100)]
Rustc tests: ignore a couple more rustdoc tests

2 years agoRustup to rustc 1.59.0-nightly (c5ecc1570 2021-12-15)
bjorn3 [Thu, 16 Dec 2021 13:10:51 +0000 (14:10 +0100)]
Rustup to rustc 1.59.0-nightly (c5ecc1570 2021-12-15)

2 years agoSync from rust a090c8659c3be0cbc7dc93c4b2c11a9cdbf8b980
bjorn3 [Thu, 16 Dec 2021 12:52:12 +0000 (13:52 +0100)]
Sync from rust a090c8659c3be0cbc7dc93c4b2c11a9cdbf8b980

2 years agoFix unused crate warning
bjorn3 [Thu, 16 Dec 2021 12:51:18 +0000 (13:51 +0100)]
Fix unused crate warning

2 years agoFix crash when struct argument size is not a multiple of the pointer size
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

2 years agoRollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
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/..`.

2 years agoRemove invalid doc links.
Amanieu d'Antras [Mon, 13 Dec 2021 20:40:17 +0000 (20:40 +0000)]
Remove invalid doc links.

2 years agoUse `OutputFilenames` to generate output file for `-Zllvm-time-trace`
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/..`.

2 years agoRustfmt
bjorn3 [Thu, 9 Dec 2021 12:43:32 +0000 (13:43 +0100)]
Rustfmt

2 years agoUse cg_ssa for creating the dylib metadata file
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

2 years agoRustup to rustc 1.59.0-nightly (e6b883c74 2021-12-08)
bjorn3 [Thu, 9 Dec 2021 12:23:10 +0000 (13:23 +0100)]
Rustup to rustc 1.59.0-nightly (e6b883c74 2021-12-08)

2 years agoUse const thread_local!
bjorn3 [Tue, 7 Dec 2021 17:25:27 +0000 (18:25 +0100)]
Use const thread_local!

2 years agoRustup to rustc 1.59.0-nightly (0fb1c371d 2021-12-06)
bjorn3 [Tue, 7 Dec 2021 17:22:44 +0000 (18:22 +0100)]
Rustup to rustc 1.59.0-nightly (0fb1c371d 2021-12-06)

2 years agoSync from rust c5c94945096265b6d675b2f55a247c4799de8d87
bjorn3 [Tue, 7 Dec 2021 16:57:58 +0000 (17:57 +0100)]
Sync from rust c5c94945096265b6d675b2f55a247c4799de8d87

2 years agoUse IntoIterator for array impl everywhere.
Mara Bos [Fri, 3 Sep 2021 10:36:33 +0000 (12:36 +0200)]
Use IntoIterator for array impl everywhere.

2 years agoRemove black box inline asm fallback
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

2 years agocg_cranelift: check may_unwind flag instead of cleanup
cynecx [Sat, 4 Sep 2021 20:14:09 +0000 (22:14 +0200)]
cg_cranelift: check may_unwind flag instead of cleanup

2 years agoLLVM codgen support for unwinding inline assembly
cynecx [Sat, 4 Sep 2021 17:25:09 +0000 (19:25 +0200)]
LLVM codgen support for unwinding inline assembly

2 years agoTest on CI with unstable cg_clif features disabled
bjorn3 [Fri, 3 Dec 2021 12:16:34 +0000 (13:16 +0100)]
Test on CI with unstable cg_clif features disabled

Part of #1084

2 years agoDisable long running libcore tests
bjorn3 [Fri, 3 Dec 2021 11:20:42 +0000 (12:20 +0100)]
Disable long running libcore tests

2 years agoFix vector types containing an array field with mir opts enabled
bjorn3 [Fri, 3 Dec 2021 11:13:41 +0000 (12:13 +0100)]
Fix vector types containing an array field with mir opts enabled

2 years agoRustup to rustc 1.59.0-nightly (48a5999fc 2021-12-01)
bjorn3 [Thu, 2 Dec 2021 15:49:27 +0000 (16:49 +0100)]
Rustup to rustc 1.59.0-nightly (48a5999fc 2021-12-01)

2 years agoEnable artifact uploads for windows builds
bjorn3 [Thu, 2 Dec 2021 12:31:47 +0000 (13:31 +0100)]
Enable artifact uploads for windows builds

Fixes #1210

2 years agoUpdate dependencies
bjorn3 [Wed, 1 Dec 2021 17:36:19 +0000 (18:36 +0100)]
Update dependencies

2 years agoUpdate object
bjorn3 [Wed, 1 Dec 2021 17:34:19 +0000 (18:34 +0100)]
Update object

2 years agofix sparc64 ABI for aggregates with floating point members
Petr Sumbera [Wed, 1 Dec 2021 09:03:45 +0000 (10:03 +0100)]
fix sparc64 ABI for aggregates with floating point members

2 years agoFix rustc tests
bjorn3 [Fri, 26 Nov 2021 16:05:25 +0000 (17:05 +0100)]
Fix rustc tests

2 years agoFix warning
bjorn3 [Fri, 26 Nov 2021 15:21:19 +0000 (16:21 +0100)]
Fix warning

2 years agoRustup to rustc 1.58.0-nightly (dd549dcab 2021-11-25)
bjorn3 [Fri, 26 Nov 2021 15:21:01 +0000 (16:21 +0100)]
Rustup to rustc 1.58.0-nightly (dd549dcab 2021-11-25)

2 years agoEnable unstable-features feature of cg_clif for rust-analyzer
bjorn3 [Fri, 26 Nov 2021 14:33:56 +0000 (15:33 +0100)]
Enable unstable-features feature of cg_clif for rust-analyzer

2 years agoEnsure inline asm wrapper name never starts with a digit
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

2 years agoInclude NOTYPE symbols in the archive symbol table
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

2 years agoUse cgu name instead of function name as base for inline asm wrapper name
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

2 years agoVersion the prebuilt libstd again
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

2 years agoMerge pull request #1206 from nbdd0121/master
bjorn3 [Mon, 22 Nov 2021 17:50:12 +0000 (18:50 +0100)]
Merge pull request #1206 from nbdd0121/master

Improve inline asm support

2 years agoFix allocated reg in AT&T style asm
Gary Guo [Mon, 22 Nov 2021 17:01:43 +0000 (17:01 +0000)]
Fix allocated reg in AT&T style asm

2 years agoAdd RISC-V inline asm support
Gary Guo [Mon, 22 Nov 2021 03:15:02 +0000 (03:15 +0000)]
Add RISC-V inline asm support

2 years agoDispatch inline asm to the correct arch
Gary Guo [Mon, 22 Nov 2021 03:01:42 +0000 (03:01 +0000)]
Dispatch inline asm to the correct arch

2 years agox86 inline asm support
Gary Guo [Mon, 22 Nov 2021 02:58:53 +0000 (02:58 +0000)]
x86 inline asm support

2 years agoSkeleton for multiple arch support
Gary Guo [Mon, 22 Nov 2021 02:56:56 +0000 (02:56 +0000)]
Skeleton for multiple arch support

2 years agoOverlap input and output stack slots
Gary Guo [Mon, 22 Nov 2021 02:50:09 +0000 (02:50 +0000)]
Overlap input and output stack slots

2 years agoSkip registers saved by calling convention
Gary Guo [Mon, 22 Nov 2021 02:38:50 +0000 (02:38 +0000)]
Skip registers saved by calling convention

2 years agoCode cleanup as a follow up to the previous commit
Gary Guo [Mon, 22 Nov 2021 02:28:16 +0000 (02:28 +0000)]
Code cleanup as a follow up to the previous commit

2 years agoMove stack slot allocation to a new fn
Gary Guo [Mon, 22 Nov 2021 02:05:56 +0000 (02:05 +0000)]
Move stack slot allocation to a new fn

2 years agoRemove expect_reg
Gary Guo [Mon, 22 Nov 2021 01:48:22 +0000 (01:48 +0000)]
Remove expect_reg

2 years agoImplement register allocation for inline assembly
Gary Guo [Mon, 22 Nov 2021 01:44:32 +0000 (01:44 +0000)]
Implement register allocation for inline assembly

2 years agoUpdate to latest portable-simd version
bjorn3 [Thu, 18 Nov 2021 18:30:28 +0000 (19:30 +0100)]
Update to latest portable-simd version

2 years agoImplement simd_reduce_{min,max} for floats
bjorn3 [Thu, 18 Nov 2021 18:27:49 +0000 (19:27 +0100)]
Implement simd_reduce_{min,max} for floats

2 years agoImplement new simd_shuffle signature
bjorn3 [Thu, 18 Nov 2021 18:27:32 +0000 (19:27 +0100)]
Implement new simd_shuffle signature

2 years agoRustup to rustc 1.58.0-nightly (d914f17ca 2021-11-16)
bjorn3 [Wed, 17 Nov 2021 20:01:35 +0000 (21:01 +0100)]
Rustup to rustc 1.58.0-nightly (d914f17ca 2021-11-16)

2 years agoUse crates.io releases of Cranelift
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.

2 years agoRevert libc update
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

2 years agoDisable rustc test requiring rustdoc
bjorn3 [Wed, 27 Oct 2021 12:37:57 +0000 (14:37 +0200)]
Disable rustc test requiring rustdoc

2 years agoRustup to rustc 1.58.0-nightly (e269e6bf4 2021-10-26)
bjorn3 [Wed, 27 Oct 2021 12:17:26 +0000 (14:17 +0200)]
Rustup to rustc 1.58.0-nightly (e269e6bf4 2021-10-26)

2 years agoSync from rust 47aeac648ed56095688c1c20972c9b72bd0da7ce
bjorn3 [Wed, 27 Oct 2021 12:05:12 +0000 (14:05 +0200)]
Sync from rust 47aeac648ed56095688c1c20972c9b72bd0da7ce

2 years agoRemove unncesessary TryFrom and TryInto impls
bjorn3 [Thu, 21 Oct 2021 18:18:01 +0000 (20:18 +0200)]
Remove unncesessary TryFrom and TryInto impls

2 years agoUpdate Cranelift and object
bjorn3 [Thu, 21 Oct 2021 13:19:38 +0000 (15:19 +0200)]
Update Cranelift and object

2 years agoMake hash_result an Option.
Camille GILLOT [Sat, 16 Oct 2021 20:31:48 +0000 (22:31 +0200)]
Make hash_result an Option.

2 years agoRemove unnecessary Lazy
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

2 years agoDisable a failing test
bjorn3 [Sun, 17 Oct 2021 15:05:00 +0000 (17:05 +0200)]
Disable a failing test

2 years agoRe-enable incremental compilation for the sysroot
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

2 years agoRemove alloc::prelude
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

2 years agoUpdate Cranelift
bjorn3 [Wed, 13 Oct 2021 14:59:59 +0000 (16:59 +0200)]
Update Cranelift

2 years agoUpdate Cranelift
bjorn3 [Tue, 12 Oct 2021 12:47:57 +0000 (14:47 +0200)]
Update Cranelift

2 years agoAdd const_eval_select intrinsic
Deadbeef [Tue, 12 Oct 2021 05:06:37 +0000 (05:06 +0000)]
Add const_eval_select intrinsic

2 years agoRustup to rustc 1.57.0-nightly (54bb4fec6 2021-10-08)
bjorn3 [Sat, 9 Oct 2021 13:16:19 +0000 (15:16 +0200)]
Rustup to rustc 1.57.0-nightly (54bb4fec6 2021-10-08)

2 years agoSync from rust bb918d0a5bf22211df0423f7474e4e4056978007
bjorn3 [Sat, 9 Oct 2021 13:02:14 +0000 (15:02 +0200)]
Sync from rust bb918d0a5bf22211df0423f7474e4e4056978007

2 years agoAuto merge of #89619 - michaelwoerister:incr-vtables, r=nagisa
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.

2 years agoTurn tcx.vtable_allocation() into a query.
Michael Woerister [Thu, 7 Oct 2021 09:29:01 +0000 (11:29 +0200)]
Turn tcx.vtable_allocation() into a query.

2 years agoMove rustc_middle::middle::cstore to rustc_session.
Camille GILLOT [Sat, 14 Nov 2020 02:02:03 +0000 (03:02 +0100)]
Move rustc_middle::middle::cstore to rustc_session.

2 years agoRustfmt
bjorn3 [Sat, 2 Oct 2021 12:51:08 +0000 (14:51 +0200)]
Rustfmt

2 years agoRustup to rustc 1.57.0-nightly (c02371c44 2021-10-01)
bjorn3 [Sat, 2 Oct 2021 12:50:15 +0000 (14:50 +0200)]
Rustup to rustc 1.57.0-nightly (c02371c44 2021-10-01)

2 years agoSync from rust a8387aef8c378a771686878062e544af4d5e2245
bjorn3 [Sat, 2 Oct 2021 12:42:18 +0000 (14:42 +0200)]
Sync from rust a8387aef8c378a771686878062e544af4d5e2245

2 years agoUpdate Cranelift
bjorn3 [Fri, 1 Oct 2021 13:37:48 +0000 (15:37 +0200)]
Update Cranelift

This version no longer has the old x86 backend

2 years agoUpdate compiler/rustc_codegen_cranelift/scripts/filter_profile.rs
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>
2 years agoMove EncodedMetadata to rustc_metadata.
Camille GILLOT [Fri, 24 Sep 2021 16:15:36 +0000 (18:15 +0200)]
Move EncodedMetadata to rustc_metadata.

2 years agoMove encode_metadata out of CrateStore.
Camille GILLOT [Sat, 14 Nov 2020 00:59:00 +0000 (01:59 +0100)]
Move encode_metadata out of CrateStore.

2 years agoUpdate dependencies
bjorn3 [Thu, 30 Sep 2021 13:22:19 +0000 (15:22 +0200)]
Update dependencies

2 years agoUpdate Cranelift
bjorn3 [Thu, 30 Sep 2021 13:17:43 +0000 (15:17 +0200)]
Update Cranelift

2 years agoFix unused import warning
bjorn3 [Mon, 27 Sep 2021 09:20:04 +0000 (11:20 +0200)]
Fix unused import warning

TryInto is part of the 2021 edition prelude

2 years agoRustup to rustc 1.57.0-nightly (05044c2e6 2021-09-26)
bjorn3 [Mon, 27 Sep 2021 09:17:24 +0000 (11:17 +0200)]
Rustup to rustc 1.57.0-nightly (05044c2e6 2021-09-26)

2 years agoSync from rust 04006d8e3b5043131ec56a5f3605b1edcb33194d
bjorn3 [Mon, 27 Sep 2021 09:11:18 +0000 (11:11 +0200)]
Sync from rust 04006d8e3b5043131ec56a5f3605b1edcb33194d

2 years agoAuto merge of #89092 - bjorn3:sync_cg_clif-2021-09-19, r=bjorn3
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

2 years agoIntroduce `Rvalue::ShallowInitBox`
Gary Guo [Mon, 6 Sep 2021 17:33:23 +0000 (18:33 +0100)]
Introduce `Rvalue::ShallowInitBox`

2 years agoMigrate to 2021
Mark Rousskov [Sun, 19 Sep 2021 16:49:55 +0000 (12:49 -0400)]
Migrate to 2021

2 years agoAdjust to SourceType::InTree in several places
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.

2 years agoMerge branch 'sync_from_rust'
bjorn3 [Sun, 19 Sep 2021 11:58:19 +0000 (13:58 +0200)]
Merge branch 'sync_from_rust'

2 years agoMerge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
bjorn3 [Sun, 19 Sep 2021 11:56:58 +0000 (13:56 +0200)]
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19

2 years agoRustup to rustc 1.57.0-nightly (aa8f2d432 2021-09-18)
bjorn3 [Sun, 19 Sep 2021 11:53:32 +0000 (13:53 +0200)]
Rustup to rustc 1.57.0-nightly (aa8f2d432 2021-09-18)

2 years agoSync from rust 7a3d1a5f3dfeaf5177885fedd7db8ecc70670dc1
bjorn3 [Sun, 19 Sep 2021 11:43:54 +0000 (13:43 +0200)]
Sync from rust 7a3d1a5f3dfeaf5177885fedd7db8ecc70670dc1

2 years agoQuerify `fn_abi_of_{fn_ptr,instance}`.
Eduard-Mihai Burtescu [Wed, 1 Sep 2021 21:29:15 +0000 (00:29 +0300)]
Querify `fn_abi_of_{fn_ptr,instance}`.

2 years agoty::layout: replicate `layout_of` setup for `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}`.

2 years agoty::layout: intern `FnAbi`s as `&'tcx`.
Eduard-Mihai Burtescu [Thu, 26 Aug 2021 18:58:34 +0000 (21:58 +0300)]
ty::layout: intern `FnAbi`s as `&'tcx`.

2 years agoAuto merge of #88839 - nbdd0121:alignof, r=nagisa
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.

2 years agoIntroduce NullOp::AlignOf
Gary Guo [Tue, 7 Sep 2021 15:06:07 +0000 (16:06 +0100)]
Introduce NullOp::AlignOf