]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMerge pull request #1062 from bjorn3/global_asm
bjorn3 [Thu, 9 Jul 2020 17:15:28 +0000 (19:15 +0200)]
Merge pull request #1062 from bjorn3/global_asm

Implement global_asm! using an external assembler

3 years agoDisable global_asm! on macOS for now
bjorn3 [Thu, 9 Jul 2020 16:56:17 +0000 (18:56 +0200)]
Disable global_asm! on macOS for now

3 years agoInfer the path of toolchain binaries from the linker path
bjorn3 [Thu, 9 Jul 2020 16:55:46 +0000 (18:55 +0200)]
Infer the path of toolchain binaries from the linker path

3 years agoImplement global_asm! using an external assembler
bjorn3 [Thu, 9 Jul 2020 14:55:38 +0000 (16:55 +0200)]
Implement global_asm! using an external assembler

Fixes #1061

3 years agoHandle SysV64 abi
bjorn3 [Thu, 9 Jul 2020 13:25:37 +0000 (15:25 +0200)]
Handle SysV64 abi

3 years agoAdd a feature flag for the JIT
bjorn3 [Thu, 9 Jul 2020 12:23:00 +0000 (14:23 +0200)]
Add a feature flag for the JIT

3 years agoUpdate dependencies
bjorn3 [Thu, 9 Jul 2020 11:23:45 +0000 (13:23 +0200)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Thu, 9 Jul 2020 11:17:38 +0000 (13:17 +0200)]
Update Cranelift

3 years agoRustup to rustc 1.46.0-nightly (8aa18cbdc 2020-07-08)
bjorn3 [Thu, 9 Jul 2020 11:13:29 +0000 (13:13 +0200)]
Rustup to rustc 1.46.0-nightly (8aa18cbdc 2020-07-08)

4 years agoAccount for Rvalue::AddressOf in analyze
bjorn3 [Fri, 3 Jul 2020 16:23:53 +0000 (18:23 +0200)]
Account for Rvalue::AddressOf in analyze

4 years agoMerge pull request #1058 from bjorn3/misc_rustc_test_suite_fixes
bjorn3 [Fri, 3 Jul 2020 15:34:31 +0000 (17:34 +0200)]
Merge pull request #1058 from bjorn3/misc_rustc_test_suite_fixes

Misc rustc test suite fixes

4 years agoImplement variant_count intrinisic
bjorn3 [Fri, 3 Jul 2020 14:52:56 +0000 (16:52 +0200)]
Implement variant_count intrinisic

4 years agoValidate simd and atomic intrinsic types
bjorn3 [Fri, 3 Jul 2020 14:52:37 +0000 (16:52 +0200)]
Validate simd and atomic intrinsic types

4 years agoTest signed 128bit discriminants
bjorn3 [Fri, 3 Jul 2020 14:44:26 +0000 (16:44 +0200)]
Test signed 128bit discriminants

4 years agoAdd sess.abort_if_errors() to link
bjorn3 [Fri, 3 Jul 2020 14:43:59 +0000 (16:43 +0200)]
Add sess.abort_if_errors() to link

4 years agoOnly display codegen time when CG_CLIF_DISPLAY_CG_TIME=1
bjorn3 [Fri, 3 Jul 2020 14:43:26 +0000 (16:43 +0200)]
Only display codegen time when CG_CLIF_DISPLAY_CG_TIME=1

4 years agoFix assert_assignable
bjorn3 [Fri, 3 Jul 2020 14:40:57 +0000 (16:40 +0200)]
Fix assert_assignable

4 years agoFix core::hint::black_box support
bjorn3 [Fri, 3 Jul 2020 14:39:36 +0000 (16:39 +0200)]
Fix core::hint::black_box support

4 years agoMerge pull request #1057 from spastorino/store-pairs-in-ssa
bjorn3 [Fri, 3 Jul 2020 13:04:29 +0000 (15:04 +0200)]
Merge pull request #1057 from spastorino/store-pairs-in-ssa

Store pairs in ssa

4 years agoStore fat pointers in ssa variables
Santiago Pastorino [Fri, 3 Jul 2020 12:48:19 +0000 (09:48 -0300)]
Store fat pointers in ssa variables

4 years agoExtract transmute_value as a function to avoid code repetition
Santiago Pastorino [Fri, 3 Jul 2020 12:43:02 +0000 (09:43 -0300)]
Extract transmute_value as a function to avoid code repetition

4 years agoStore pairs in SSA
Santiago Pastorino [Thu, 2 Jul 2020 22:23:21 +0000 (19:23 -0300)]
Store pairs in SSA

4 years agoUpdate Cranelift
bjorn3 [Thu, 2 Jul 2020 19:58:11 +0000 (21:58 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (f781babf8 2020-07-01)
bjorn3 [Thu, 2 Jul 2020 17:48:03 +0000 (19:48 +0200)]
Rustup to rustc 1.46.0-nightly (f781babf8 2020-07-01)

4 years agoDon't panic on unevaluatable promoted constants
bjorn3 [Thu, 30 Apr 2020 17:00:25 +0000 (19:00 +0200)]
Don't panic on unevaluatable promoted constants

4 years agoMerge pull request #1056 from bjorn3/misc_fixes
bjorn3 [Tue, 30 Jun 2020 17:20:44 +0000 (19:20 +0200)]
Merge pull request #1056 from bjorn3/misc_fixes

Misc fixes

4 years agoImplement float_to_int_unchecked intrinsic
bjorn3 [Sun, 10 May 2020 16:17:58 +0000 (18:17 +0200)]
Implement float_to_int_unchecked intrinsic

4 years agoImplement f*_fast intrinsics
bjorn3 [Fri, 1 May 2020 15:35:20 +0000 (17:35 +0200)]
Implement f*_fast intrinsics

4 years agoImplement a few volatile intrinsics
bjorn3 [Fri, 1 May 2020 15:28:45 +0000 (17:28 +0200)]
Implement a few volatile intrinsics

4 years agoWhen casting enum to integer sign extend the discriminant if necessary
bjorn3 [Fri, 1 May 2020 15:06:59 +0000 (17:06 +0200)]
When casting enum to integer sign extend the discriminant if necessary

4 years agoMask shift amount
bjorn3 [Fri, 1 May 2020 12:13:03 +0000 (14:13 +0200)]
Mask shift amount

4 years agoMark allocations as mutable when necessary
bjorn3 [Fri, 1 May 2020 10:15:11 +0000 (12:15 +0200)]
Mark allocations as mutable when necessary

4 years agoFix ptr_offset_from intrinsic
bjorn3 [Fri, 1 May 2020 10:32:23 +0000 (12:32 +0200)]
Fix ptr_offset_from intrinsic

4 years agoFix trap_unreachable_ret_value
bjorn3 [Thu, 30 Apr 2020 18:54:04 +0000 (20:54 +0200)]
Fix trap_unreachable_ret_value

4 years agoUpdate Cranelift
bjorn3 [Tue, 30 Jun 2020 16:48:26 +0000 (18:48 +0200)]
Update Cranelift

4 years agoUpdate cc
bjorn3 [Tue, 30 Jun 2020 16:41:28 +0000 (18:41 +0200)]
Update cc

4 years agoRustup to rustc 1.46.0-nightly (0ca7f74db 2020-06-29)
bjorn3 [Tue, 30 Jun 2020 16:31:36 +0000 (18:31 +0200)]
Rustup to rustc 1.46.0-nightly (0ca7f74db 2020-06-29)

4 years agoDon't use a 1-to-1 mapping between mir local and cranelift_frontend variable
bjorn3 [Sat, 27 Jun 2020 09:58:44 +0000 (11:58 +0200)]
Don't use a 1-to-1 mapping between mir local and cranelift_frontend variable

4 years agoUpdate dependencies
bjorn3 [Sat, 27 Jun 2020 09:37:34 +0000 (11:37 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Sat, 27 Jun 2020 09:37:08 +0000 (11:37 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (7750c3d46 2020-06-26)
bjorn3 [Sat, 27 Jun 2020 09:29:39 +0000 (11:29 +0200)]
Rustup to rustc 1.46.0-nightly (7750c3d46 2020-06-26)

4 years agoAdd goal and better current status to readme
bjorn3 [Thu, 25 Jun 2020 16:01:55 +0000 (18:01 +0200)]
Add goal and better current status to readme

4 years agoLonger README about how to use this instead of `cargo run` (#1054)
Vitaly Shukela [Thu, 25 Jun 2020 15:59:46 +0000 (18:59 +0300)]
Longer README about how to use this instead of `cargo run` (#1054)

* Longer README about how to use this instead of `cargo run`

Resolves #1052.

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
4 years agoDon't perform a double substitution in some cases
bjorn3 [Wed, 24 Jun 2020 10:10:20 +0000 (12:10 +0200)]
Don't perform a double substitution in some cases

4 years agoRemove leftover of removed hack
bjorn3 [Wed, 24 Jun 2020 09:54:11 +0000 (11:54 +0200)]
Remove leftover of removed hack

4 years agoRustup to rustc 1.46.0-nightly (6bb3dbfc6 2020-06-22)
bjorn3 [Wed, 24 Jun 2020 09:52:13 +0000 (11:52 +0200)]
Rustup to rustc 1.46.0-nightly (6bb3dbfc6 2020-06-22)

4 years agoPrevent different vtables with the same name
bjorn3 [Tue, 23 Jun 2020 09:41:35 +0000 (11:41 +0200)]
Prevent different vtables with the same name

Fixes #987

4 years agoSimplify assert_assignable
bjorn3 [Sun, 21 Jun 2020 08:35:45 +0000 (10:35 +0200)]
Simplify assert_assignable

Assignments are no longer used to implicitly cast between &mut T and &T

4 years agoDisable "LTO is not supported" warning for sysroot build
bjorn3 [Sat, 20 Jun 2020 17:14:58 +0000 (19:14 +0200)]
Disable "LTO is not supported" warning for sysroot build

4 years agoWarn on unsupported pass modes for extern "C"
bjorn3 [Sat, 20 Jun 2020 17:03:54 +0000 (19:03 +0200)]
Warn on unsupported pass modes for extern "C"

cc #10

4 years agoPrelude cleanup
bjorn3 [Sat, 20 Jun 2020 16:44:49 +0000 (18:44 +0200)]
Prelude cleanup

4 years agoIntroduce #[cfg(target_feature = "cg_clif")]
bjorn3 [Sat, 20 Jun 2020 14:22:03 +0000 (16:22 +0200)]
Introduce #[cfg(target_feature = "cg_clif")]

4 years agoIgnore less of the libcore float tests
bjorn3 [Sat, 20 Jun 2020 13:29:12 +0000 (15:29 +0200)]
Ignore less of the libcore float tests

4 years agoImplement checked_mul
bjorn3 [Sat, 20 Jun 2020 13:15:28 +0000 (15:15 +0200)]
Implement checked_mul

Fixes #6

4 years agoUnignore some more libcore tests
bjorn3 [Sat, 20 Jun 2020 12:26:05 +0000 (14:26 +0200)]
Unignore some more libcore tests

4 years agoUse Cranelift legalization for icmp.i128
bjorn3 [Sat, 20 Jun 2020 11:23:31 +0000 (13:23 +0200)]
Use Cranelift legalization for icmp.i128

The previous translation was wrong for signed 128bit comparisions

This fixes several libcore tests

4 years agoImplement #[link_section]
bjorn3 [Sat, 20 Jun 2020 10:01:24 +0000 (12:01 +0200)]
Implement #[link_section]

Fixes #1047

4 years agoIgnore libcore test that requires unwinding support
bjorn3 [Sat, 20 Jun 2020 09:31:48 +0000 (11:31 +0200)]
Ignore libcore test that requires unwinding support

4 years agoUpdate Cranelift
bjorn3 [Sat, 20 Jun 2020 09:21:52 +0000 (11:21 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (2d8bd9b74 2020-06-19)
bjorn3 [Sat, 20 Jun 2020 09:10:27 +0000 (11:10 +0200)]
Rustup to rustc 1.46.0-nightly (2d8bd9b74 2020-06-19)

4 years agoOnly call build_value_labels_ranges when necessary
bjorn3 [Tue, 16 Jun 2020 11:27:24 +0000 (13:27 +0200)]
Only call build_value_labels_ranges when necessary

4 years agoMake mini_core_hello_world work on Windows once TLS is supported
bjorn3 [Tue, 16 Jun 2020 09:50:58 +0000 (11:50 +0200)]
Make mini_core_hello_world work on Windows once TLS is supported

4 years agoOnly run ranlib when necessary
bjorn3 [Tue, 16 Jun 2020 09:40:21 +0000 (11:40 +0200)]
Only run ranlib when necessary

4 years agoSome changes necessary for Windows support
bjorn3 [Tue, 16 Jun 2020 09:36:39 +0000 (11:36 +0200)]
Some changes necessary for Windows support

cc #977

4 years agoRevert "[CI] Run the compile step with CARGO_INCREMENTAL=1"
bjorn3 [Tue, 16 Jun 2020 09:08:06 +0000 (11:08 +0200)]
Revert "[CI] Run the compile step with CARGO_INCREMENTAL=1"

This reverts commit af0fa74615b1b30145b6762ae2eec3ca4c6c391c.

It didn't do anything

4 years ago[CI] Run the compile step with CARGO_INCREMENTAL=1
bjorn3 [Tue, 16 Jun 2020 09:02:26 +0000 (11:02 +0200)]
[CI] Run the compile step with CARGO_INCREMENTAL=1

4 years agoRemove pin of the libc crate for the sysroot
bjorn3 [Tue, 16 Jun 2020 08:54:18 +0000 (10:54 +0200)]
Remove pin of the libc crate for the sysroot

The latest libc version has fixed the compilation error

4 years agoFix warnings in alloc_example.rs
bjorn3 [Tue, 16 Jun 2020 08:42:44 +0000 (10:42 +0200)]
Fix warnings in alloc_example.rs

4 years agoUpdate dependencies
bjorn3 [Tue, 16 Jun 2020 08:41:19 +0000 (10:41 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Tue, 16 Jun 2020 08:38:12 +0000 (10:38 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (f315c35a7 2020-06-15)
bjorn3 [Tue, 16 Jun 2020 08:24:24 +0000 (10:24 +0200)]
Rustup to rustc 1.46.0-nightly (f315c35a7 2020-06-15)

4 years agoCompile sysroot in release mode by default
bjorn3 [Sat, 13 Jun 2020 17:19:38 +0000 (19:19 +0200)]
Compile sysroot in release mode by default

Fixes #938

4 years agoRemove FunctionDebugContext
bjorn3 [Sat, 13 Jun 2020 15:03:34 +0000 (17:03 +0200)]
Remove FunctionDebugContext

4 years agoRemove all non-tcx references from CodegenCx
bjorn3 [Fri, 12 Jun 2020 19:15:13 +0000 (21:15 +0200)]
Remove all non-tcx references from CodegenCx

4 years agoEmit unwind info for main and alloc shim
bjorn3 [Fri, 12 Jun 2020 17:31:35 +0000 (19:31 +0200)]
Emit unwind info for main and alloc shim

Fixes #988

4 years agoUpdate dependencies
bjorn3 [Fri, 12 Jun 2020 17:11:40 +0000 (19:11 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Fri, 12 Jun 2020 17:07:04 +0000 (19:07 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (a37c32e2d 2020-06-11)
bjorn3 [Fri, 12 Jun 2020 16:41:50 +0000 (18:41 +0200)]
Rustup to rustc 1.46.0-nightly (a37c32e2d 2020-06-11)

4 years agoRustup to rustc 1.46.0-nightly (449e8eaa2 2020-06-10)
bjorn3 [Thu, 11 Jun 2020 11:12:35 +0000 (13:12 +0200)]
Rustup to rustc 1.46.0-nightly (449e8eaa2 2020-06-10)

4 years agoMerge pull request #1040 from bjorn3/dependabot/cargo/cranelift-codegen-4bb5894
dependabot-preview[bot] [Mon, 8 Jun 2020 06:15:26 +0000 (06:15 +0000)]
Merge pull request #1040 from bjorn3/dependabot/cargo/cranelift-codegen-4bb5894

4 years agoBump cranelift-codegen from `00abfcd` to `4bb5894`
dependabot-preview[bot] [Mon, 8 Jun 2020 05:26:17 +0000 (05:26 +0000)]
Bump cranelift-codegen from `00abfcd` to `4bb5894`

Bumps [cranelift-codegen](https://github.com/bytecodealliance/wasmtime) from `00abfcd` to `4bb5894`.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/00abfcd943fdef8af5c8b2afed09e7ecef512b02...4bb58940c74c37bdba8630810645cbd41dd0ff7e)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoUpdate dependencies
bjorn3 [Fri, 5 Jun 2020 10:43:42 +0000 (12:43 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Fri, 5 Jun 2020 10:40:33 +0000 (12:40 +0200)]
Update Cranelift

4 years agoRemove sign extension for ty::Int from CValue::const_val
bjorn3 [Fri, 5 Jun 2020 10:16:05 +0000 (12:16 +0200)]
Remove sign extension for ty::Int from CValue::const_val

4 years agoRustup to rustc 1.45.0-nightly (56daaf669 2020-06-03)
bjorn3 [Thu, 4 Jun 2020 17:57:12 +0000 (19:57 +0200)]
Rustup to rustc 1.45.0-nightly (56daaf669 2020-06-03)

4 years agoMerge pull request #1022 from osa1/clif_dump_in_release_mode
bjorn3 [Fri, 29 May 2020 09:12:02 +0000 (11:12 +0200)]
Merge pull request #1022 from osa1/clif_dump_in_release_mode

Dump clif with --emit llvm-ir in release mode

4 years agoMark blocks that call cold funs as cold (#1021)
Ömer Sinan Ağacan [Fri, 29 May 2020 09:06:29 +0000 (12:06 +0300)]
Mark blocks that call cold funs as cold (#1021)

4 years agoUpdate src/pretty_clif.rs
Ömer Sinan Ağacan [Fri, 29 May 2020 08:53:58 +0000 (11:53 +0300)]
Update src/pretty_clif.rs

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
4 years agoDump clif with --emit llvm-ir in release mode
Ömer Sinan Ağacan [Fri, 29 May 2020 04:25:28 +0000 (07:25 +0300)]
Dump clif with --emit llvm-ir in release mode

Currently it's not possible to dump llvm-ir in release build. With this
patch we allow it with `--emit llvm-ir`. In debug build we dump clif
always as before.

Fixes #1020

4 years agoAdd simple-raytracer to .gitignore (#1023)
Ömer Sinan Ağacan [Fri, 29 May 2020 06:48:00 +0000 (09:48 +0300)]
Add simple-raytracer to .gitignore (#1023)

4 years agoRemove already fixed FIXME in driver/jit.rs
bjorn3 [Wed, 27 May 2020 09:08:41 +0000 (11:08 +0200)]
Remove already fixed FIXME in driver/jit.rs

4 years agoUpdate depencencies
bjorn3 [Mon, 25 May 2020 11:08:50 +0000 (13:08 +0200)]
Update depencencies

4 years agoUpdate Cranelift
bjorn3 [Mon, 25 May 2020 11:04:36 +0000 (13:04 +0200)]
Update Cranelift

4 years agoDisable failing libcore test
bjorn3 [Mon, 25 May 2020 11:00:15 +0000 (13:00 +0200)]
Disable failing libcore test

4 years agoRustup to rustc 1.45.0-nightly (46e85b432 2020-05-24)
bjorn3 [Mon, 18 May 2020 09:35:23 +0000 (11:35 +0200)]
Rustup to rustc 1.45.0-nightly (46e85b432 2020-05-24)

4 years ago[CI] Hash Cargo.lock in addition to toolchain for target dir cache
bjorn3 [Sun, 10 May 2020 15:36:13 +0000 (17:36 +0200)]
[CI] Hash Cargo.lock in addition to toolchain for target dir cache

4 years agoUpdate dependencies
bjorn3 [Sun, 10 May 2020 13:35:32 +0000 (15:35 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Sun, 10 May 2020 13:18:26 +0000 (15:18 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.45.0-nightly (7ebd87a7a 2020-05-08)
bjorn3 [Sat, 9 May 2020 12:14:45 +0000 (14:14 +0200)]
Rustup to rustc 1.45.0-nightly (7ebd87a7a 2020-05-08)

4 years agoImprovements for latest Cranelift
bjorn3 [Tue, 5 May 2020 10:16:28 +0000 (12:16 +0200)]
Improvements for latest Cranelift