Commit Graph

3523 Commits

Author SHA1 Message Date
bjorn3
ef1cb95687 Rustup to rustc 1.68.0-nightly (c6fcdb690 2022-12-10) 2022-12-11 11:10:14 +01:00
bjorn3
8f9a048138 Sync from rust b3ddfeb5a8 2022-12-11 11:05:00 +01:00
Jules Bertholet
20d6292596 Use rint instead of roundeven
Use rint intrinsic instead of roundeven to impement `round_ties_even`. They do the same thing when rounding mode is default, which Rust assumes.
And `rint` has better platform support.

Keeps `roundeven` around in `core::intrinsics`, it's doing no harm there.
2022-12-11 01:20:18 -05:00
Jules Bertholet
36cd4fab22 Add round_ties_even to f32 and f64 2022-12-11 01:20:17 -05:00
Jakob Degen
34336b8d94 Remove unneeded field from SwitchTargets 2022-12-09 04:53:10 -08:00
bjorn3
63fab514db Rustup to rustc 1.67.0-nightly (234151769 2022-12-03) 2022-12-04 10:33:32 +01:00
bjorn3
b8a3c2dd30 Sync from rust fd02567705 2022-12-04 10:26:24 +01:00
Afonso Bordado
e12a882a67
S390X CI Support (#1304) 2022-12-04 00:23:01 +01:00
bors
f1dc349c4b Auto merge of #97485 - bjorn3:new_archive_writer, r=wesleywiser
Rewrite LLVM's archive writer in Rust

This allows it to be used by other codegen backends.

Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1155
2022-12-03 15:07:39 +00:00
bjorn3
f845eafc2f Switch Linux runner to ubuntu-20.04 to unbreak CI
Earlier today CI started to fail on Linux with a crash during the
jit mode. Turns out ubuntu-latest switched from ubuntu-20.04 to
ubuntu-22.04. Let's switch back to ubuntu-20.04 for now to unbreak
CI until I figured out the root cause.

cc #1303
2022-12-02 21:57:04 +01:00
bjorn3
04eaaa043d Fix crash with TAIT in the call codegen code
The new logic is closer to what cg_llvm does.

Fixes #1240
2022-12-02 12:44:14 +00:00
bjorn3
f73b0b1349
Merge pull request #1302 from bjorn3/build_system_rework4
Allow specifying where build artifacts should be written to
2022-12-01 21:03:01 +01:00
bjorn3
b6ac5a3ceb Allow specifying where build artifacts should be written to 2022-12-01 19:00:32 +00:00
bjorn3
702a293776 Fix build dir caching 2022-12-01 19:00:32 +00:00
bjorn3
d7b02c307d Fix installing hyperfine 2022-12-01 19:00:32 +00:00
bjorn3
82b2d8e418 Introduce Dirs type to avoid hard coding src and dest locations 2022-12-01 19:00:32 +00:00
bjorn3
4529979330 Introduce RelPath 2022-12-01 19:00:32 +00:00
bjorn3
e75dfef4d4 Put all temporary build artifacts in build/ 2022-12-01 19:00:32 +00:00
bjorn3
5e97a3951d Make sure the target dir is always explicitly set when using cargo 2022-12-01 19:00:32 +00:00
bjorn3
450257c4c6
Merge pull request #1295 from bjorn3/update_cranelift
Update Cranelift to 0.90.0
2022-12-01 19:59:17 +01:00
bjorn3
a54a3775c9 Update Cranelift to 0.90.1
This fixes building on FreeBSD
2022-12-01 17:46:48 +00:00
bjorn3
202bdc1ceb Update Cranelift to 0.90.0 2022-12-01 17:45:59 +00:00
bjorn3
155f569794 Update cranelift to the upcoming release-3.0.0 branch 2022-12-01 17:45:59 +00:00
bjorn3
3df425e11e bswap.i128 is now supported 2022-12-01 17:45:59 +00:00
bjorn3
83dc7d1a12 Fix for removal of raw_bitcast 2022-12-01 17:45:59 +00:00
bjorn3
ae98a2f570 Simplify some code based on newly implemented instructions 2022-12-01 17:45:59 +00:00
bjorn3
e9115eb647 Use git version of Cranelift 2022-12-01 17:45:59 +00:00
bjorn3
777106a581 Fix warning 2022-12-01 17:45:59 +00:00
bjorn3
16a2641444 Remove all usages of iconst.i128
Support was removed from Cranelift
2022-12-01 17:45:59 +00:00
bjorn3
6768d0dd72 Booleans have been removed from Cranelift 2022-12-01 17:45:59 +00:00
bjorn3
3cf8994780 Ignore out-of-stack test
cc #1301
2022-12-01 15:40:52 +01:00
bjorn3
70ba23b109
Merge pull request #1300 from bjorn3/rename_build_to_dist
Rename the build/ directory to dist/
2022-11-29 12:20:09 +01:00
bjorn3
9c21990283 Rename target_dir to dist_dir in a couple of places 2022-11-28 15:02:08 +00:00
bjorn3
052d5ccf5d Implement __isb for AArch64
This is necessary for the mutex implementation of libstd when there is
contention. Seems like I hadn't hit this before by sheer luck.
2022-11-28 13:03:47 +00:00
bjorn3
26d48c9a37 Rename the build/ directory to dist/
This will allow putting all temporary build artifacts in build/ in the
future, keeping all the build output artifacts in dist/
2022-11-28 13:01:49 +00:00
bjorn3
a00c7a01da
Merge pull request #1298 from bjorn3/build_system_rework3
Introduce CargoProject type and use it where possible
2022-11-27 20:30:47 +01:00
bjorn3
f99140eb94
Merge pull request #1297 from bjorn3/aarch64_simd
Implement some AArch64 SIMD intrinsics
2022-11-27 20:30:24 +01:00
bjorn3
cdae9bab58 Introduce CargoProject type and use it where possible 2022-11-27 18:53:00 +00:00
bjorn3
f851dfacfe Rustfmt 2022-11-27 18:34:07 +00:00
bjorn3
75838d9e8b Implement more llvm simd intrinsics for AArch64 2022-11-27 18:32:29 +00:00
bjorn3
1367983198 Begin implementing llvm simd intrinsics for aarch64 2022-11-27 18:09:57 +00:00
bjorn3
ef6400d6be Split x86 specific intrinsics into intrinsics/llvm_x86.rs 2022-11-27 17:17:47 +00:00
Maybe Waffle
a085a2ad2d Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
bjorn3
5399526aee Rewrite LLVM's archive writer in Rust
This allows it to be used by other codegen backends
2022-11-26 19:35:32 +00:00
Guillaume Gomez
69a7692c91 Rollup merge of #104786 - WaffleLapkin:amp-mut-help, r=compiler-errors
Use the power of adding helper function to simplify code w/ `Mutability`

r? `@compiler-errors`
2022-11-26 17:47:23 +01:00
bors
982798faa7 Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiser
Use `as_deref` in compiler (but only where it makes sense)

This simplifies some code :3

(there are some changes that are not exacly `as_deref`, but more like "clever `Option`/`Result` method use")
2022-11-24 00:17:35 +00:00
Maybe Waffle
bcee07e78d Add Mutability::{is_mut,is_not} 2022-11-23 20:26:31 +00:00
bjorn3
24ebf425ae Update rustc test suite failure list 2022-11-22 19:29:06 +00:00
bjorn3
d30c1ddce7 Rustup to rustc 1.67.0-nightly (b7bc90fea 2022-11-21) 2022-11-22 19:29:36 +01:00
bjorn3
d23eb65ea0 Sync from rust 66ccf36f16 2022-11-22 19:21:05 +01:00