]>
git.lizzy.rs Git - rust.git/log
bjorn3 [Thu, 15 Dec 2022 17:30:18 +0000 (17:30 +0000)]
Start running regex-shootout-regex-dna on Windows again
bjorn3 [Thu, 15 Dec 2022 14:16:39 +0000 (14:16 +0000)]
Fix running simple-raytracer benchmark on Windows
bjorn3 [Thu, 15 Dec 2022 15:09:17 +0000 (15:09 +0000)]
Fix some build steps on Windows
bjorn3 [Thu, 15 Dec 2022 14:12:46 +0000 (14:12 +0000)]
Move many env vars from CI configuration to the build system
bjorn3 [Thu, 15 Dec 2022 13:59:29 +0000 (13:59 +0000)]
Run verifier checks during rustc tests too
Fixes #1219
bjorn3 [Thu, 15 Dec 2022 13:57:13 +0000 (13:57 +0000)]
Add .comment section with producer name
Fixes #1211
bjorn3 [Thu, 15 Dec 2022 12:22:57 +0000 (12:22 +0000)]
Update actions/upload-artifact to v3
v2 depends on Node.js 12 which will be removed from GHA in the near future
bjorn3 [Thu, 15 Dec 2022 12:20:39 +0000 (12:20 +0000)]
Update not yet supported section of the readme
bjorn3 [Thu, 15 Dec 2022 12:09:37 +0000 (13:09 +0100)]
Implement simd_gather and simd_scatter (#1309)
These are the last remaining platform intrinsics necessary for portable-simd.
bjorn3 [Thu, 15 Dec 2022 11:41:06 +0000 (11:41 +0000)]
Set RUSTDOCFLAGS again
Was accidentally removed in
808cba2
bjorn3 [Thu, 15 Dec 2022 11:09:45 +0000 (11:09 +0000)]
bjorn3 [Thu, 15 Dec 2022 10:28:53 +0000 (10:28 +0000)]
Extract Compiler creation from tests.rs
bjorn3 [Wed, 14 Dec 2022 18:40:44 +0000 (19:40 +0100)]
Merge branch 'sync_from_rust'
bjorn3 [Wed, 14 Dec 2022 18:30:46 +0000 (19:30 +0100)]
Merge commit '
2bb3996244cf1b89878da9e39841e9f6bf061602 ' into sync_cg_clif-2022-12-14
bjorn3 [Wed, 14 Dec 2022 15:23:24 +0000 (15:23 +0000)]
Remove unnecessary git init
bjorn3 [Wed, 14 Dec 2022 15:21:18 +0000 (15:21 +0000)]
Explicitly provide dummy git author name and email
This avoids the need to tell git beforehand about your name and email
bjorn3 [Wed, 14 Dec 2022 12:25:53 +0000 (12:25 +0000)]
Remove a couple of module.isa() calls
bjorn3 [Tue, 13 Dec 2022 17:23:52 +0000 (18:23 +0100)]
Rustup to rustc 1.68.0-nightly (
37d7de337 2022-12-12)
bjorn3 [Tue, 13 Dec 2022 17:18:47 +0000 (18:18 +0100)]
Michael Goulet [Sun, 11 Dec 2022 19:46:58 +0000 (19:46 +0000)]
bug! with a better error message for failing Instance::resolve
bjorn3 [Sun, 11 Dec 2022 12:44:41 +0000 (12:44 +0000)]
Update dependencies
bjorn3 [Sun, 11 Dec 2022 10:56:34 +0000 (10:56 +0000)]
Update rustc test suite failure list
bjorn3 [Sat, 10 Dec 2022 16:26:40 +0000 (17:26 +0100)]
Fix for "Support Option and similar enums as type of static variable with linkage attribute"
cc rust-lang/rust#104799
bjorn3 [Sun, 11 Dec 2022 10:10:14 +0000 (11:10 +0100)]
Rustup to rustc 1.68.0-nightly (
c6fcdb690 2022-12-10)
bjorn3 [Sun, 11 Dec 2022 10:05:00 +0000 (11:05 +0100)]
Jakob Degen [Sun, 4 Dec 2022 00:03:27 +0000 (16:03 -0800)]
Remove unneeded field from `SwitchTargets`
bjorn3 [Sun, 4 Dec 2022 09:33:32 +0000 (10:33 +0100)]
Rustup to rustc 1.67.0-nightly (
234151769 2022-12-03)
bjorn3 [Sun, 4 Dec 2022 09:26:24 +0000 (10:26 +0100)]
Afonso Bordado [Sat, 3 Dec 2022 23:23:01 +0000 (23:23 +0000)]
S390X CI Support (#1304)
bors [Sat, 3 Dec 2022 15:07:39 +0000 (15:07 +0000)]
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
bjorn3 [Fri, 2 Dec 2022 20:57:04 +0000 (21:57 +0100)]
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
bjorn3 [Fri, 2 Dec 2022 12:44:14 +0000 (12:44 +0000)]
Fix crash with TAIT in the call codegen code
The new logic is closer to what cg_llvm does.
Fixes #1240
bjorn3 [Thu, 1 Dec 2022 20:03:01 +0000 (21:03 +0100)]
Merge pull request #1302 from bjorn3/build_system_rework4
Allow specifying where build artifacts should be written to
bjorn3 [Thu, 1 Dec 2022 17:42:29 +0000 (17:42 +0000)]
Allow specifying where build artifacts should be written to
bjorn3 [Thu, 1 Dec 2022 15:49:34 +0000 (15:49 +0000)]
Fix build dir caching
bjorn3 [Thu, 1 Dec 2022 15:24:45 +0000 (15:24 +0000)]
Fix installing hyperfine
bjorn3 [Thu, 1 Dec 2022 14:54:37 +0000 (14:54 +0000)]
Introduce Dirs type to avoid hard coding src and dest locations
bjorn3 [Thu, 1 Dec 2022 13:30:03 +0000 (13:30 +0000)]
Introduce RelPath
bjorn3 [Mon, 28 Nov 2022 17:37:30 +0000 (17:37 +0000)]
Put all temporary build artifacts in build/
bjorn3 [Mon, 28 Nov 2022 15:15:40 +0000 (15:15 +0000)]
Make sure the target dir is always explicitly set when using cargo
bjorn3 [Thu, 1 Dec 2022 18:59:17 +0000 (19:59 +0100)]
Merge pull request #1295 from bjorn3/update_cranelift
Update Cranelift to 0.90.0
bjorn3 [Thu, 1 Dec 2022 17:46:48 +0000 (17:46 +0000)]
Update Cranelift to 0.90.1
This fixes building on FreeBSD
bjorn3 [Mon, 21 Nov 2022 19:11:18 +0000 (19:11 +0000)]
Update Cranelift to 0.90.0
bjorn3 [Thu, 10 Nov 2022 10:47:43 +0000 (10:47 +0000)]
Update cranelift to the upcoming release-3.0.0 branch
bjorn3 [Thu, 3 Nov 2022 18:10:28 +0000 (18:10 +0000)]
bswap.i128 is now supported
bjorn3 [Thu, 3 Nov 2022 18:10:12 +0000 (18:10 +0000)]
Fix for removal of raw_bitcast
bjorn3 [Wed, 2 Nov 2022 15:03:43 +0000 (15:03 +0000)]
Simplify some code based on newly implemented instructions
bjorn3 [Tue, 25 Oct 2022 17:20:30 +0000 (17:20 +0000)]
Use git version of Cranelift
bjorn3 [Tue, 25 Oct 2022 17:18:25 +0000 (17:18 +0000)]
Fix warning
bjorn3 [Tue, 25 Oct 2022 17:18:19 +0000 (17:18 +0000)]
Remove all usages of iconst.i128
Support was removed from Cranelift
bjorn3 [Tue, 25 Oct 2022 17:13:33 +0000 (17:13 +0000)]
Booleans have been removed from Cranelift
bjorn3 [Thu, 1 Dec 2022 14:40:48 +0000 (15:40 +0100)]
Ignore out-of-stack test
cc #1301
bjorn3 [Tue, 29 Nov 2022 11:20:09 +0000 (12:20 +0100)]
Merge pull request #1300 from bjorn3/rename_build_to_dist
Rename the build/ directory to dist/
bjorn3 [Mon, 28 Nov 2022 15:02:08 +0000 (15:02 +0000)]
Rename target_dir to dist_dir in a couple of places
bjorn3 [Mon, 28 Nov 2022 13:03:47 +0000 (13:03 +0000)]
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.
bjorn3 [Mon, 28 Nov 2022 13:01:49 +0000 (13:01 +0000)]
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/
bjorn3 [Sun, 27 Nov 2022 19:30:47 +0000 (20:30 +0100)]
Merge pull request #1298 from bjorn3/build_system_rework3
Introduce CargoProject type and use it where possible
bjorn3 [Sun, 27 Nov 2022 19:30:24 +0000 (20:30 +0100)]
Merge pull request #1297 from bjorn3/aarch64_simd
Implement some AArch64 SIMD intrinsics
bjorn3 [Wed, 26 Oct 2022 14:51:03 +0000 (14:51 +0000)]
Introduce CargoProject type and use it where possible
bjorn3 [Sun, 27 Nov 2022 18:34:07 +0000 (18:34 +0000)]
Rustfmt
bjorn3 [Sun, 27 Nov 2022 18:32:29 +0000 (18:32 +0000)]
Implement more llvm simd intrinsics for AArch64
bjorn3 [Sun, 27 Nov 2022 18:09:57 +0000 (18:09 +0000)]
Begin implementing llvm simd intrinsics for aarch64
bjorn3 [Sun, 27 Nov 2022 17:17:47 +0000 (17:17 +0000)]
Split x86 specific intrinsics into intrinsics/llvm_x86.rs
Maybe Waffle [Sun, 27 Nov 2022 11:15:06 +0000 (11:15 +0000)]
Prefer doc comments over `//`-comments in compiler
bjorn3 [Sat, 28 May 2022 10:43:51 +0000 (10:43 +0000)]
Rewrite LLVM's archive writer in Rust
This allows it to be used by other codegen backends
Guillaume Gomez [Sat, 26 Nov 2022 16:47:23 +0000 (17:47 +0100)]
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`
bors [Thu, 24 Nov 2022 00:17:35 +0000 (00:17 +0000)]
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")
Maybe Waffle [Wed, 23 Nov 2022 18:22:51 +0000 (18:22 +0000)]
Add `Mutability::{is_mut,is_not}`
bjorn3 [Tue, 22 Nov 2022 19:29:06 +0000 (19:29 +0000)]
Update rustc test suite failure list
bjorn3 [Tue, 22 Nov 2022 18:29:36 +0000 (19:29 +0100)]
Rustup to rustc 1.67.0-nightly (
b7bc90fea 2022-11-21)
bjorn3 [Tue, 22 Nov 2022 18:21:05 +0000 (19:21 +0100)]
bjorn3 [Mon, 21 Nov 2022 17:00:28 +0000 (17:00 +0000)]
Rustfmt
bjorn3 [Mon, 21 Nov 2022 16:29:09 +0000 (16:29 +0000)]
Fix discriminant handling
Matthias Krüger [Mon, 21 Nov 2022 13:11:12 +0000 (14:11 +0100)]
Rollup merge of #104605 - RalfJung:clf_consts, r=bjorn3
deduplicate constant evaluation in cranelift backend
The cranelift backend had two matches on `ConstantKind`, which can be avoided, and used this `eval_for_mir` that nothing else uses... this makes things more consistent with the (better-tested) LLVM backend.
I noticed this because cranelift was the only user of `eval_for_mir`. However `try_eval_for_mir` still has one other user in `eval`... the odd thing is that the interpreter has its own `eval_mir_constant` which seems to duplicate the same functionality and does not use `try_eval_for_mir`. No idea what is happening here.
r? ``@bjorn3``
Cc ``@lcnr``
bjorn3 [Sun, 20 Nov 2022 19:32:44 +0000 (19:32 +0000)]
Fix running rustc tests
bjorn3 [Sun, 20 Nov 2022 15:26:37 +0000 (16:26 +0100)]
Rustup to rustc 1.67.0-nightly (
c5d82ed7a 2022-11-19)
bjorn3 [Sat, 19 Nov 2022 14:23:58 +0000 (15:23 +0100)]
Ralf Jung [Sat, 19 Nov 2022 12:41:21 +0000 (13:41 +0100)]
deduplicate constant evaluation in cranelift backend
also sync LLVM and cranelift structure a bit
Dylan DPC [Sat, 19 Nov 2022 06:24:43 +0000 (11:54 +0530)]
Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3
Improve generating Custom entry function
This commit is aimed at making compiler-generated entry functions (Basically just C `main` right now) more generic so other targets can do similar things for custom entry. This was initially implemented as part of https://github.com/rust-lang/rust/pull/100316.
Currently, this moves the entry function name and Call convention to the target spec.
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Ayush Singh [Thu, 17 Nov 2022 09:29:32 +0000 (14:59 +0530)]
Use custom entry name in cranelift
This is a continuation of
9f0a8620bd7d325e6d42417b08daff3e55cb88f6 for
cranelift.
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Maybe Waffle [Wed, 16 Nov 2022 21:58:58 +0000 (21:58 +0000)]
Use `as_deref` in compiler (but only where it makes sense)
Ralf Jung [Tue, 15 Nov 2022 11:06:20 +0000 (12:06 +0100)]
cleanup and dedupe CTFE and Miri error reporting
bors [Tue, 15 Nov 2022 17:37:15 +0000 (17:37 +0000)]
Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk
interpret: support for per-byte provenance
Also factors the provenance map into its own module.
The third commit does the same for the init mask. I can move it in a separate PR if you prefer.
Fixes https://github.com/rust-lang/miri/issues/2181
r? `@oli-obk`
Ralf Jung [Sun, 13 Nov 2022 11:14:59 +0000 (12:14 +0100)]
add is_sized method on Abi and Layout, and use it
bjorn3 [Thu, 10 Nov 2022 11:30:30 +0000 (12:30 +0100)]
Rustup to rustc 1.67.0-nightly (
e75aab045 2022-11-09)
Joshua Nelson [Wed, 9 Nov 2022 08:52:59 +0000 (02:52 -0600)]
Fix `rustdoc --version` when used with download-rustc
Previously, rustdoc would unconditionally report the version that *rustc* was compiled with.
That showed things like `nightly-2022-10-30`, which wasn't right, since this was a `dev` build compiled from source.
Fix it by changing `rustc_driver::version` to a macro expanded at invocation time.
Ralf Jung [Sun, 6 Nov 2022 13:15:20 +0000 (14:15 +0100)]
fix cranelift and gcc
Mateusz Mikuła [Sat, 5 Nov 2022 12:24:46 +0000 (13:24 +0100)]
Update `target-lexicon` to fix new targets parsing (#1293)
bjorn3 [Thu, 3 Nov 2022 13:48:16 +0000 (13:48 +0000)]
Remove some commented out code
bjorn3 [Thu, 3 Nov 2022 11:55:06 +0000 (11:55 +0000)]
Update rustc test suite failure list
bjorn3 [Thu, 3 Nov 2022 11:28:48 +0000 (12:28 +0100)]
Rustup to rustc 1.67.0-nightly (
edf018221 2022-11-02)
bjorn3 [Thu, 3 Nov 2022 11:09:35 +0000 (12:09 +0100)]
Amanieu d'Antras [Fri, 14 Oct 2022 01:24:58 +0000 (02:24 +0100)]
Rewrite implementation of `#[alloc_error_handler]`
The new implementation doesn't use weak lang items and instead changes
`#[alloc_error_handler]` to an attribute macro just like
`#[global_allocator]`.
The attribute will generate the `__rg_oom` function which is called by
the compiler-generated `__rust_alloc_error_handler`. If no `__rg_oom`
function is defined in any crate then the compiler shim will call
`__rdl_oom` in the alloc crate which will simply panic.
This also fixes link errors with `-C link-dead-code` with
`default_alloc_error_handler`: `__rg_oom` was previously defined in the
alloc crate and would attempt to reference the `oom` lang item, even if
it didn't exist. This worked as long as `__rg_oom` was excluded from
linking since it was not called.
This is a prerequisite for the stabilization of
`default_alloc_error_handler` (#102318).
bjorn3 [Sat, 29 Oct 2022 13:47:10 +0000 (13:47 +0000)]
Fix transmuting from vector type to ScalarPair type
Fixes #1292
bjorn3 [Fri, 28 Oct 2022 14:20:27 +0000 (14:20 +0000)]
Update GHA actions for Node.js 12 deprecation
bjorn3 [Fri, 28 Oct 2022 13:21:27 +0000 (13:21 +0000)]
Ignore rustfmt for y.rs
bjorn3 [Fri, 28 Oct 2022 12:51:15 +0000 (12:51 +0000)]
Add rustdoc-clif wrapper
bjorn3 [Fri, 28 Oct 2022 12:48:51 +0000 (12:48 +0000)]
Make rust-analyzer run flycheck on the build system
bjorn3 [Wed, 26 Oct 2022 18:17:12 +0000 (18:17 +0000)]
Better rust-analyzer.linkedProjects value
bjorn3 [Fri, 28 Oct 2022 09:54:05 +0000 (09:54 +0000)]
Use 2021 edition for y.rs