602 Commits

Author SHA1 Message Date
bjorn3
4e1d219f06 Implement some float intrinsics 2019-06-26 16:06:12 +02:00
bjorn3
db5ffdedf7 Implement bswap intrinsic 2019-06-23 17:32:32 +02:00
bjorn3
d425116bdc Implement some intrinsics 2019-06-23 16:36:14 +02:00
bjorn3
d7274ac5fd Fix load and store for ByValPair values with differently sized components 2019-06-23 15:23:06 +02:00
bjorn3
dd15051f5a Rustup to rustc 1.37.0-nightly (de02101e6 2019-06-22) 2019-06-23 10:47:16 +02:00
bjorn3
2b61f90c71 Fix returning non ZST uninhabited types 2019-06-16 18:03:38 +02:00
bjorn3
01e9303857 Fix SetDiscriminant for generators 2019-06-16 18:01:46 +02:00
bjorn3
bd73128d2e Implement lt, le, ge and gt for fat pointers 2019-06-16 17:59:31 +02:00
bjorn3
c0779d5d1d Add comments for trap::codegen_print gv and fn defs 2019-06-16 17:40:46 +02:00
bjorn3
2eae6bc879 Make a link less prone to breaking 2019-06-16 17:28:29 +02:00
bjorn3
76a178098d Refactor drop codegen 2019-06-16 15:57:53 +02:00
bjorn3
f8c5e10f26 Fix compiling in release mode 2019-06-16 14:47:01 +02:00
bjorn3
3f15b0a24b Implement scalar pair abi pass mode 2019-06-16 12:54:37 +02:00
bjorn3
65bc1e5b5b Fix write_cvalue for ByValPair when the cvalue is not trivially a pair
`write_cvalue` didn't work for `Box<[u8]>`, because the inner fat ptr
was wrapped inside a newtype, which meant `Box<[u8]>` itself only had
one field.

This also simplifies `CValue::force_stack` by reusing `write_cvalue`
when it is not already on the stack.
2019-06-16 12:51:16 +02:00
bjorn3
4d406cdcad Rustup to rustc 1.37.0-nightly (0dc9e9c10 2019-06-15) 2019-06-16 11:13:49 +02:00
bjorn3
6d1bc088a7 Rustup to rustc 1.37.0-nightly (2887008e0 2019-06-12) 2019-06-13 20:44:40 +02:00
bjorn3
5e2ea4f194 Fix debuginfo generation when given source path doesn't contain a dir (eg plain lib.rs) 2019-06-12 18:30:27 +02:00
bjorn3
44a98df8c2 Remove workaround for previously missing encoding 2019-06-11 17:24:11 +02:00
bjorn3
07bb89a02d Fix it 2019-06-11 16:57:59 +02:00
bjorn3
893945bd71 Update for faerie section symbols 2019-06-11 16:45:15 +02:00
bjorn3
847a37fedc Only write metadata module when necessary 2019-06-11 16:45:14 +02:00
bjorn3
8dae241368 [WIP] Use correct segment for metadata section 2019-06-11 16:45:14 +02:00
bjorn3
e8c50cf2c2 Read and write dylib metadata 2019-06-11 16:45:14 +02:00
bjorn3
8fb70f259f Move layout out of the enum for CValue 2019-06-11 16:41:40 +02:00
bjorn3
089e75ec42 Encapsulate CPlace constructors 2019-06-11 16:30:47 +02:00
bjorn3
3f04e73b40 Use CValue::by_val{,_pair} at more places 2019-06-11 16:25:07 +02:00
bjorn3
466ecad2f0 Move CValue and CPlace to separate file and remove duplicate scalar_to_clif_type 2019-06-11 15:43:22 +02:00
bjorn3
d6e07cfcc8 Encapsulate CValue and CPlace creation 2019-06-11 15:32:30 +02:00
bjorn3
d8d405e85b Rustup to rustc 1.37.0-nightly (991c719a1 2019-06-08) 2019-06-09 15:16:45 +02:00
bjorn3
4b5bb3302b Pretty print non local mir bodies too on panic 2019-06-08 20:41:15 +02:00
bjorn3
161c8aa5cf Rustup to rustc 1.37.0-nightly (7cdaffd79 2019-06-05) 2019-06-06 20:31:09 +02:00
bjorn3
d3dbf358ae Rustup to rustc 1.37.0-nightly (03ee55bb1 2019-06-01) 2019-06-02 12:06:02 +02:00
bjorn3
b625e56488 Rustup to rustc 1.37.0-nightly (3ade426ed 2019-05-30) 2019-05-31 10:56:55 +02:00
bjorn3
610f377b7d Rustup to rustc 1.36.0-nightly (f49269398 2019-05-25) 2019-05-26 10:20:35 +02:00
bjorn3
d078fde07a Rustup to rustc 1.36.0-nightly (dec4c5201 2019-05-24) 2019-05-25 12:30:21 +02:00
bjorn3
5593bc8cd3 Update cranelift 2019-05-14 16:12:58 +02:00
bjorn3
0046ce4c85 Partial support for wasm32-unknown-wasi as host triple
This needs a rustc compiled for wasi (see rust-lang/miri#722)
It also needs CraneStation/target-lexicon#14
2019-05-11 12:23:40 +02:00
bjorn3
2aeffa679a Rustup to rustc 1.36.0-nightly (cfdc84a00 2019-05-07) 2019-05-08 20:05:01 +02:00
bjorn3
bb7a990ee7 Extract driver.rs 2019-05-04 16:54:25 +02:00
bjorn3
7bf9b8e6e1 Update gimli 2019-05-04 16:20:43 +02:00
bjorn3
98dae86d21 Update cranelift 2019-05-04 16:15:20 +02:00
bjorn3
8598a34e45 Rustup to rustc 1.36.0-nightly (a3404557c 2019-05-03) 2019-05-04 14:57:41 +02:00
bjorn3
f473ba8f87 Rustup to rustc 1.36.0-nightly (938d4ffe1 2019-04-27) 2019-04-28 20:37:44 +02:00
bjorn3
27ea27e2e3 Fix using using the same vtable twice 2019-04-27 18:49:13 +02:00
bjorn3
aeecb45beb Preserve the order files are added to archives
rust.metadata.bin could have been at the start of an .rlib file confusing ld
2019-04-27 17:47:15 +02:00
bjorn3
11d816cce5 Rustup to rustc 1.36.0-nightly (597f43248 2019-04-26) 2019-04-27 17:44:12 +02:00
bjorn3
9f6a65b08b Update comment 2019-04-24 21:08:11 +02:00
bjorn3
746e5c5142 Remove some debug println's 2019-04-24 20:57:36 +02:00
bjorn3
f096ad14a3 Change module names back 2019-04-24 20:54:01 +02:00
bjorn3
7ab8dda160 Fix gnu archives 2019-04-24 20:50:23 +02:00