]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoAdd fixme
bjorn3 [Sun, 25 Jul 2021 16:46:10 +0000 (18:46 +0200)]
Add fixme

2 years agoRun stdsimd test suite
bjorn3 [Sun, 25 Jul 2021 16:45:56 +0000 (18:45 +0200)]
Run stdsimd test suite

2 years agoFix simd_round implementation
bjorn3 [Sun, 25 Jul 2021 16:44:42 +0000 (18:44 +0200)]
Fix simd_round implementation

2 years agoImplement more simd intrinsics
bjorn3 [Sat, 24 Jul 2021 13:25:32 +0000 (15:25 +0200)]
Implement more simd intrinsics

2 years agoFix simd_reduce_* intrinsics
bjorn3 [Sat, 24 Jul 2021 13:24:06 +0000 (15:24 +0200)]
Fix simd_reduce_* intrinsics

2 years agoFix two type mismatch bugs
bjorn3 [Fri, 23 Jul 2021 16:29:47 +0000 (18:29 +0200)]
Fix two type mismatch bugs

2 years agoSupport repr(simd) on ADTs containing a single array field
bjorn3 [Fri, 23 Jul 2021 16:23:13 +0000 (18:23 +0200)]
Support repr(simd) on ADTs containing a single array field

This is the cg_clif half of rust PR 78863

2 years agoAvoid call to pointer_ty
bjorn3 [Mon, 19 Jul 2021 13:34:33 +0000 (15:34 +0200)]
Avoid call to pointer_ty

2 years agoRustup to rustc 1.55.0-nightly (59216858a 2021-07-18)
bjorn3 [Mon, 19 Jul 2021 13:32:22 +0000 (15:32 +0200)]
Rustup to rustc 1.55.0-nightly (59216858a 2021-07-18)

2 years agoSync from rust 8df945c4717ffaf923b57bf30c473df6fc98bc85
bjorn3 [Mon, 19 Jul 2021 13:23:20 +0000 (15:23 +0200)]
Sync from rust 8df945c4717ffaf923b57bf30c473df6fc98bc85

2 years agoRollup merge of #87092 - ricobbe:fix-raw-dylib-multiple-definitions, r=petrochenkov
Yuki Okushi [Sun, 18 Jul 2021 05:21:56 +0000 (14:21 +0900)]
Rollup merge of #87092 - ricobbe:fix-raw-dylib-multiple-definitions, r=petrochenkov

Remove nondeterminism in multiple-definitions test

Compare all fields in `DllImport` when sorting to avoid nondeterminism in the error for multiple inconsistent definitions of an extern function.  Restore the multiple-definitions test.

Resolves #87084.

2 years agoMerge pull request #1187 from bjorn3/feature_gating
bjorn3 [Sat, 17 Jul 2021 15:55:57 +0000 (17:55 +0200)]
Merge pull request #1187 from bjorn3/feature_gating

Preparations for building as part of rustc

2 years agoDisable jit and inline-asm when building as part of rustc
bjorn3 [Sat, 17 Jul 2021 14:40:54 +0000 (16:40 +0200)]
Disable jit and inline-asm when building as part of rustc

Both features are not yet ready. Inline-asm is only supported on Linux
and requires explicitly specifying registers instead of register
classes. The jit has usability issues and may require the cg_clif
executable in the future.

2 years agoPut all cg_clif specific options behind -Zunstable-features
bjorn3 [Sat, 17 Jul 2021 14:32:55 +0000 (16:32 +0200)]
Put all cg_clif specific options behind -Zunstable-features

2 years agoDon't panic when the target is not supported by Cranelift
bjorn3 [Sat, 17 Jul 2021 14:07:27 +0000 (16:07 +0200)]
Don't panic when the target is not supported by Cranelift

2 years ago[CI] Update package list before installing packages
bjorn3 [Sat, 17 Jul 2021 13:03:18 +0000 (15:03 +0200)]
[CI] Update package list before installing packages

2 years agoDon't truncate the shift amount
bjorn3 [Mon, 5 Jul 2021 16:04:52 +0000 (18:04 +0200)]
Don't truncate the shift amount

It isn't actually necessary

2 years agoRemove shl/shr special handling for 128bit ints
bjorn3 [Mon, 5 Jul 2021 16:02:12 +0000 (18:02 +0200)]
Remove shl/shr special handling for 128bit ints

Cranelift now natively supports 128bit int shifting

2 years agoUpdate Cranelift
bjorn3 [Sat, 17 Jul 2021 12:34:40 +0000 (14:34 +0200)]
Update Cranelift

2 years agoConsider all fields when comparing DllImports, to remove nondetermininsm in multiple...
Richard Cobbe [Mon, 12 Jul 2021 19:46:27 +0000 (12:46 -0700)]
Consider all fields when comparing DllImports, to remove nondetermininsm in multiple-definitions test

2 years agofix cranelift
Ralf Jung [Mon, 12 Jul 2021 22:41:10 +0000 (00:41 +0200)]
fix cranelift

3 years agoRemove explicit branch="main" form Cargo.toml
bjorn3 [Tue, 13 Jul 2021 19:32:23 +0000 (21:32 +0200)]
Remove explicit branch="main" form Cargo.toml

3 years agoUse cranelift's `Type::int` instead of doing the match myself
Scott McMurray [Tue, 1 Jun 2021 13:19:49 +0000 (06:19 -0700)]
Use cranelift's `Type::int` instead of doing the match myself

<https://docs.rs/cranelift-codegen/0.74.0/cranelift_codegen/ir/types/struct.Type.html#method.int>

3 years agoPR Feedback: Don't put SSA-only types in `CValue`s
Scott McMurray [Mon, 31 May 2021 17:26:08 +0000 (10:26 -0700)]
PR Feedback: Don't put SSA-only types in `CValue`s

3 years agoImplement the raw_eq intrinsic in codegen_cranelift
Scott McMurray [Mon, 31 May 2021 01:04:07 +0000 (18:04 -0700)]
Implement the raw_eq intrinsic in codegen_cranelift

3 years agoRustup to rustc 1.55.0-nightly (d2b04f075 2021-07-07)
bjorn3 [Thu, 8 Jul 2021 16:03:50 +0000 (18:03 +0200)]
Rustup to rustc 1.55.0-nightly (d2b04f075 2021-07-07)

3 years agoSync from rust 0deb536ff987d7200f5ea35634781e9df9d5b666
bjorn3 [Thu, 8 Jul 2021 16:03:33 +0000 (18:03 +0200)]
Sync from rust 0deb536ff987d7200f5ea35634781e9df9d5b666

3 years agoMerge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
bjorn3 [Wed, 7 Jul 2021 09:14:20 +0000 (11:14 +0200)]
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07

3 years agoRustup to rustc 1.55.0-nightly (885399992 2021-07-06)
bjorn3 [Wed, 7 Jul 2021 09:08:52 +0000 (11:08 +0200)]
Rustup to rustc 1.55.0-nightly (885399992 2021-07-06)

3 years agoSync from rust b09dad3eddfc46c55e45f6c1a00bab09401684b4
bjorn3 [Tue, 6 Jul 2021 16:59:42 +0000 (18:59 +0200)]
Sync from rust b09dad3eddfc46c55e45f6c1a00bab09401684b4

3 years agoDon't pass local_crate_name to link_binary separately
bjorn3 [Tue, 6 Jul 2021 15:49:23 +0000 (17:49 +0200)]
Don't pass local_crate_name to link_binary separately

It is already part of CodegenResults

3 years agoMove LinkerInfo into CrateInfo
bjorn3 [Tue, 6 Jul 2021 13:31:38 +0000 (15:31 +0200)]
Move LinkerInfo into CrateInfo

3 years agoPass CrateInfo instead of TyCtxt to load_imported_symbols_for_jit
bjorn3 [Mon, 5 Jul 2021 16:46:13 +0000 (18:46 +0200)]
Pass CrateInfo instead of TyCtxt to load_imported_symbols_for_jit

3 years agoRustfmt
bjorn3 [Mon, 5 Jul 2021 16:44:37 +0000 (18:44 +0200)]
Rustfmt

3 years agoRemove LibSource
bjorn3 [Mon, 7 Jun 2021 10:18:28 +0000 (12:18 +0200)]
Remove LibSource

The information is stored in used_crate_source too anyway

3 years agoDon't overwrite LD_LIBRARY_PATH in config.sh
bjorn3 [Sun, 4 Jul 2021 16:17:26 +0000 (18:17 +0200)]
Don't overwrite LD_LIBRARY_PATH in config.sh

3 years agoRefactor cg_clif building
bjorn3 [Sun, 4 Jul 2021 16:15:13 +0000 (18:15 +0200)]
Refactor cg_clif building

3 years agoBetter config parsing and allow specifying host and target triple in config
bjorn3 [Sun, 4 Jul 2021 13:10:06 +0000 (15:10 +0200)]
Better config parsing and allow specifying host and target triple in config

3 years agoWrite better clif ir header
bjorn3 [Sun, 4 Jul 2021 10:39:22 +0000 (12:39 +0200)]
Write better clif ir header

3 years agoUpdate Cranelift
bjorn3 [Sun, 4 Jul 2021 10:37:00 +0000 (12:37 +0200)]
Update Cranelift

This has a fix for a miscompilation on AArch64

cc #1184

3 years agoMake vtable_allocation always succeed
Smitty [Sat, 3 Jul 2021 15:14:19 +0000 (11:14 -0400)]
Make vtable_allocation always succeed

3 years agoUpdate Cranelift
bjorn3 [Sat, 3 Jul 2021 12:41:33 +0000 (14:41 +0200)]
Update Cranelift

3 years agoMisc target related improvements
bjorn3 [Sat, 3 Jul 2021 12:28:53 +0000 (14:28 +0200)]
Misc target related improvements

3 years agoCheck if the patched sysroot source is up to date before using it
bjorn3 [Fri, 2 Jul 2021 17:14:02 +0000 (19:14 +0200)]
Check if the patched sysroot source is up to date before using it

Fixes #1181

3 years agoMerge pull request #1183 from bjorn3/full_aarch64_support
bjorn3 [Fri, 2 Jul 2021 13:03:16 +0000 (15:03 +0200)]
Merge pull request #1183 from bjorn3/full_aarch64_support

AArch64 support on Linux

3 years ago[CI] Cross compile to aarch64-unknown-linux-gnu
bjorn3 [Fri, 2 Jul 2021 12:43:01 +0000 (14:43 +0200)]
[CI] Cross compile to aarch64-unknown-linux-gnu

3 years ago[CI] Split build and test steps
bjorn3 [Fri, 2 Jul 2021 10:54:09 +0000 (12:54 +0200)]
[CI] Split build and test steps

3 years agoFix rust-analyzer setting
bjorn3 [Fri, 2 Jul 2021 10:39:34 +0000 (12:39 +0200)]
Fix rust-analyzer setting

3 years agoFix compilation for AArch64
bjorn3 [Tue, 29 Jun 2021 18:37:06 +0000 (20:37 +0200)]
Fix compilation for AArch64

3 years agoOnly test global_asm on x86_64
bjorn3 [Fri, 25 Jun 2021 17:18:53 +0000 (19:18 +0200)]
Only test global_asm on x86_64

3 years agoUpdate Cranelift and object
bjorn3 [Fri, 25 Jun 2021 17:18:17 +0000 (19:18 +0200)]
Update Cranelift and object

This adds AArch64 support for unixes using ELF object files like Linux

3 years agoDon't use data object for non-primitive scalars
bjorn3 [Fri, 2 Jul 2021 10:07:08 +0000 (12:07 +0200)]
Don't use data object for non-primitive scalars

Fixes #1041

3 years agoDisable new rustc test requiring unwinding support
bjorn3 [Fri, 2 Jul 2021 09:32:27 +0000 (11:32 +0200)]
Disable new rustc test requiring unwinding support

3 years agoReduce duplication of vtables
bjorn3 [Thu, 1 Jul 2021 10:05:10 +0000 (12:05 +0200)]
Reduce duplication of vtables

3 years agoRustup to rustc 1.55.0-nightly (6d820866a 2021-06-29)
bjorn3 [Wed, 30 Jun 2021 19:21:06 +0000 (21:21 +0200)]
Rustup to rustc 1.55.0-nightly (6d820866a 2021-06-29)

3 years agofix sess error
Smitty [Tue, 29 Jun 2021 23:17:14 +0000 (19:17 -0400)]
fix sess error

This passed x.py check locally, not sure why it wasn't rebased right...

3 years agoSupport allocation failures when interperting MIR
Smitty [Sat, 12 Jun 2021 23:49:48 +0000 (19:49 -0400)]
Support allocation failures when interperting MIR

Note that this breaks Miri.

Closes #79601

3 years agoSync from rust e98897e5dc9898707bf4331c43b2e76ab7e282fe
bjorn3 [Tue, 29 Jun 2021 18:38:04 +0000 (20:38 +0200)]
Sync from rust e98897e5dc9898707bf4331c43b2e76ab7e282fe

3 years agoAuto merge of #86475 - crlf0710:miri_vtable_refactor, r=bjorn3
bors [Tue, 29 Jun 2021 15:52:21 +0000 (15:52 +0000)]
Auto merge of #86475 - crlf0710:miri_vtable_refactor, r=bjorn3

Change vtable memory representation to use tcx allocated allocations.

This fixes https://github.com/rust-lang/rust/issues/86324. However i suspect there's more to change before it can land.

r? `@bjorn3`
cc `@rust-lang/miri`

3 years agoUpdate other codegens to use tcx managed vtable allocations.
Charles Lew [Sun, 20 Jun 2021 09:43:25 +0000 (17:43 +0800)]
Update other codegens to use tcx managed vtable allocations.

3 years agoAuto merge of #85909 - cjgillot:alloc-kind-query, r=Aaron1011
bors [Mon, 28 Jun 2021 01:20:01 +0000 (01:20 +0000)]
Auto merge of #85909 - cjgillot:alloc-kind-query, r=Aaron1011

Make allocator_kind a query.

Part of #85153

r? `@Aaron1011`

3 years agoMerge pull request #1166 from eggyal/lazy-jit-multithreaded
bjorn3 [Fri, 25 Jun 2021 16:33:00 +0000 (18:33 +0200)]
Merge pull request #1166 from eggyal/lazy-jit-multithreaded

Multithreading support for lazy-jit

3 years agoTest multithreading support in lazy-jit
bjorn3 [Fri, 25 Jun 2021 15:49:43 +0000 (17:49 +0200)]
Test multithreading support in lazy-jit

3 years agoAuto merge of #85640 - bjorn3:custom_ice_hook, r=jackh726
bors [Fri, 25 Jun 2021 04:06:32 +0000 (04:06 +0000)]
Auto merge of #85640 - bjorn3:custom_ice_hook, r=jackh726

Allow changing the bug report url for the ice hook

cc https://github.com/bjorn3/rustc_codegen_cranelift/issues/1174

3 years agoRemove unused variable
bjorn3 [Sun, 20 Jun 2021 16:26:17 +0000 (18:26 +0200)]
Remove unused variable

3 years agoMerge pull request #1180 from bjorn3/rust_build_system
bjorn3 [Sun, 20 Jun 2021 12:55:36 +0000 (14:55 +0200)]
Merge pull request #1180 from bjorn3/rust_build_system

Rewrite part of the build system in rust

3 years agoRemove unnecessary LD_LIBRARY_PATH parts
bjorn3 [Sun, 20 Jun 2021 12:40:49 +0000 (14:40 +0200)]
Remove unnecessary LD_LIBRARY_PATH parts

3 years agoFix compiling cargo.rs on windows
bjorn3 [Sun, 20 Jun 2021 11:20:51 +0000 (13:20 +0200)]
Fix compiling cargo.rs on windows

3 years agoRewrite cargo.sh in rust
bjorn3 [Sun, 20 Jun 2021 10:41:40 +0000 (12:41 +0200)]
Rewrite cargo.sh in rust

3 years agoMake allocator_kind a query.
Camille GILLOT [Tue, 11 May 2021 20:05:54 +0000 (22:05 +0200)]
Make allocator_kind a query.

3 years agoMove some things from config.sh to ext_config.sh
bjorn3 [Sat, 19 Jun 2021 12:51:48 +0000 (14:51 +0200)]
Move some things from config.sh to ext_config.sh

3 years agoGive an error when attempting to build for MSVC
bjorn3 [Sat, 19 Jun 2021 12:07:56 +0000 (14:07 +0200)]
Give an error when attempting to build for MSVC

3 years agoUpdate rust-analyzer import assist config
bjorn3 [Fri, 18 Jun 2021 14:18:44 +0000 (16:18 +0200)]
Update rust-analyzer import assist config

3 years ago[CI] Test compilation on Windows
bjorn3 [Fri, 18 Jun 2021 11:41:20 +0000 (13:41 +0200)]
[CI] Test compilation on Windows

3 years agoImprove windows support
bjorn3 [Fri, 18 Jun 2021 11:38:50 +0000 (13:38 +0200)]
Improve windows support

3 years agoAllow preserving the old sysroot
bjorn3 [Fri, 18 Jun 2021 11:35:58 +0000 (13:35 +0200)]
Allow preserving the old sysroot

3 years agoRewrite build_sysroot.sh in rust
bjorn3 [Fri, 18 Jun 2021 11:27:56 +0000 (13:27 +0200)]
Rewrite build_sysroot.sh in rust

3 years agoMerge the crate_patches dir into the patches dir
bjorn3 [Wed, 16 Jun 2021 16:28:34 +0000 (18:28 +0200)]
Merge the crate_patches dir into the patches dir

3 years agoRewrite prepare_sysroot_src.sh in rust
bjorn3 [Wed, 16 Jun 2021 16:01:19 +0000 (18:01 +0200)]
Rewrite prepare_sysroot_src.sh in rust

3 years agoRewrite prepare.sh in rust
bjorn3 [Fri, 11 Jun 2021 16:50:01 +0000 (18:50 +0200)]
Rewrite prepare.sh in rust

3 years agoRewrite build.sh in rust
bjorn3 [Tue, 8 Jun 2021 12:33:25 +0000 (14:33 +0200)]
Rewrite build.sh in rust

This makes it easier to compile cg_clif on systems that don't support
bash shell scripts like Windows

3 years agoUpdate rust patch for compiler_builtins update
bjorn3 [Thu, 17 Jun 2021 16:42:09 +0000 (18:42 +0200)]
Update rust patch for compiler_builtins update

3 years agoFix miscompilation in vtable access
bjorn3 [Thu, 17 Jun 2021 16:41:43 +0000 (18:41 +0200)]
Fix miscompilation in vtable access

Fixes #1179

3 years agoRustup to rustc 1.55.0-nightly (a85f584ae 2021-06-16)
bjorn3 [Thu, 17 Jun 2021 13:36:32 +0000 (15:36 +0200)]
Rustup to rustc 1.55.0-nightly (a85f584ae 2021-06-16)

3 years agoSync from rust b17d9c1332693fc386f5374f0d63aae0ce5abab5
bjorn3 [Thu, 17 Jun 2021 13:22:37 +0000 (15:22 +0200)]
Sync from rust b17d9c1332693fc386f5374f0d63aae0ce5abab5

3 years agoRemove lack of mulithreading support from usage.md
Alan Egerton [Thu, 17 Jun 2021 08:51:04 +0000 (09:51 +0100)]
Remove lack of mulithreading support from usage.md

3 years agoEnsure Instances are only jitted once
Alan Egerton [Wed, 28 Apr 2021 23:01:59 +0000 (00:01 +0100)]
Ensure Instances are only jitted once

3 years agoMultithreading support for lazy-jit
Alan Egerton [Wed, 28 Apr 2021 13:44:18 +0000 (14:44 +0100)]
Multithreading support for lazy-jit

3 years agoAuto merge of #86291 - crlf0710:trait_vtbl_refactor, r=bjorn3
bors [Wed, 16 Jun 2021 07:20:27 +0000 (07:20 +0000)]
Auto merge of #86291 - crlf0710:trait_vtbl_refactor, r=bjorn3

Refactor vtable codegen

This refactor the codegen of vtables of miri interpreter, llvm, cranelift codegen backends.

This is preparation for the implementation of trait upcasting feature. cc #65991

Note that aside from code reorganization, there's an internal behavior change here that now InstanceDef::Virtual's index now include the three metadata slots, and now the first method is with index 3.

cc  `@RalfJung` `@bjorn3`

3 years agoImplement llvm.x86.addcarry.64 and llvm.x86.subborrow.64 (#1178)
Alexander [Tue, 15 Jun 2021 11:41:46 +0000 (13:41 +0200)]
Implement llvm.x86.addcarry.64 and llvm.x86.subborrow.64 (#1178)

3 years agoUse the now available implementation of `IntoIterator` for arrays
LeSeulArtichaut [Mon, 14 Jun 2021 21:40:09 +0000 (23:40 +0200)]
Use the now available implementation of `IntoIterator` for arrays

3 years agoRefactor to make interpreter and codegen backend neutral to vtable internal represent...
Charles Lew [Mon, 14 Jun 2021 10:02:53 +0000 (18:02 +0800)]
Refactor to make interpreter and codegen backend neutral to vtable internal representation.

3 years agoEnable cross-compilation support in Cranelift
bjorn3 [Thu, 10 Jun 2021 10:18:10 +0000 (12:18 +0200)]
Enable cross-compilation support in Cranelift

3 years agoUpdate Cranelift and object
bjorn3 [Thu, 10 Jun 2021 10:17:42 +0000 (12:17 +0200)]
Update Cranelift and object

3 years agoUse -Cprefer-dynamic for all crates in jit mode
bjorn3 [Thu, 10 Jun 2021 08:46:00 +0000 (10:46 +0200)]
Use -Cprefer-dynamic for all crates in jit mode

3 years agoInclude rustc and cranelift version in debuginfo
bjorn3 [Thu, 10 Jun 2021 08:19:58 +0000 (10:19 +0200)]
Include rustc and cranelift version in debuginfo

3 years agoAdd missing cargo clean when cross-compiling
bjorn3 [Thu, 10 Jun 2021 08:16:49 +0000 (10:16 +0200)]
Add missing cargo clean when cross-compiling

3 years agoAuto merge of #85910 - cjgillot:no-meta-version, r=Aaron1011
bors [Thu, 10 Jun 2021 00:39:25 +0000 (00:39 +0000)]
Auto merge of #85910 - cjgillot:no-meta-version, r=Aaron1011

Drop metadata_encoding_version.

Part of #85153

r? `@Aaron1011`

3 years agoIgnore unsupported test
bjorn3 [Tue, 8 Jun 2021 18:12:29 +0000 (20:12 +0200)]
Ignore unsupported test

3 years agoRustup to rustc 1.54.0-nightly (e4a603270 2021-06-07)
bjorn3 [Tue, 8 Jun 2021 17:36:12 +0000 (19:36 +0200)]
Rustup to rustc 1.54.0-nightly (e4a603270 2021-06-07)