Commit graph

1907 commits

Author SHA1 Message Date
Jakob Hellermann
d6a9dfa3d4 run 'shellcheck -f diff $(fd --extension sh) | git apply' 2020-11-04 16:07:42 +01:00
oli
6e96e10f93 u64::try_from will now fail if ScalarInt isn't exactly 64 bits, thus we use to_bits with the correct size 2020-11-04 13:59:11 +00:00
oli
5fa1c8f91a u128 truncation and sign extension are not just interpreter related 2020-11-04 13:41:58 +00:00
oli
0dcf78ba87 s/Scalar::Raw/Scalar::Int 2020-11-04 10:11:31 +00:00
oli
7e8b15e050 Fix cranelift build 2020-11-04 10:10:44 +00:00
bjorn3
1aaa02401d
Merge pull request #1108 from jyn514/cargo-target-dir
Fix compiling with CARGO_TARGET_DIR
2020-11-04 07:36:10 +01:00
Joshua Nelson
a3a508a516 Fix compiling with CARGO_TARGET_DIR
Previously it would error:

```
    Finished dev [unoptimized + debuginfo] target(s) in 26.93s
mv target/debug/main raytracer_cg_llvm
mv: cannot stat 'target/debug/main': No such file or directory
```
2020-11-03 20:51:11 -05:00
bjorn3
81b673b7eb Rustup to rustc 1.49.0-nightly (338f939a8 2020-11-02) 2020-11-03 19:25:31 +01:00
bjorn3
b8a9beb13e Remove unnecessary -Ztrim-diagnostic-paths=no 2020-11-03 19:17:44 +01:00
bjorn3
285c7c66dc Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020-11-01 2020-11-03 11:00:04 +01:00
bjorn3
03f01bbe90
Merge pull request #1105 from bjorn3/test_rustc_bootstrapping
Test bootstrapping of rustc using cg_clif
2020-11-02 19:14:50 +01:00
bjorn3
54b1d101ef Test bootstrapping of rustc using cg_clif 2020-11-02 18:54:55 +01:00
bjorn3
646b00ff77 Revert unintentional change 2020-11-02 18:54:10 +01:00
bjorn3
520a61f21b
Merge pull request #1104 from bjorn3/build_system_refactor
Build system refactor
2020-11-02 18:46:36 +01:00
bjorn3
8315730895 Upload prebuilt cg_clif 2020-11-02 18:24:21 +01:00
bjorn3
0c34f5aba8 Refactor the build system 2020-11-02 18:17:39 +01:00
bjorn3
9410b5820a Update build instructions 2020-11-01 19:51:35 +01:00
bjorn3
1ea618a7b6 Make it easier to use build_sysroot.sh 2020-11-01 19:47:14 +01:00
bjorn3
cb367602ff Split the actual tests out into scripts/tests.sh 2020-11-01 19:39:44 +01:00
bjorn3
324e63de28 Ensure that sysroot build works with CARGO_TARGET_DIR set 2020-11-01 19:38:21 +01:00
bjorn3
8b9c2135d0 Fix transmutes between vectors and integers
Fixes #1102
2020-11-01 18:35:19 +01:00
bjorn3
c674c2c46c Hide anonymous allocations from linked artifact 2020-11-01 14:45:41 +01:00
bjorn3
c1cad03c4e
Merge pull request #1100 from mominul/trans->codegen
Rename trans to codegen
2020-11-01 14:44:25 +01:00
Muhammad Mominul Huque
d27f2f0932
Rename trans to codegen 2020-11-01 19:24:30 +06:00
bjorn3
8063c37b7e
Merge pull request #1099 from bjorn3/fix_rustc_bootstrap
Update Cranelift
2020-11-01 10:10:23 +01:00
bjorn3
f4e8af268b Update Cranelift
Fixes bootstrapping of rustc using cg_clif

Fixes #1097
2020-11-01 09:50:33 +01:00
bjorn3
6b1902a0fa Update Cranelift 2020-10-31 19:38:35 +01:00
bjorn3
34be539ca4 Use Pointer::dangling for ZST's in trans_const_value 2020-10-31 18:31:29 +01:00
bjorn3
c067be07c1 Implement -Zfunction-sections 2020-10-31 10:13:35 +01:00
bjorn3
114be422ef Rustup to rustc 1.49.0-nightly (ffe52882e 2020-10-30) 2020-10-31 10:12:51 +01:00
bjorn3
4cc6b4f9bf Fix many clippy warnings 2020-10-28 21:47:25 +01:00
bjorn3
5103a258aa Rustup to rustc 1.49.0-nightly (07e968b64 2020-10-27) 2020-10-28 11:36:57 +01:00
bjorn3
9842954d9f
Merge pull request #1096 from bstrie/patch-1
Prefer numeric associated constants in example
2020-10-27 21:29:13 +01:00
Ben Striegel
4206f9fc16
Prefer numeric associated constants in example
Per their documentation, the `max_value()` and `min_value()` associated functions have been superseded by the `MAX` and `MIN` associated constants since Rust 1.43 and are considered "soft deprecated", with all uses currently being replaced in the rustc repo.
2020-10-27 16:20:58 -04:00
bjorn3
2be0596810 Use with_no_trimmed_paths
Fixes compilation without -Ztrim-diagnostic-paths=no
2020-10-27 10:59:09 +01:00
bjorn3
793d26047f Rustup to rustc 1.49.0-nightly (4760b8fb8 2020-10-25) 2020-10-26 09:51:48 +01:00
bjorn3
8ec977e763 Replace write with write_all 2020-10-25 13:33:39 +01:00
bjorn3
d2b8406c20 Remove unused trap_unimplemented_ret_value 2020-10-22 12:44:59 +02:00
bjorn3
8dc71a419e Rustup to rustc 1.49.0-nightly (1eaadebb3 2020-10-21) 2020-10-22 12:44:59 +02:00
Kitsu
04091772bc
Use architecture pointer size for AddConstructor (#1094)
* Use architecture pointer size for AddConstructor

* Update src/backend.rs

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2020-10-16 16:19:22 +02:00
bjorn3
0416f122aa Error on non-constant simd_insert/simd_extract index 2020-10-16 14:03:29 +02:00
bjorn3
4971028775 Rustup to rustc 1.49.0-nightly (dd7fc54eb 2020-10-15) 2020-10-16 09:35:48 +02:00
bjorn3
1c7c591cb8 Fix compilation for non-unix systems 2020-10-15 18:51:49 +02:00
bjorn3
1c272b1224 Fix a compilation error in debug mode 2020-10-15 18:49:50 +02:00
bjorn3
7045b101cc Use MetadataRef in the metadata loader to fix parallel rustc 2020-10-15 16:15:04 +02:00
bjorn3
1c40840738 Fix warning 2020-10-15 15:39:06 +02:00
bjorn3
fed612c75a Output clif ir to output dir instead of hardcoded path
This is necessary for reproducable builds.
2020-10-15 10:57:56 +02:00
bjorn3
a233646dfc Rustup to rustc 1.49.0-nightly (e160e5cb8 2020-10-14) 2020-10-15 10:34:13 +02:00
bjorn3
6258b86c40 Rustup to rustc 1.49.0-nightly (c71248b70 2020-10-11) 2020-10-12 14:23:36 +02:00
bjorn3
2f2d3b2fd4 Avoid iadd for ptr const val with zero offset 2020-10-12 12:04:17 +02:00