Commit Graph

2246 Commits

Author SHA1 Message Date
Richard Feldman
f652687718 Upgrade Inkwell 2020-02-28 21:51:57 -05:00
Richard Feldman
44f7e1b078 Code gen Str in Crane 2020-02-28 21:36:23 -05:00
Richard Feldman
b3ead65c44 Remove obsolete test 2020-02-28 21:36:23 -05:00
Richard Feldman
c610091f29 Fix malloc in crane 2020-02-28 21:36:23 -05:00
Richard Feldman
e19b5da411 Early pass at malloc in crane 2020-02-28 21:36:23 -05:00
Richard Feldman
13699a900f Add Str to cranelift 2020-02-28 21:36:23 -05:00
Richard Feldman
8e568789b9 Add malloc to Cranelift 2020-02-28 21:36:23 -05:00
Richard Feldman
43229365ed Upgrade to Cranelift 0.59 2020-02-28 21:36:23 -05:00
Richard Feldman
4c7b41a9c4 Test basic_str on cranelift too 2020-02-28 21:36:22 -05:00
Richard Feldman
fcafc68274
Merge pull request #204 from rtfeldman/llvm-str
Generate Str values in LLVM
2020-02-28 21:35:42 -05:00
Folkert
f7978d13b7 convert Bool into a SendType equivalent 2020-02-28 23:39:00 +01:00
Folkert
a55e29e6a0 add signatures for boolean functions 2020-02-28 23:18:26 +01:00
Richard Feldman
63a4b6912e Clippy gonna clip 2020-02-27 20:58:14 -05:00
Richard Feldman
f8120d5e41 Generate strings in LLVM 2020-02-27 20:58:14 -05:00
Richard Feldman
7b79bdb7b4 Improve some LLVM logging 2020-02-27 20:58:14 -05:00
Richard Feldman
d663633f69 Add a test for LLVM string generation 2020-02-27 20:58:14 -05:00
Richard Feldman
d9e79fc439 Allow transforming output in test_gen 2020-02-27 20:58:14 -05:00
Richard Feldman
c934c94bf6 Sign-extend int literals 2020-02-27 20:58:14 -05:00
Richard Feldman
ef460de384
Merge pull request #205 from rtfeldman/unique-builtins
Special-case List functions
2020-02-27 20:57:26 -05:00
Folkert
4ee248ffac Merge remote-tracking branch 'origin/trunk' into unique-builtins 2020-02-28 00:33:43 +01:00
Folkert
6127bcaf3d special-case list functions 2020-02-28 00:29:35 +01:00
Folkert
d7a42c6423 implement Access 2020-02-27 19:46:39 +01:00
Richard Feldman
2fbfdf2b72
Merge pull request #203 from rtfeldman/mono
Code gen integer addition, subtraction, and multiplication
2020-02-26 20:08:06 -05:00
Richard Feldman
23899bfd5d Fix spurious test failures 2020-02-26 19:43:51 -05:00
Richard Feldman
e90b8fd62f Test gen order of operations arithmetic 2020-02-25 23:33:03 -05:00
Richard Feldman
71eacdabab Gen integer multiplication 2020-02-25 23:33:03 -05:00
Richard Feldman
8e7783e105 Add a type for multiplication 2020-02-25 23:33:03 -05:00
Richard Feldman
46c7474d94 Gen integer subtraction 2020-02-25 23:33:03 -05:00
Richard Feldman
d6383a6200 Gen integer addition 2020-02-25 23:33:03 -05:00
Richard Feldman
cad3803a7e Add test for monomorphized Num.add 2020-02-25 23:33:03 -05:00
Richard Feldman
d760cf0a9f
Merge pull request #202 from rtfeldman/unique-builtins
Load with unique builtins
2020-02-25 23:32:55 -05:00
Folkert
5be62b14b8 groundwork for nicer usage analysis 2020-02-25 23:45:05 +01:00
Folkert
74d51e9582 don't reuse flex var names 2020-02-25 15:52:15 +01:00
Folkert
971b5a5c01 Merge branch 'unique-builtins' of github.com:rtfeldman/roc into unique-builtins 2020-02-25 13:15:24 +01:00
Folkert
9d5d852af0 soft clippy warm clippy little ball of fur 2020-02-25 13:14:54 +01:00
Folkert
2abed3e90a make all unique load tests pass 2020-02-25 13:14:54 +01:00
Folkert
2dc1f0de30 implement unique builtins for Quicksort 2020-02-25 13:14:54 +01:00
Folkert
b17a768b59 WIP 2020-02-25 13:14:54 +01:00
Folkert
afe4cf7ee8 test load with uniqueness inference 2020-02-25 13:14:54 +01:00
Folkert
26924a92fe soft clippy warm clippy little ball of fur 2020-02-25 13:08:39 +01:00
Folkert
8252532d8b make all unique load tests pass 2020-02-25 13:04:24 +01:00
Folkert
c4493247ed implement unique builtins for Quicksort 2020-02-25 13:01:35 +01:00
Richard Feldman
c225ccc029
Merge pull request #201 from rtfeldman/mono
Use Symbol in `mono::Expr`
2020-02-25 01:42:33 -05:00
Richard Feldman
1fa411f593 Record LLVM proc headers in a separate pass.
Turns out this was always necessary, and was
only working before by chance - because the
ordering in the one test we had for this
happened to work out.
2020-02-25 01:29:15 -05:00
Richard Feldman
80511e6381 Revert "Attempt to fix unnamed function lookups"
This reverts commit 8cbeea9f011faed851bbd401de4309a9f59b9f61.
2020-02-25 01:29:15 -05:00
Richard Feldman
9888114ab0 Attempt to fix unnamed function lookups 2020-02-25 01:29:15 -05:00
Richard Feldman
1899f30912 Use intern tables over .emit() 2020-02-25 01:29:15 -05:00
Richard Feldman
3f35aa1f61 Use IdentIds instead of idents in code gen 2020-02-24 23:20:05 -05:00
Richard Feldman
b378dbc18d Rename test_emit to test_gen 2020-02-24 23:20:05 -05:00
Richard Feldman
78ae9e1452 Use Symbol in mono and build 2020-02-24 20:13:41 -05:00