Richard Feldman
2993d40b85
Don't support compiling to 128-bit targets
2020-09-30 08:23:44 -04:00
Brendan Hansknecht
46db0fd989
Properly size refcount based on system ptr size
2020-09-29 17:27:29 -07:00
Brendan Hansknecht
5c825209eb
Merge branch 'trunk' into leak-refcount
2020-09-28 20:39:30 -07:00
Pablo Hirafuji
ebdeecd5d2
Run cargo fmt [2]
2020-09-27 20:59:31 -03:00
Pablo Hirafuji
0c0f70aba0
Add more docs files and check def exposition
2020-09-27 20:41:51 -03:00
Pablo Hirafuji
d68d8b4347
Merge branch 'trunk' into feature/docs-read-parse-file
2020-09-27 19:41:47 -03:00
Pablo Hirafuji
aed612a75c
Load docs from files
2020-09-27 19:40:54 -03:00
Brendan Hansknecht
9e9552186e
Fix list refcount dec
2020-09-27 10:18:01 -07:00
Brendan Hansknecht
51e1cd61dd
Intentionally leak memory with 0 for refcount
...
A 0 value for refcount is the max and means leaked/read-only memory.
These values should never be incremented or decremented.
This changes also uses signed overflow when decrementing memory.
2020-09-27 09:34:51 -07:00
Brendan Hansknecht
3d6d5d1ad0
Switch refcount of 1 to be isize::MIN as usize
...
Also, adds helper methods for inc/dec of refcount.
2020-09-27 09:28:23 -07:00
Richard Feldman
47b1d45739
Check in builtins.bc
2020-09-26 23:59:10 -04:00
Richard Feldman
2626be4e39
Extract libm.rs into its own module
2020-09-26 23:57:40 -04:00
Richard Feldman
e55fba8aeb
Extract regenerate.sh script
2020-09-26 23:52:48 -04:00
Richard Feldman
6a82fb27f8
Regenerate builtins.bc
2020-09-26 23:17:03 -04:00
Jared Ramirez
5cafbcd5ad
Add Num.atan builtin
2020-09-26 19:00:51 -07:00
Folkert
f492800a28
recursive refcount on lists
2020-09-22 21:58:45 +02:00
Richard Feldman
94b1760965
Remove redundant variable
2020-09-21 21:27:39 -04:00
Richard Feldman
9381207f61
Clarify some comments
2020-09-21 21:26:56 -04:00
Folkert de Vries
2457042989
Merge branch 'trunk' into num-add-wrap-check
2020-09-21 23:58:05 +02:00
Folkert
9ac5533f80
final touchups
2020-09-21 23:57:05 +02:00
Folkert
515f717536
don't explicitly add filler bytes
...
leaving the memory undefined is fine
2020-09-21 23:55:05 +02:00
Folkert
b42a49035a
fix some comments
2020-09-21 23:52:04 +02:00
Folkert
fb4a796e07
add different variants of addition
2020-09-21 23:38:10 +02:00
Folkert
455b73e8bd
add isFinite to builtins bytecode
2020-09-21 23:31:11 +02:00
Folkert
ac8e3928e3
remove unneeded test
2020-09-21 23:30:11 +02:00
Folkert
95177eee5a
integer addition operations
2020-09-20 20:21:45 +02:00
Folkert
f732eb3e83
crash upon integer overflow
2020-09-20 17:01:00 +02:00
Richard Feldman
007380a00f
Merge remote-tracking branch 'origin/trunk' into exception-handling
2020-09-19 22:48:36 -04:00
Richard Feldman
b50483eedf
Use rtfeldman/inkwell release2 tag
2020-09-19 22:48:29 -04:00
Guilherme Belmonte
c684dad429
Fix typos
2020-09-19 20:52:31 -03:00
Folkert
16fc5dd497
Merge remote-tracking branch 'origin/trunk' into exception-handling
2020-09-19 21:50:57 +02:00
Folkert
be6752542b
update to run on our fork of inkwell again
2020-09-19 21:50:33 +02:00
Folkert
cdb768e458
add file with the roc/rust interface info
2020-09-19 01:47:10 +02:00
Folkert
9a0a13646f
fix repl
2020-09-19 01:46:14 +02:00
Richard Feldman
7aada6c485
Merge pull request #529 from rtfeldman/add-attribution
...
Add attribution for pow_int_
2020-09-17 22:37:17 -04:00
Jared Ramirez
665c7c7f9f
Add Num.floor
2020-09-17 17:44:53 -07:00
Richard Feldman
cc0f2ce700
Add attribution for pow_int_
2020-09-17 20:27:50 -04:00
Folkert
14da3906da
wip
2020-09-18 01:07:53 +02:00
Dimitar Apostolov
9276fd8c9d
Add function to call bitcode
2020-09-17 14:07:25 +02:00
Dimitar Apostolov
e89af31015
Use own implementation of pow_int_ instead of llvm
...
Remove LLVM intrinsics code related to `Num.powInt`.
2020-09-17 14:07:18 +02:00
Dimitar Apostolov
2404882c1a
Add Num.powInt implementation
2020-09-17 11:42:37 +02:00
Dimitar Apostolov
51e4b14131
Add Num.powInt types
2020-09-17 11:36:53 +02:00
Dimitar Apostolov
50223ae93c
Add canonical Expr implementation for Num.powInt
2020-09-17 11:31:13 +02:00
Dimitar Apostolov
11383e97ab
Add Num.powInt symbol
2020-09-17 11:23:57 +02:00
Richard Feldman
1c8383b3bb
clippy things
2020-09-16 19:34:48 -04:00
Richard Feldman
5d3645350d
Merge remote-tracking branch 'origin/trunk' into small-str
2020-09-16 02:23:06 -04:00
Richard Feldman
4713d41e76
Drop obsolete test
2020-09-16 02:03:34 -04:00
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