Commit graph

3906 commits

Author SHA1 Message Date
Richard Feldman
bec7254d92 Zero-initialize small strings using memset 2020-09-16 01:38:00 -04:00
Richard Feldman
8e630fc9fc Reproduce small string bug 2020-09-16 01:20:02 -04:00
Richard Feldman
96445262f6 Add memset intrinsic 2020-09-16 01:15:30 -04:00
Richard Feldman
bbbf5de6a5 Simplify call_intrinsic 2020-09-16 01:15:19 -04:00
Jared Ramirez
a0402bca4d Add Num.ceiling 2020-09-15 18:37:45 -07:00
Richard Feldman
099d9e35f6
Merge pull request #518 from rtfeldman/c-abi-progress
C abi progress
2020-09-14 18:28:20 -04:00
Folkert
f794874c68 Merge remote-tracking branch 'origin/trunk' into c-abi-progress 2020-09-14 22:01:12 +02:00
Dimitar Apostolov
bbb05749ab Add LLVM intrinsic for Num.pow 2020-09-14 22:01:12 +02:00
Dimitar Apostolov
d0864608fd Register types for Num.pow 2020-09-14 22:01:12 +02:00
Folkert
ee017084f7 return 3-element records 2020-09-14 21:56:57 +02:00
Folkert
d093f056b7 consider strings 2020-09-14 01:55:23 +02: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
1efc386e5a Fix Str.concat for small strings 2020-09-12 23:25:34 -04:00
Richard Feldman
318e50f98f Drop obsolete Str.concat tests 2020-09-12 23:25:34 -04:00
Richard Feldman
4ef800d4b7 Add some TODOs about memcpys 2020-09-12 23:05:25 -04:00
Richard Feldman
254b93a8ce Add env.small_str_bytes 2020-09-12 23:05:01 -04:00
Richard Feldman
8322006e36 Add tests for the small/big concat combinations 2020-09-12 22:30:04 -04:00
Richard Feldman
d778e82d65 Fix Str.isEmpty 2020-09-12 22:05:08 -04:00
Richard Feldman
d1b1fd3a6a Consistently cast string length to usize 2020-09-12 21:57:11 -04:00
Richard Feldman
e3d0145894 Add Str.isEmpty 2020-09-12 21:56:53 -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
648758f752 Fix Str.concat for big strings 2020-09-12 21:22:37 -04:00
Chad Stearns
a6c3d8edef Mostly implemented big and small string work for Str.concat. Just some bugs somewhere in the llvm 2020-09-12 17:39:41 -04:00
Chad Stearns
89ca6735eb Code compiles for load_str, but does not work 2020-09-12 16:59:00 -04:00
Richard Feldman
5f5c4354da Fix unary negation with field access
Fixes #509
2020-09-12 10:25:45 -04:00
Richard Feldman
532b5c4051 Reproduce #509 (unary negation parse bug) 2020-09-12 10:18:12 -04:00
Jared Ramirez
c6b14e755c Add clarificaton to oks docs 2020-09-11 13:05:59 -07:00
Jared Ramirez
d22d609097 Revert oks type signature 2020-09-11 09:21:05 -07:00
Jared Ramirez
aa5107257e Change builitin List docs 'joinOks' to 'oks' 2020-09-11 09:21:05 -07:00
Richard Feldman
b6f706d124
Merge branch 'trunk' into feature/500-add-num-pow-expr-implementation 2020-09-10 21:25:24 -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
Dimitar Apostolov
51a6e0bde0 Add canonical Expr implementation for NumPow 2020-09-10 14:34:23 +02:00
Dimitar Apostolov
5bbee6217b Add NUM_POW symbol to Num module 2020-09-10 14:34:23 +02:00
Chad Stearns
a318253d48 small str implementation in string literal, and bringing in remote trunk 2020-09-09 21:53:38 -04:00
Chadtech
07784bf6c2
Language clean up and uniqueness section in builtin readme 2020-09-09 12:14:23 -04:00
Folkert
1279999c6c fix how free is called
somehow the previous version compiles passes llvm verification, but hangs when free is actually called
2020-09-08 21:30:23 +02:00
Folkert
1b42831973 implement Num.compare 2020-09-08 19:40:18 +02:00
Folkert
4c995b12a6 move refcounting code gen into its own module 2020-09-08 15:51:38 +02:00
Folkert
0344030015 allow calling of functions passed as arguments 2020-09-08 14:19:47 +02:00
Folkert
ad8e9db896 fix comments/warnings 2020-09-08 14:18:55 +02:00
Richard Feldman
e1b1491588
Merge branch 'trunk' into recursive-layouts 2020-09-07 21:59:49 -04:00
Richard Feldman
99f6146703
Update another comment 2020-09-07 21:59:17 -04:00
Richard Feldman
7e834fbb37
Update a comment 2020-09-07 21:59:06 -04:00
Richard Feldman
aefcdcb36c
Merge pull request #498 from rtfeldman/builtins-readme-warnings
Warning section in builtins readMe
2020-09-07 20:44:10 -04:00