Commit Graph

1564 Commits

Author SHA1 Message Date
bjorn3
eb89a2c092 Implement float_to_int_unchecked intrinsic 2020-06-30 19:02:00 +02:00
bjorn3
c674a32ab8 Implement f*_fast intrinsics 2020-06-30 19:01:17 +02:00
bjorn3
f5f24c7a5c Implement a few volatile intrinsics 2020-06-30 19:00:52 +02:00
bjorn3
bf2ba15972 When casting enum to integer sign extend the discriminant if necessary 2020-06-30 18:59:58 +02:00
bjorn3
cc0268fa1a Mask shift amount 2020-06-30 18:56:53 +02:00
bjorn3
e2ab2885c2 Mark allocations as mutable when necessary 2020-06-30 18:55:33 +02:00
bjorn3
aa6a4acd78 Fix ptr_offset_from intrinsic 2020-06-30 18:53:47 +02:00
bjorn3
de336e17e4 Fix trap_unreachable_ret_value 2020-06-30 18:52:32 +02:00
bjorn3
5262fec06d Update Cranelift 2020-06-30 18:48:26 +02:00
bjorn3
c1b1a5a9dc Update cc 2020-06-30 18:41:28 +02:00
bjorn3
57d9dda09f Rustup to rustc 1.46.0-nightly (0ca7f74db 2020-06-29) 2020-06-30 18:31:36 +02:00
bjorn3
3227203fe6 Don't use a 1-to-1 mapping between mir local and cranelift_frontend variable 2020-06-27 14:29:28 +02:00
bjorn3
4bfc4a14b6 Update dependencies 2020-06-27 11:37:34 +02:00
bjorn3
ef924329a1 Update Cranelift 2020-06-27 11:37:08 +02:00
bjorn3
48d4bc2fb6 Rustup to rustc 1.46.0-nightly (7750c3d46 2020-06-26) 2020-06-27 11:29:39 +02:00
bjorn3
58ffc47bbf
Add goal and better current status to readme 2020-06-25 18:01:55 +02:00
Vitaly Shukela
eda840a498
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>
2020-06-25 17:59:46 +02:00
bjorn3
a3cd293148 Don't perform a double substitution in some cases 2020-06-24 12:10:20 +02:00
bjorn3
98c83d21f5 Remove leftover of removed hack 2020-06-24 11:54:11 +02:00
bjorn3
f77fab8119 Rustup to rustc 1.46.0-nightly (6bb3dbfc6 2020-06-22) 2020-06-24 11:52:13 +02:00
bjorn3
1f3dd4f91c Prevent different vtables with the same name
Fixes #987
2020-06-23 11:41:35 +02:00
bjorn3
9c0d18c8db Simplify assert_assignable
Assignments are no longer used to implicitly cast between &mut T and &T
2020-06-21 10:35:45 +02:00
bjorn3
b79102c933 Disable "LTO is not supported" warning for sysroot build 2020-06-20 19:14:58 +02:00
bjorn3
fc5e583006 Warn on unsupported pass modes for extern "C"
cc #10
2020-06-20 19:03:54 +02:00
bjorn3
eb8fd197ab Prelude cleanup 2020-06-20 18:44:49 +02:00
bjorn3
431cebdca1 Introduce #[cfg(target_feature = "cg_clif")] 2020-06-20 16:22:03 +02:00
bjorn3
392348d3d1 Ignore less of the libcore float tests 2020-06-20 15:29:12 +02:00
bjorn3
5f54cc7658 Implement checked_mul
Fixes #6
2020-06-20 15:15:28 +02:00
bjorn3
177348fbb4 Unignore some more libcore tests 2020-06-20 14:26:05 +02:00
bjorn3
ef4186a85b Use Cranelift legalization for icmp.i128
The previous translation was wrong for signed 128bit comparisions

This fixes several libcore tests
2020-06-20 13:23:31 +02:00
bjorn3
5c6bf836fe Implement #[link_section]
Fixes #1047
2020-06-20 12:01:24 +02:00
bjorn3
f718378f11 Ignore libcore test that requires unwinding support 2020-06-20 11:31:48 +02:00
bjorn3
b4d9d8a4cc Update Cranelift 2020-06-20 11:21:52 +02:00
bjorn3
266ca933f4 Rustup to rustc 1.46.0-nightly (2d8bd9b74 2020-06-19) 2020-06-20 11:10:27 +02:00
bjorn3
3086e44733 Only call build_value_labels_ranges when necessary 2020-06-16 13:27:24 +02:00
bjorn3
d4187e6aae Make mini_core_hello_world work on Windows once TLS is supported 2020-06-16 11:50:58 +02:00
bjorn3
282e3055e1 Only run ranlib when necessary 2020-06-16 11:40:21 +02:00
bjorn3
daad966be7 Some changes necessary for Windows support
cc #977
2020-06-16 11:36:39 +02:00
bjorn3
b6144483ef Revert "[CI] Run the compile step with CARGO_INCREMENTAL=1"
This reverts commit af0fa74615.

It didn't do anything
2020-06-16 11:08:06 +02:00
bjorn3
af0fa74615
[CI] Run the compile step with CARGO_INCREMENTAL=1 2020-06-16 11:02:26 +02:00
bjorn3
fcd596714b Remove pin of the libc crate for the sysroot
The latest libc version has fixed the compilation error
2020-06-16 10:54:18 +02:00
bjorn3
a76748e54a Fix warnings in alloc_example.rs 2020-06-16 10:42:44 +02:00
bjorn3
5443f39f87 Update dependencies 2020-06-16 10:41:19 +02:00
bjorn3
d471c1b521 Update Cranelift 2020-06-16 10:38:12 +02:00
bjorn3
bd6e0e6e12 Rustup to rustc 1.46.0-nightly (f315c35a7 2020-06-15) 2020-06-16 10:24:24 +02:00
bjorn3
9510791fce Compile sysroot in release mode by default
Fixes #938
2020-06-13 19:19:38 +02:00
bjorn3
eb5ce4e92a Remove FunctionDebugContext 2020-06-13 17:03:34 +02:00
bjorn3
16b5dac463 Remove all non-tcx references from CodegenCx 2020-06-12 21:15:13 +02:00
bjorn3
ba7cdf21be Emit unwind info for main and alloc shim
Fixes #988
2020-06-12 19:31:35 +02:00
bjorn3
e1a77a5ce6 Update dependencies 2020-06-12 19:11:40 +02:00