Commit graph

59 commits

Author SHA1 Message Date
Folkert
8528e5affb upgrade inkwell 2020-11-17 01:58:30 +01:00
rvcas
1c8bb74268 feat(List): add sum builtin 2020-11-15 11:08:27 -05:00
Chad Stearns
d41e940b7f Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-07 02:07:52 -05:00
lrosa007
39d5221810 pass list_elem_layout down to build_eq 2020-11-05 11:07:07 -05:00
lrosa007
82820ac4a0 no need to clone match on &list_layout 2020-11-05 09:07:02 -05:00
lrosa007
d880293afa remove match cause build_eq can tell if it can't compare the BasicEnumValues 2020-11-05 08:54:12 -05:00
lrosa007
0266754963 fix: bad double condition made no sense 2020-11-04 22:00:32 -05:00
lrosa007
deb249bdb4 llvm yells now 2020-11-04 21:56:42 -05:00
lrosa007
9269f1d8a7 feat(List): start contains function 2020-11-04 21:09:15 -05:00
Chad Stearns
c412a8e0db Merge in remote trunk 2020-11-01 11:38:44 -05:00
Pit Capitain
3f91bd4b23 Fix bug in List.walkRight accumulator types 2020-10-29 16:31:07 +01:00
Chad Stearns
bf81e67a89 WIP on Str.split 2020-10-18 21:12:08 -04:00
Brendan Hansknecht
46db0fd989 Properly size refcount based on system ptr size 2020-09-29 17:27:29 -07:00
Folkert
f492800a28 recursive refcount on lists 2020-09-22 21:58:45 +02:00
Richard Feldman
5d3645350d Merge remote-tracking branch 'origin/trunk' into small-str 2020-09-16 02:23:06 -04:00
Chad Stearns
9746e9f240 Cleaned up code, made clippy happy, deleted old List.keep_if implementation 2020-09-13 17:12:01 -04:00
Chad Stearns
30b7545da0 Fixed inplace problem in list_set 2020-09-13 15:04:34 -04:00
Chad Stearns
9351746952 Store capacity in unique list 2020-09-13 14:56:01 -04:00
Chad Stearns
4e7aecc434 Complied with clippy 2020-09-13 14:55:37 -04:00
Chad Stearns
3112025b0c Passed down inplace to everything that uses allocate_list 2020-09-13 14:46:21 -04:00
Chad Stearns
0a1e297b0f Passed result layout down build expr function 2020-09-13 13:31:57 -04:00
Richard Feldman
4ef800d4b7 Add some TODOs about memcpys 2020-09-12 23:05:25 -04:00
Richard Feldman
8e8a41079e Separate out str_is_not_empty
Also have list_is_not_empty use ptr_int instead of i64
2020-09-12 21:48:51 -04:00
Richard Feldman
fe01a9ce0f
Update a comment 2020-09-10 21:24:07 -04:00
Folkert
145f75d72b list reverse in-place 2020-09-11 00:59:19 +02:00
Folkert
4c995b12a6 move refcounting code gen into its own module 2020-09-08 15:51:38 +02:00
Folkert
25cd0a2c02 codegen for walkRight 2020-09-06 22:03:46 +02:00
Chad Stearns
5d0ec57461 List.walkRight definition in unique, std, builtins, etc. No implementation 2020-09-06 14:06:08 -04:00
Chad Stearns
9de9831823 Code clarity changes to List.keepIf, including many comments 2020-09-05 19:02:04 -04:00
Chad Stearns
90a3771584 Fix comment definitions for List.keepIf and List.append 2020-09-05 19:01:26 -04:00
Chad Stearns
efbc8b4192 Renamed some llvm code block operations 2020-09-05 02:52:27 -04:00
Chad Stearns
b02f8af37e Complete implementation of List.keepIf, that is currently not passing tests 2020-08-30 21:29:14 -04:00
Chad Stearns
8b31419b2c Merge in remote 2020-08-30 15:38:43 -04:00
Chad Stearns
08dba946e6 Use struct parameter 2020-08-29 23:03:56 -04:00
Chad Stearns
379235fd7e Improved comment 2020-08-29 22:44:56 -04:00
Chad Stearns
257cb88511 Added name parameter to non_emptylist_function 2020-08-29 22:31:14 -04:00
Chad Stearns
f2a8065adc Moved over to incrementing_elem_loop from incrementing_index_loop 2020-08-29 21:56:52 -04:00
Chad Stearns
dedbd5b3bd partial work on using if_non_empty in list_map 2020-08-29 20:01:17 -04:00
Chad Stearns
a83891011d if_non_empty helper function 2020-08-29 19:56:55 -04:00
Chad Stearns
a0a00d3521 Store list helper function 2020-08-29 19:56:42 -04:00
Chad Stearns
30046d1ad4 basic List.keepIf set definition, but no implementation 2020-08-29 15:47:11 -04:00
Folkert
73bb8e58c5 List.map: set calling convention explicitly 2020-08-27 00:34:57 +02:00
Chad Stearns
4ea52c139d List.map implementation 2020-08-23 19:35:21 -04:00
Chad Stearns
800b99d165 Try different List.map unique implementation 2020-08-22 19:46:29 -04:00
Richard Feldman
50251c678b
Merge branch 'trunk' into str-concat 2020-08-19 23:05:13 -04:00
Folkert
bfa11cf6b0 appease the clipman 2020-08-19 23:46:56 +02:00
Folkert
fa5e5ab201 back to a working version 2020-08-19 23:42:45 +02:00
Chad Stearns
72558c61f1 Implemented Str.concat 2020-08-19 02:00:49 -04:00
Chad Stearns
2f2763351d Change parameters to List.concat. Now it is less dependent on &args 2020-08-19 02:00:40 -04:00
Folkert
294273283b make shared quicksort work 2020-08-15 00:14:20 +02:00