Ayaz Hafiz
32814cbb37
Add test for resolved bug
...
Closes #2389
2022-05-10 09:29:28 -04:00
Ayaz Hafiz
029fbb372b
Fix gen test
2022-05-10 09:24:16 -04:00
Richard Feldman
8453b233bc
Fix test
2022-05-10 08:40:33 -04:00
Folkert
ff48bf0899
min/max abs tests
2022-05-10 13:23:57 +02:00
Richard Feldman
2db527888b
Drop unnecessary parens
2022-05-09 22:31:29 -04:00
Richard Feldman
64065a5019
Add UnionTags::iter_from_subs
2022-05-09 22:29:11 -04:00
Folkert
96bf75469a
formatting
2022-05-10 00:48:57 +02:00
Richard Feldman
1649680fbd
Share sorting code between bindgen and code gen
2022-05-09 18:42:38 -04:00
Richard Feldman
3ce0fc59d4
Remove a continue
`
2022-05-09 18:42:37 -04:00
Richard Feldman
b174ea9ab0
Extract cmp_fields function
2022-05-09 18:42:37 -04:00
Richard Feldman
2f2230a9f3
Avoid an intermediate vector in some cases
2022-05-09 18:42:37 -04:00
Richard Feldman
e86ef8d1ca
Make a lifetime more explicit
2022-05-09 18:42:37 -04:00
Folkert
7461bbcd87
fix load tests
2022-05-09 23:07:54 +02:00
Folkert
5cd36a3c26
add tests for the new min/max constants
2022-05-09 22:56:54 +02:00
Folkert
f77e559c6f
replace maxFloat with maxF64
2022-05-09 22:56:30 +02:00
Folkert
8c4b574e48
remove type def for maxFloat; could only be used by expr2, and it isn't so this is safe
2022-05-09 22:56:09 +02:00
Folkert
cdc61f64ba
fix names of min/max float functions
2022-05-09 22:46:55 +02:00
Folkert
c5ee1effad
use chunks_exact; i spotted some weird things with the normal chunks
2022-05-09 22:46:39 +02:00
Ayaz Hafiz
1521711abd
Lift it all the way up
2022-05-09 16:45:39 -04:00
Ayaz Hafiz
7c1a6037d4
Lift another branch
2022-05-09 16:39:06 -04:00
Ayaz Hafiz
a59739bf20
More lifting
2022-05-09 16:36:13 -04:00
Ayaz Hafiz
bc5dc17ce9
Dead code
2022-05-09 16:29:20 -04:00
Ayaz Hafiz
6b9b64274b
Lift translation of lets
2022-05-09 16:23:00 -04:00
Brian Carroll
ca7d916065
Delete llvm feature from roc_build and roc_cli
2022-05-09 20:40:57 +01:00
Ayaz Hafiz
b92e3a07ac
Remove irrelevant errors
2022-05-09 09:48:30 -04:00
Ayaz Hafiz
b0734c3d80
Disallow abilities on toplevel of scope
2022-05-09 09:45:02 -04:00
Richard Feldman
df7df4ccf8
Merge branch 'trunk' into mfonism/rename-num-float-type-to-frac
2022-05-08 20:54:33 -04:00
Ayaz
3e7702df01
Merge pull request #2910 from rtfeldman/i/2880
...
Ability codegen for Encode/Decode
2022-05-08 19:10:45 -04:00
Richard Feldman
c7037db6d5
Merge pull request #3013 from rtfeldman/hostgen
...
Introduce bindgen CLI
2022-05-08 17:51:20 -04:00
Folkert de Vries
5d3b83f5a6
Merge pull request #2268 from rtfeldman/update_zig_09
...
Update to Zig 0.9 + LLVM 13
2022-05-08 23:29:45 +02:00
ayazhafiz
f2d3865315
Fix can AST walk
2022-05-08 15:17:59 -04:00
Ayaz Hafiz
4bfbe479c9
Useless comment
2022-05-08 15:08:20 -04:00
Ayaz Hafiz
798c28fccd
Dryasdust was a popular word in 1860
2022-05-08 15:08:20 -04:00
Ayaz Hafiz
e31e89ac66
Mark and clear specializations
2022-05-08 15:08:20 -04:00
Ayaz Hafiz
da604e978e
Use SpecializationId to mark specializations
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
2cacda00eb
Add some internal error assertions
2022-05-08 15:08:19 -04:00
Ayaz
d0bd08dbe0
Typo
2022-05-08 15:08:19 -04:00
Ayaz
4858979d6b
Remove stale comment
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
08beedb648
Improve codelink comment
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
b3845c21bd
Print able type variables correctly
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
154b17d9f0
Correct instantiation of delayed opaques
...
I didn't realize that delayed instantiation of aliases instantiates
their real var, not the whole alias type. So prior to this, we were
wrapping all opaques in a structural `Alias(..)`. Which is okay from a
typechecking perspective because Aliases are transparent, but is
wasteful.
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
a47dc711f3
Remove a couple vec allocs
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
5cc6727e9f
Simplify introduced variables in ability member
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
4a623a48dc
Simpl decoder a bit
2022-05-08 15:08:19 -04:00
Ayaz Hafiz
e08b5fa91e
Specializer->Resolver
2022-05-08 15:08:18 -04:00
Ayaz Hafiz
08710c8153
Decoders now code-generate
2022-05-08 15:08:18 -04:00
Ayaz Hafiz
13884c4ce6
Fix solve test
2022-05-08 15:08:18 -04:00
Ayaz Hafiz
1a53daa665
Remove ability todo in mono
2022-05-08 15:08:18 -04:00
Ayaz Hafiz
8bff2875b0
Account for ability specialization in reuse_symbol
2022-05-08 15:08:18 -04:00
Ayaz Hafiz
5a5fc0162d
FlexAble must always constrain a Flex
2022-05-08 15:08:18 -04:00