Richard Feldman
|
39249f3905
|
Add test for List.set bounds checking
|
2020-03-21 22:14:02 -04:00 |
|
Richard Feldman
|
63a8daa4c7
|
Reproduce no bounds checking on List.set in LLVM
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
d0a1adfef9
|
Fix set_shared_int_list for LLVM
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
8a26cac3f2
|
Add a test of just List.set by itself
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
facdc1e2f4
|
Revise some tests a bit
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
cc8683d241
|
Fix use of GEP (was using byte offset, not index)
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
4182e51877
|
Fix set_shared_int_list test
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
e6704d1fcb
|
Streamline empty list LLVM code gen
|
2020-03-21 21:19:18 -04:00 |
|
Richard Feldman
|
fc036453d9
|
Have List.set in LLVM clone before mutating
|
2020-03-21 21:19:18 -04:00 |
|
Folkert
|
9a0234e5dd
|
make bound variables available in guards
|
2020-03-22 01:11:19 +01:00 |
|
Folkert
|
1f3b8f7d68
|
guard exhaustiveness
|
2020-03-21 23:33:37 +01:00 |
|
Folkert
|
a16d48a6a9
|
code gen for simple guards
Guards cannot use variables bound in the pattern yet
|
2020-03-21 22:27:36 +01:00 |
|
Folkert
|
655dc32098
|
support nested pattern matches on tag unions
|
2020-03-20 22:14:38 +01:00 |
|
Folkert
|
0f22cbbf7d
|
fix incorrect layout for Switch
|
2020-03-20 19:56:50 +01:00 |
|
Folkert
|
d0da300042
|
fix equality/hash issue
lead to tests not being merged/shared
|
2020-03-20 16:23:56 +01:00 |
|
Folkert
|
e062404a63
|
support more complex nested patterns
|
2020-03-20 14:27:07 +01:00 |
|
Richard Feldman
|
b33af811d0
|
Merge branch 'trunk' into unit-types
|
2020-03-19 22:05:22 -04:00 |
|
Folkert
|
14979ceb41
|
Merge remote-tracking branch 'origin/trunk' into unit-types
|
2020-03-20 01:02:13 +01:00 |
|
Folkert
|
f44fea42bb
|
Boolean and/or in cranelift
|
2020-03-20 00:59:26 +01:00 |
|
Folkert
|
82655556ab
|
exhaustiveness for record guards
|
2020-03-19 22:34:08 +01:00 |
|
Folkert
|
5fc96c09ee
|
Add record patterns
|
2020-03-19 17:08:29 +01:00 |
|
Folkert
|
9745d86efb
|
add tests
|
2020-03-19 14:59:05 +01:00 |
|
Folkert
|
0593a39e0f
|
uncomment test
|
2020-03-19 12:35:11 +01:00 |
|
Folkert
|
20dc928bfe
|
fix test on maybe
used elm syntax instead of roc
|
2020-03-19 12:32:48 +01:00 |
|
Folkert
|
c31116af87
|
preparation for recursive tag unions
|
2020-03-19 12:20:12 +01:00 |
|
Folkert
|
9d1e2a0ef1
|
support zero-sized values (empty record, unit type)
They now use no stack space
|
2020-03-19 11:31:06 +01:00 |
|
Dan Bruder
|
59bcda21f5
|
tests pass for crane f64
|
2020-03-19 05:46:11 -04:00 |
|
Richard Feldman
|
43c4fadd6e
|
Use usize length, no capacity for llvm List
|
2020-03-18 21:31:01 -04:00 |
|
Richard Feldman
|
59368caa0c
|
Revert various attempts to use target_data
|
2020-03-18 21:26:51 -04:00 |
|
Richard Feldman
|
c425490317
|
Another failed attempt to use target_data
|
2020-03-18 21:26:51 -04:00 |
|
Richard Feldman
|
eed9fb0e69
|
Have Env store TargetData instead of pointer_bytes
|
2020-03-18 21:26:51 -04:00 |
|
Folkert
|
f906c9b4b4
|
uncomment cranelift tests
|
2020-03-18 21:39:39 +01:00 |
|
Folkert
|
99db336033
|
Working pattern match on Result Int Int
|
2020-03-18 21:35:10 +01:00 |
|
Folkert
|
53bd47221c
|
WIP things seem to work in theory
|
2020-03-18 16:44:53 +01:00 |
|
Folkert
|
845e30658e
|
WIP
|
2020-03-18 02:20:21 +01:00 |
|
Folkert
|
165c5d8363
|
load/store all tags in llvm
|
2020-03-17 22:04:11 +01:00 |
|
Folkert
|
6253d2d1af
|
pattern match on single-tag tag unions
in LLVM and crane
|
2020-03-17 19:44:59 +01:00 |
|
Folkert
|
ba69987c1a
|
llvm one element tag store
|
2020-03-17 15:29:40 +01:00 |
|
Folkert
|
c3d550116b
|
make patterns store their bound variables
|
2020-03-17 14:04:26 +01:00 |
|
Folkert
|
6310341b7e
|
Merge remote-tracking branch 'origin/trunk' into pattern-compilation
|
2020-03-17 12:49:30 +01:00 |
|
Richard Feldman
|
9d950389f5
|
Implement list cloning and List.set in Cranelift
|
2020-03-17 00:45:07 -04:00 |
|
Richard Feldman
|
97d084e224
|
Reproduce List.set on a shared list failing
|
2020-03-16 21:55:38 -04:00 |
|
Folkert
|
c20f777dba
|
comment tests that fail for llvm
|
2020-03-17 00:36:58 +01:00 |
|
Folkert
|
74ec3682a2
|
add tests
|
2020-03-17 00:36:58 +01:00 |
|
Folkert
|
c9a90c32e3
|
prepare for Tag code gen
|
2020-03-17 00:36:58 +01:00 |
|
Folkert
|
e742b77e0b
|
parity with old implementation
|
2020-03-17 00:36:58 +01:00 |
|
Richard Feldman
|
6cd8afd5d6
|
Fix using structs with records
|
2020-03-15 15:13:52 -04:00 |
|
Richard Feldman
|
010e390fd6
|
Make using records in defs work
|
2020-03-15 14:31:01 -04:00 |
|
Folkert
|
cdf05bc425
|
remove (now unneeded!) default case
|
2020-03-15 14:42:57 +01:00 |
|
Richard Feldman
|
5c3c30ed09
|
Fix List.get and List.set
|
2020-03-14 21:17:09 -04:00 |
|