Commit graph

1233 commits

Author SHA1 Message Date
Folkert
c52f866d8a fix tests 2020-08-13 01:40:03 +02:00
Folkert
5ca843822f implement optional fields in let bindings and when 2020-08-13 01:39:59 +02:00
Folkert
3e12f1a309 Merge remote-tracking branch 'origin/tail-call-elimination' into gen-optional-field 2020-08-13 00:21:21 +02:00
Folkert
b05e126d78 add more tests 2020-08-13 00:19:01 +02:00
Folkert
20ddbeb528 implement optional fields in function pattern matches 2020-08-13 00:09:57 +02:00
Folkert
380e34d296 Merge remote-tracking branch 'origin/trunk' into tail-call-elimination 2020-08-12 15:46:50 +02:00
Folkert
8c86836101 add TCE 2020-08-12 14:03:55 +02:00
Folkert
bdd8751107 start work on tail recursion 2020-08-12 12:57:20 +02:00
Folkert
8444c1fe6d always implicitly leak memory in tests (never free on the roc side) 2020-08-12 01:38:42 +02:00
Folkert
2963c44cc6 change tests after branching improvements 2020-08-12 01:36:38 +02:00
Chad Stearns
6e4c24735b Use allocate_list in List.concat for combined_list_ptr 2020-08-11 19:04:59 -04:00
Chad Stearns
29c0bfa65d Use allocate_list in clone_nonempty_list 2020-08-11 19:01:18 -04:00
Chad Stearns
77b4c5d8b6 Merge in remote trunk and resolve conflicts 2020-08-11 18:18:05 -04:00
Folkert
7603225fca generate return earlier, causing more TCE 2020-08-11 22:30:34 +02:00
Richard Feldman
12ed20b5cd Use fast calling convention internally 2020-08-11 09:02:26 -04:00
Folkert
84a8b69437 generate IR that uses uniqueness 2020-08-11 14:47:14 +02:00
Richard Feldman
8803cb9523 Remove an unnecessary newline diff 2020-08-10 23:22:47 -04:00
Richard Feldman
1e9f8e8764 Update test_mono expectations 2020-08-10 23:14:56 -04:00
Richard Feldman
2eab24015c Diff lines on failed test_mono tests 2020-08-10 23:01:37 -04:00
Richard Feldman
b442b9c27a Don't change env.home in specialize_all 2020-08-10 23:01:17 -04:00
Richard Feldman
49a6bd86b4 Procs now store pending specializations by default 2020-08-10 23:00:54 -04:00
Richard Feldman
497a5af72d Avoid a clone 2020-08-10 22:59:14 -04:00
Richard Feldman
8d0c1ddc68 Drop obsolete mono::expr module 2020-08-10 21:25:47 -04:00
Richard Feldman
854f7bb35b Improve an error message 2020-08-10 21:25:47 -04:00
Richard Feldman
c97317789e Improve a comment 2020-08-10 21:25:47 -04:00
Richard Feldman
f4545e8bf7 Expose module thunks 2020-08-10 21:25:47 -04:00
Richard Feldman
35e132e6d7 Fix quicksort benchmark 2020-08-10 21:25:47 -04:00
Richard Feldman
1c828f7811 Have Procs store pending_specializations by default 2020-08-10 21:25:47 -04:00
Richard Feldman
e054131cdd Refactor out a .clone() 2020-08-10 21:25:47 -04:00
Richard Feldman
ce2c2a1f5d Expose all functions in .roc file to C 2020-08-10 21:25:47 -04:00
Richard Feldman
3cc36e5198
Drop unused field 2020-08-10 19:27:29 -04:00
Richard Feldman
582ed7eda6
Drop commented-out code 2020-08-10 19:27:20 -04:00
Richard Feldman
1e7b3de2c2
Drop obsolete comment 2020-08-10 19:27:02 -04:00
Folkert
25e96fcade fix stack overflow in inc/dec 2020-08-10 22:31:20 +02:00
Folkert
ac6d72d077 fix some test failures 2020-08-10 21:41:47 +02:00
Folkert
79ea62b9d4 make uniqueness change codegen 2020-08-10 21:13:57 +02:00
Folkert
9e11526c1d special-case List.len" 2020-08-10 21:06:28 +02:00
Folkert
b4c5c2f793 add variable to list
stores the list type, so we can know whether it is unique
2020-08-10 21:05:57 +02:00
Folkert
4de573b54b use quicksort without closure for loading
the old version worked, but won't run yet because it uses a closure
2020-08-10 20:54:05 +02:00
Folkert
8f7d842d41 apply optimization passes 2020-08-10 13:34:28 +02:00
Folkert
9e75252ddb centralize decision on what is refcounted 2020-08-10 12:59:10 +02:00
Chad Stearns
76a31fb945 Comply with clippyg 2020-08-10 02:10:04 -04:00
Chadtech
2d25f3db1b
Merge branch 'trunk' into organize-list-code-gen 2020-08-10 00:54:02 -04:00
Chad Stearns
331695b85c Rename some indices 2020-08-10 00:53:50 -04:00
Chad Stearns
e65c0cafbb Incrementing index loop helper, deleted some comments, refactored List.concat to avoid some duplicate code work 2020-08-10 00:45:29 -04:00
Richard Feldman
9d18112147 pattern_symbols no longer accepts a slice 2020-08-10 00:15:08 -04:00
Richard Feldman
695408e74e
Merge branch 'trunk' into refcount 2020-08-09 22:32:26 -04:00
Richard Feldman
5f73a0b7ca Add builtin defs in load::file 2020-08-09 21:27:39 -04:00
Chad Stearns
9662ca6bd6 Use bounds_check_comparison more widely 2020-08-09 13:31:39 -04:00
Folkert
4caef70668 Merge remote-tracking branch 'origin/trunk' into refcount 2020-08-09 13:49:13 +02:00