Commit Graph

2394 Commits

Author SHA1 Message Date
bjorn3
a65a523d80 Fix rustc tests 2021-11-26 17:05:25 +01:00
bjorn3
c989324672 Fix warning 2021-11-26 16:21:19 +01:00
bjorn3
7b894092c7 Rustup to rustc 1.58.0-nightly (dd549dcab 2021-11-25) 2021-11-26 16:21:01 +01:00
bjorn3
c6c2f458df Enable unstable-features feature of cg_clif for rust-analyzer 2021-11-26 15:33:56 +01:00
bjorn3
efdbd88a74 Ensure inline asm wrapper name never starts with a digit
This could previously happen if the cgu name starts with a digit
2021-11-25 11:43:18 +01:00
bjorn3
8714be0ad3 Include NOTYPE symbols in the archive symbol table
This is necessary for blog os
2021-11-24 20:35:57 +01:00
bjorn3
1222192374 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
2021-11-24 19:18:22 +01:00
bjorn3
dfbc7eb6c7 Version the prebuilt libstd again
__CARGO_DEFAULT_LIB_METADATA got lost in the rewrite of the build system
from bash to rust
2021-11-23 14:25:28 +01:00
bjorn3
a49c6b8a57
Merge pull request #1206 from nbdd0121/master
Improve inline asm support
2021-11-22 18:50:12 +01:00
Gary Guo
5f0c6e5539 Fix allocated reg in AT&T style asm 2021-11-22 17:01:43 +00:00
Gary Guo
f9534a9bc9 Add RISC-V inline asm support 2021-11-22 16:28:14 +00:00
Gary Guo
31e7fa54a0 Dispatch inline asm to the correct arch 2021-11-22 16:28:14 +00:00
Gary Guo
cfdf10b259 x86 inline asm support 2021-11-22 16:28:14 +00:00
Gary Guo
eaf88c5b52 Skeleton for multiple arch support 2021-11-22 13:45:18 +00:00
Gary Guo
fe3ba31860 Overlap input and output stack slots 2021-11-22 13:45:18 +00:00
Gary Guo
14aa039d30 Skip registers saved by calling convention 2021-11-22 13:45:17 +00:00
Gary Guo
703027f0fc Code cleanup as a follow up to the previous commit 2021-11-22 03:15:12 +00:00
Gary Guo
894468a537 Move stack slot allocation to a new fn 2021-11-22 03:15:12 +00:00
Gary Guo
f16d27aca4 Remove expect_reg 2021-11-22 01:48:22 +00:00
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