Commit Graph

2475 Commits

Author SHA1 Message Date
Gary Guo 042eb37837 Implement register allocation for inline assembly 2021-11-22 01:45:58 +00:00
bjorn3 fd87c6dab9 Update to latest portable-simd version 2021-11-18 19:30:28 +01:00
bjorn3 d288c6924d Implement simd_reduce_{min,max} for floats 2021-11-18 19:27:49 +01:00
bjorn3 a8be7ea503 Implement new simd_shuffle signature 2021-11-18 19:27:32 +01:00
bjorn3 da83c84103 Rustup to rustc 1.58.0-nightly (d914f17ca 2021-11-16) 2021-11-17 21:01:35 +01:00
bjorn3 977e884acf 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.
2021-10-29 16:22:47 +02:00
bjorn3 7ee78417d0 Revert libc update
It causes the macOS CI to fail. See rust-lang/libc#2484
2021-10-27 16:44:53 +02:00
bjorn3 0bd4706e38 Disable rustc test requiring rustdoc 2021-10-27 14:37:57 +02:00
bjorn3 fc8fbf4099 Rustup to rustc 1.58.0-nightly (e269e6bf4 2021-10-26) 2021-10-27 14:17:26 +02:00
bjorn3 bf907a3de1 Sync from rust 47aeac648e 2021-10-27 14:05:12 +02:00
bjorn3 1ceda5bb7e Remove unncesessary TryFrom and TryInto impls 2021-10-21 20:18:01 +02:00
bjorn3 adabc2ccda Update Cranelift and object 2021-10-21 15:20:40 +02:00
Camille GILLOT 7879119e6a Make hash_result an Option. 2021-10-20 18:29:18 +02:00
bjorn3 8ed0d0d980 Remove unnecessary Lazy
Found by m-ou-se in https://github.com/bjorn3/rustc_codegen_cranelift/pull/1166#discussion_r730468919
2021-10-17 22:44:08 +02:00
bjorn3 3aae6fb494 Disable a failing test 2021-10-17 17:05:00 +02:00
bjorn3 1e5569d62c Re-enable incremental compilation for the sysroot
rust-lang/rust#74946 for fixed
2021-10-17 15:29:57 +02:00
Amanieu d'Antras 44cce7a4c8 Remove alloc::prelude
As per the libs team decision in #58935.

Closes #58935
2021-10-15 01:41:31 +02:00
bjorn3 2bb3f767e5 Update Cranelift 2021-10-13 16:59:59 +02:00
bjorn3 b2fed29e1a Update Cranelift 2021-10-12 14:47:57 +02:00
Deadbeef 0134088cd2 Add const_eval_select intrinsic 2021-10-12 05:42:23 +00:00
bjorn3 d195107514 Rustup to rustc 1.57.0-nightly (54bb4fec6 2021-10-08) 2021-10-09 15:16:19 +02:00
bjorn3 376dd765d4 Sync from rust bb918d0a5b 2021-10-09 15:02:14 +02:00
bors 2228c49544 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.
2021-10-08 09:04:06 +00:00
Michael Woerister 095064b996 Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00
Camille GILLOT 03c02be0a7 Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
bjorn3 dbeafcc254 Rustfmt 2021-10-02 14:51:08 +02:00
bjorn3 0887a2ed76 Rustup to rustc 1.57.0-nightly (c02371c44 2021-10-01) 2021-10-02 14:50:15 +02:00
bjorn3 d76afa705b Sync from rust a8387aef8c 2021-10-02 14:42:18 +02:00
bjorn3 eded369086 Update Cranelift
This version no longer has the old x86 backend
2021-10-01 15:37:48 +02:00
Camille Gillot 881208f268 Update compiler/rustc_codegen_cranelift/scripts/filter_profile.rs
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2021-09-30 19:41:32 +02:00
Camille GILLOT 04f3839596 Move EncodedMetadata to rustc_metadata. 2021-09-30 19:41:32 +02:00
Camille GILLOT 745dee9d3e Move encode_metadata out of CrateStore. 2021-09-30 19:41:31 +02:00
bjorn3 bc61fb263d Update dependencies 2021-09-30 15:22:19 +02:00
bjorn3 166ff1332f Update Cranelift 2021-09-30 15:17:43 +02:00
bjorn3 adc2793e7d Fix unused import warning
TryInto is part of the 2021 edition prelude
2021-09-27 11:20:04 +02:00
bjorn3 9e48f99e8d Rustup to rustc 1.57.0-nightly (05044c2e6 2021-09-26) 2021-09-27 11:17:24 +02:00
bjorn3 89fedb1e4d Sync from rust 04006d8e3b 2021-09-27 11:11:18 +02:00
bors 500e22e340 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
2021-09-26 23:31:01 +00:00
Gary Guo 1b34e2d678 Introduce `Rvalue::ShallowInitBox` 2021-09-25 01:08:41 +01:00
Mark Rousskov 208fc4254b Migrate to 2021 2021-09-20 22:21:42 -04:00
Mark Rousskov 29e08971ce 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.
2021-09-20 08:45:39 -04:00
bjorn3 5599473084 Merge branch 'sync_from_rust' 2021-09-19 13:58:19 +02:00
bjorn3 5d3b8e7c1b Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19 2021-09-19 13:56:58 +02:00
bjorn3 61667dedf5 Rustup to rustc 1.57.0-nightly (aa8f2d432 2021-09-18) 2021-09-19 13:53:32 +02:00
bjorn3 f12c51f149 Sync from rust 7a3d1a5f3d 2021-09-19 13:43:54 +02:00
Eduard-Mihai Burtescu e857fabac1 Querify `fn_abi_of_{fn_ptr,instance}`. 2021-09-18 04:41:33 +03:00
Eduard-Mihai Burtescu 849b4c4483 ty::layout: replicate `layout_of` setup for `fn_abi_of_{fn_ptr,instance}`. 2021-09-18 04:41:29 +03:00
Eduard-Mihai Burtescu 1b8e830f6d ty::layout: intern `FnAbi`s as `&'tcx`. 2021-09-18 01:42:45 +03:00
bors 02d3c132ae 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.
2021-09-12 23:49:24 +00:00
Gary Guo 4ac4980b33 Introduce NullOp::AlignOf 2021-09-13 00:08:35 +01:00