Richard Feldman
7f05678bf8
Merge branch 'trunk' into int-rem
2020-05-13 22:53:31 -04:00
Chad Stearns
7df4771f7b
Int.rem
2020-05-13 04:27:08 -04:00
Richard Feldman
b5e4066c49
clippy clop
2020-05-10 15:22:05 -04:00
Richard Feldman
33a5f36d7c
Refactor out name
arg from from_can
2020-05-10 15:13:18 -04:00
Richard Feldman
85ec1e0f72
Fix anonymous function code gen
2020-05-10 15:13:18 -04:00
Richard Feldman
bf11262e61
Move layout_id from mono to gen
...
This is because it's actually important that mono never use this.
It should only be used in gen, because it's only safe to use
synchronously, and it's important that mono be done in parallel.
Moving it to gen guarantees that mono will not use it, even accidentally!
2020-05-10 15:13:18 -04:00
Richard Feldman
6e05ba816f
Have CallByName use Layout
2020-05-10 15:13:18 -04:00
Richard Feldman
4bfdea03a9
Drop dead code
2020-05-10 09:58:42 -04:00
Richard Feldman
8572879e0d
Remove unused procs argument
2020-05-09 22:41:59 -04:00
Richard Feldman
c49abfe2de
Add layout to CallByName
2020-05-09 22:41:59 -04:00
Chad Stearns
d2cea5237b
Remove commented out INT_ABS implementation
2020-05-09 18:01:36 -04:00
Chad Stearns
1d1f620090
Int Abs
2020-05-09 17:56:10 -04:00
Chad Stearns
7331e55a25
Cargo fmt
2020-05-08 04:07:07 -04:00
Chad Stearns
8e8412bf94
FLOAT_ABS test, and NUM_ABS generally, but not implemented
2020-05-08 00:49:08 -04:00
Chad Stearns
d1b00633be
INT NEQ for i1 and i8 integer types
2020-05-01 17:29:43 -04:00
Chad Stearns
71258e0e59
Implemented INT_NE_i64
2020-05-01 16:31:19 -04:00
Richard Feldman
c39b43a265
Code gen numeric comparisons
2020-04-28 18:33:51 -04:00
Richard Feldman
952e5fa012
clippity clip clippy
2020-04-27 20:35:19 -04:00
Richard Feldman
dfb1c2d8a3
Always store collections as (usize, usize)
2020-04-27 20:05:35 -04:00
Richard Feldman
32d6615108
Attempt to store i8 arrays for collection wrappers
...
This ultimately didn't work because the bitcasting we wanted wasn't allowed.
2020-04-27 20:04:38 -04:00
Chad Stearns
0cfed05008
Implemented div unsafe
2020-04-26 18:11:46 -04:00
Chad Stearns
aa72619952
Implemenet code gen for int div
2020-04-26 14:38:09 -04:00
Richard Feldman
aac5077c8b
Remove DEFAULT_CALLING_CONVENTION
2020-04-23 17:41:05 -04:00
Richard Feldman
5b7a16afad
Add intrinsics for sqrt and round
2020-04-23 17:41:05 -04:00
Richard Feldman
ea713023e8
Add explicit OptLevel to add_passes
2020-04-16 20:26:08 -04:00
Richard Feldman
2a03a74135
Use the equivalent of -O3 in Inkwell
2020-04-16 19:26:25 -04:00
Richard Feldman
5980bc38da
Merge remote-tracking branch 'origin/trunk' into order-of-ops
2020-04-15 05:03:42 -04:00
Richard Feldman
9288e20469
Upgrade to LLVM 10
2020-04-08 06:41:53 -04:00
Richard Feldman
01f3ae893f
Use include_bytes! to import llvm bitcode
2020-04-01 23:24:00 -04:00
Richard Feldman
63b38ae174
clippy the original clipper
2020-04-01 00:03:27 -04:00
Richard Feldman
67e68d57b4
cargo fmt
2020-03-31 23:56:31 -04:00
Richard Feldman
cda6a21fa4
Implement Num.toFloat
2020-03-31 23:51:17 -04:00
Richard Feldman
37492f4aa6
Load builtins on startup
2020-03-31 23:50:55 -04:00
Richard Feldman
5f817d8019
Add a basic CLI
2020-03-30 21:27:37 -04:00
Richard Feldman
0a0a736153
Move pass managers into llvm::build
2020-03-30 21:27:02 -04:00
Richard Feldman
ebb4963da7
Extract bounds check
2020-03-27 00:18:12 -04:00
Richard Feldman
ceb9cdd452
Revert "Attempt to bitcast structs"
...
This reverts commit a5b50730c33437f459da8705ee186f8f354c2454.
2020-03-27 00:18:12 -04:00
Richard Feldman
ab79e20956
Attempt to bitcast structs
2020-03-27 00:18:12 -04:00
Richard Feldman
e27359a812
Revert "Switch from i1 to i8 for bools"
...
This reverts commit 360d55483daa7eba53d66c7f14f9aec9db841986.
2020-03-27 00:18:12 -04:00
Richard Feldman
0217913dc7
Switch from i1 to i8 for bools
2020-03-27 00:18:12 -04:00
Richard Feldman
76fd347801
Explicitly set calling convention
2020-03-27 00:18:12 -04:00
Folkert
ad23fc7e4b
Merge remote-tracking branch 'origin/trunk' into tail-calls
2020-03-26 14:57:28 +01:00
Folkert
1108e56750
add Bool.not
2020-03-26 14:48:11 +01:00
Richard Feldman
a561f343b2
Remove Cranelift for now.
2020-03-25 20:19:58 -04:00
Richard Feldman
8390bd966a
Revert "Try using special struct return values"
...
This reverts commit 0628c104513d1cae44859c1d804177c4a1e33c95.
2020-03-25 19:47:28 -04:00
Richard Feldman
2491b2e43b
Restore some more things to how they were before
2020-03-25 19:47:28 -04:00
Richard Feldman
0951f8048e
Try using special struct return values
2020-03-25 19:47:28 -04:00
Richard Feldman
72742f3e4c
Restore some things to how they were before
2020-03-25 19:47:28 -04:00
Richard Feldman
f27f324c4c
Make clone_list more robust in crane build
2020-03-25 19:47:28 -04:00
Richard Feldman
5d28ae5fa6
Let us never speak of this again.
2020-03-25 19:47:28 -04:00