Commit graph

647 commits

Author SHA1 Message Date
shua
f7bec802c0
PR: rename to List.concatUtf8 2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8 2024-06-07 19:05:52 +02:00
Brendan Hansknecht
dc539f759d
Improve OptSize implementation in Roc
1. Use the llvm `Oz` pipeline.
2. Avoid adding extra optimization passes.

This shrunk rocci-bird by ~16%.
2024-05-01 08:25:34 -07:00
Fabian Schmalzried
4066d56b24
fix clippy errors 2024-04-02 00:04:59 +02:00
Fabian Schmalzried
313a3d37e6
move finctions 2024-04-01 21:08:17 +02:00
Fabian Schmalzried
376202c6e8
fix from parts 2024-04-01 21:08:16 +02:00
Fabian Schmalzried
9a91597b27
Windows to parts 2024-04-01 21:08:16 +02:00
Fabian Schmalzried
a1bd36812d
fix for llvm-wasm 2024-04-01 21:08:15 +02:00
Anton-4
ae2506469c
added comment
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-04-01 21:08:15 +02:00
Fabian Schmalzried
609a8091c4
remve unused import 2024-04-01 21:08:14 +02:00
Fabian Schmalzried
834015a758
From parts works with llvm 2024-04-01 21:08:13 +02:00
Fabian Schmalzried
e697064ae3
XtoParts works in llvm
TODO: celanup
2024-04-01 21:08:13 +02:00
Anton-4
35a26eb39f
fix typos, WIP on NumF32ToParts 2024-04-01 21:08:12 +02:00
Fabian Schmalzried
4269608ebf
remove i128OfDec 2024-04-01 21:08:12 +02:00
Fabian Schmalzried
11998b9cc8
f32FromParts and f64FromParts for repl 2024-04-01 21:08:10 +02:00
Fabian Schmalzried
473b8ef2d3
f32/f64toParts in repl only 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
64e9899cad
Add Num.withDecimalPoint 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
9c664172dd
Add Num.withoutDecimalPoint 2024-04-01 21:08:09 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Anton-4
76c47c5d6f
stylistic improvements 2024-03-09 20:47:19 +01:00
Jonathan Schear
504e00d44d
Group toplevel expects by module, run them separately 2024-03-08 14:56:32 -05:00
Richard Feldman
739565e836
Revert "Remove obsolete ListLenUsize"
This reverts commit ad1bca4ac9c40d336522f944df60d61a814435dd.
2024-02-17 13:20:34 -05:00
Richard Feldman
87d4760356
Remove obsolete ListLenUsize 2024-02-17 13:20:34 -05:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
74e58d3d51
Fix decode_from_utf8_result 2024-02-17 13:20:33 -05:00
Richard Feldman
ada83561e5
Split ListLen into ListLenU64 and ListLenUsize
The usize one gets used internally for things like
pattern matches. This is both more efficient (means
they don't have to do unnecessary casts) and also
less error-prone due to e.g. comparing length to
capacity, which is usize.
2024-02-14 21:00:49 -05:00
Richard Feldman
a15cc0589c
Revert "Fix some usize -> u64 in List patterns"
This reverts commit e8a0b0930d.
2024-02-14 20:17:14 -05:00
Richard Feldman
e8a0b0930d
Fix some usize -> u64 in List patterns 2024-02-13 12:50:55 -05:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat 2024-02-11 12:26:36 -05:00
Brendan Hansknecht
738a3b5282
update some compiler-rt dce protection 2024-02-08 11:52:25 -08:00
Richard Feldman
f79ff6d496
Remove unused lowlevel StrGetCapacity 2024-02-01 21:37:16 -05:00
Richard Feldman
6a6c25d32d
Update some docs and names 2024-02-01 21:30:44 -05:00
Brendan Hansknecht
fc6b519b59
Merge pull request #6463 from roc-lang/dec-pow
`Num.pow` for `Dec`
2024-02-01 09:17:55 -08:00
Richard Feldman
0b42a902ab
Have List.withCapacity lowlevel use u64 over usize 2024-01-31 20:29:17 -05:00
Brendan Hansknecht
47ba132905
Correct windows return by pointer calculation
I always thought this was wrong. Saw it again today and decided to look it up.
Windows will return by pointer for anything over 64bits on an x86_64 machine.

Note: this is wrong for windows aarch64, but I will correct that in a PR where I clean up targets.
https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170#return-values
https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=msvc-170#return-values
2024-01-30 21:37:51 -08:00
Richard Feldman
aabd95404f
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-30 21:42:45 -05:00
Brendan Hansknecht
e7be9d435d
Merge pull request #6460 from roc-lang/dec-div-floor
`floor`, `ceiling` and `round` for `Dec`
2024-01-30 16:38:12 -08:00
Folkert
e16b25c93e
Num.pow for Dec 2024-01-30 16:33:50 +01:00
Folkert
2e648cfdd5
add support in llvm/wasm backends 2024-01-29 16:16:06 +01:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-29 07:23:58 -05:00
Folkert
b0d57587e3
List.get with negative index in repl 2024-01-28 22:21:40 +01:00
Brendan Hansknecht
d76394ac31
Fix the nonnull attribute
The current version will fail if run through the `opt` tool.
nonnull should have no data attached.
2024-01-27 08:36:06 -08:00
Richard Feldman
9518d76cd8
Remove Num.bytesTo___ functions
These may be reintroduced in some form later,
but they don't handle endianness and it's not
clear builtins are the right place for them.
2024-01-26 16:23:19 -05:00
Richard Feldman
5b2998966b
Update List.replace to no longer use Nat 2024-01-26 16:06:09 -05:00
Richard Feldman
a8918a4e3b
Update List.dropAt to no longer use Nat 2024-01-26 16:06:09 -05:00
Richard Feldman
4a870c8ee0
Update Nat to U64 in some comments 2024-01-26 16:06:09 -05:00
Richard Feldman
a71188dc30
Update List.sublist to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
2cf7b5b5ca
Update List.swap to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
27474d4ed8
Update List.reserve to no longer use Nat 2024-01-26 16:06:08 -05:00
Richard Feldman
97f21e65fe
Update ListLen and ListGetUnsafe to not use Nat 2024-01-26 16:05:56 -05:00