Commit graph

1601 commits

Author SHA1 Message Date
bjorn3
3f4926f43f Rustup to rustc 1.30.0-nightly (d5a448b3f 2018-08-13) and update Cargo.lock 2018-08-14 10:02:28 +02:00
bjorn3
a6835385fb Update Cargo.lock 2018-08-13 21:40:14 +02:00
bjorn3
43a94ffdf8 Add comment about how to use local cranelift checkout 2018-08-13 21:39:18 +02:00
bjorn3
257a607e3e Change build.sh a bit 2018-08-13 19:40:40 +02:00
bjorn3
b9d7164eff Fix and test checked binops 2018-08-13 19:14:55 +02:00
bjorn3
4ee2a864b5 Rustfmt 2018-08-13 19:03:30 +02:00
bjorn3
6d1f0068d1 Implement nested and mutable statics (fixes #9) 2018-08-13 19:02:42 +02:00
bjorn3
7f62fedeb8 Implement basic statics (#9) 2018-08-13 18:35:30 +02:00
bjorn3
c7ed1ce033 Rustfmt 2018-08-13 18:04:39 +02:00
bjorn3
d331758f6d Add helper function to pop an element from a HashSet 2018-08-13 17:22:24 +02:00
bjorn3
4615359e86 Define data for all allocs during finalization 2018-08-13 16:58:07 +02:00
bjorn3
b707da40a5 Change todo map to set of alloc id's in constant.rs 2018-08-13 16:26:30 +02:00
bjorn3
49d24a6333 Remove elements from the todo list the correct way in constant.rs 2018-08-13 16:03:01 +02:00
bjorn3
c40788c1b2 Simplify define_global_for_alloc_id 2018-08-13 15:34:18 +02:00
bjorn3
1031c659e0 Refactoring of constant.rs in preparation for static codegen 2018-08-13 12:13:43 +02:00
bjorn3
c2e46950eb Update Cargo.lock 2018-08-13 11:39:55 +02:00
bjorn3
23b4db227a Implement basic incremental compilation 2018-08-12 20:49:43 +02:00
bjorn3
5859b9b65d Rustfmt 2018-08-12 18:56:05 +02:00
bjorn3
8e2394874e Group drop glue instances in unimpl log 2018-08-11 15:36:08 +02:00
bjorn3
57ba6411c2 Measure translation speed 2018-08-11 15:21:26 +02:00
bjorn3
46ebc2bc5c Make the hello world example runnable 2018-08-11 15:05:57 +02:00
bjorn3
9a8c25ae75 Improve mini_core_hello_world.rs 2018-08-11 14:52:00 +02:00
bjorn3
af69258971 Use tcx.symbol_name 2018-08-11 14:30:05 +02:00
bjorn3
39cc4fd3fc Don't translate intrinsic func operand 2018-08-11 14:24:05 +02:00
bjorn3
d5a5aec022 Use get_function_name_and_sig for calling function from backend 2018-08-11 14:10:00 +02:00
bjorn3
50375db36c Rustfmt 2018-08-11 13:59:34 +02:00
bjorn3
2e0d6d49bf Deduplicate function name generation 2018-08-11 13:59:08 +02:00
bjorn3
419cbcbe2f Refactor abi.rs to make it easier to change the abi 2018-08-11 12:37:50 +02:00
bjorn3
dc323d7ffa Don't call finalize_all and then finalize_function 2018-08-11 12:07:42 +02:00
bjorn3
b391524b4f Move return codegen to abi.rs 2018-08-11 11:01:48 +02:00
bjorn3
4df09f7325 Pass CPlace to codegen_intrinsic_call 2018-08-11 10:58:31 +02:00
bjorn3
973f191136 Move more code to codegen_intrinsic_call 2018-08-10 19:43:01 +02:00
bjorn3
29ab744f62 A small change 2018-08-10 19:31:02 +02:00
bjorn3
5ebcea23e4 Extract codegen_intrinsic_call 2018-08-10 19:20:13 +02:00
bjorn3
5629c423ff Add #!/bin/bash to build.sh 2018-08-10 19:09:21 +02:00
bjorn3
742abd011b Implement intrinsic arith_offset 2018-08-09 15:56:24 +02:00
bjorn3
e1ac09a3f0 Implement bool -> int cast 2018-08-09 15:44:01 +02:00
bjorn3
913daae0b4 Color libcore build output 2018-08-09 15:43:47 +02:00
bjorn3
4c312faf90 brz <-> brnz 2018-08-09 15:36:02 +02:00
bjorn3
11df0f5bd1 Remove patch "0004-Disable-float-fmt-because-it-is-big" 2018-08-09 15:33:18 +02:00
bjorn3
a45f0ee6e3 Add a log for unimplemented stuff 2018-08-09 15:30:26 +02:00
bjorn3
48701d758d Crash on some less code and fix a bug in discriminant read 2018-08-09 15:08:54 +02:00
bjorn3
e9422fd4d4 Implement Rvalue::Aggregate(AggregateKind::Array, ...) 2018-08-09 11:42:35 +02:00
bjorn3
2fd0d52834 Rustfmt 2018-08-09 11:25:14 +02:00
bjorn3
566803f288 Implement raw ptr -> usize, fn ptr -> usize, usize -> raw ptr casts 2018-08-09 11:23:04 +02:00
bjorn3
9a2b1d4ac3 Implement float -> float and int -> float casts 2018-08-09 11:16:46 +02:00
bjorn3
6c86274943 Implement raw ptr -> usize cast 2018-08-09 11:07:10 +02:00
bjorn3
f900b99e27 Improve build.sh 2018-08-09 10:55:13 +02:00
bjorn3
f4e622cedc Add basic ssa analyzer 2018-08-09 10:46:56 +02:00
bjorn3
72fa53bac3 Use correct dylib extension for local os 2018-08-08 19:46:16 +02:00