gingerBill
2949e4b0c7
Fix floattidf typo
2021-07-10 22:23:22 +01:00
gingerBill
a4be1a5e4c
delete_key now returns the deleted key and deleted value (if found)
2021-07-04 18:52:47 +01:00
gingerBill
9cc366de97
Be more consistent with runtime intrinsics usage
2021-07-03 14:38:15 +01:00
gingerBill
41f2539484
Improve logic for diverging procedures by checking if it terminates
2021-06-16 12:07:24 +01:00
gingerBill
3e7aabe6d8
Change uses for parapoly records to use $ always
2021-06-14 11:43:35 +01:00
gingerBill
9f8a63cb43
More minor stylization changes (remove unneeded parentheses)
2021-06-14 11:34:31 +01:00
gingerBill
28abf5d33b
Correct minimum dependency for complex32
2021-06-08 21:20:33 +01:00
gingerBill
9efd4c5097
Aid code generation on non-release builds
2021-06-08 17:17:24 +01:00
gingerBill
f30e6f50bd
Reorganize code to improve code generation
2021-06-08 16:21:19 +01:00
gingerBill
8ec2ca9dcd
Remove context.thread_id
2021-06-08 15:57:00 +01:00
gingerBill
3eb42ecb55
Minor improvements to -use-separate-modules
2021-06-08 13:00:20 +01:00
gingerBill
28e9a4f79c
Replace js_wasm32 with freestanding_wasm32
2021-06-08 12:18:26 +01:00
gingerBill
16eaa17ed9
Fix -target:js_wasm32 for core:runtime
2021-06-08 11:20:39 +01:00
gingerBill
785c27daa7
Fix 128-bit integer to float cast by explicitly calling the procedure direct; Fix #781
2021-06-06 12:35:38 +01:00
gingerBill
b8d6dd4eb7
Fix #1004
2021-05-31 20:38:10 +01:00
gingerBill
46204ed7f0
Update core:runtime to use the new intrinsics
2021-05-30 13:22:15 +01:00
gingerBill
e948fcd2f1
Use intrinsics.mem_zero in runtime.mem_zero
2021-05-24 22:41:18 +01:00
gingerBill
39eccdf6b9
Make js default to nil allocator for the time being
2021-05-23 15:17:58 +01:00
gingerBill
71cfa0c9fe
Clean up organization of package runtime
2021-05-23 12:13:13 +01:00
gingerBill
e82e4398b6
Add intrinsics.mem_copy and intrinsics.mem_copy_non_overlapping
2021-05-19 10:50:02 +01:00
gingerBill
e0225c3579
Add intrinsics.sqrt for floating-point values
2021-05-19 10:32:41 +01:00
gingerBill
278de3a92f
Unify AstTernaryExpr with AstTernaryIfExpr
...
Allow for both syntaxes `x if cond else y` and `cond ? x : y`
Removes the confusing semantics behind `?:` which could be `if` or `when` depending on the context.
2021-05-05 15:22:54 +01:00
gingerBill
518ecaf9c9
Allow unions to be comparable if all their variants are comparable
2021-05-03 13:17:16 +01:00
gingerBill
24fce21d90
Add "naked" calling convention (removes prologue and epilogue)
2021-04-28 10:49:30 +01:00
gingerBill
7086b49ae6
Rename intrinsics to count_trailing_zeros and count_leading_zeros
2021-04-25 20:26:11 +01:00
gingerBill
72aa0e6e38
Replace many foreign llvm calls with intrinsics
2021-04-25 20:22:26 +01:00
gingerBill
cb2e6ea31d
Remove use_llvm_api related checks and other related things
2021-04-25 20:03:05 +01:00
gingerBill
0a66f8c9a3
Remove intrinsics.x86_mmx type
2021-04-22 10:39:20 +01:00
gingerBill
47c7dc6a9b
Add new intrinsics: debug_trap, trap, read_cycle_counter, expect
2021-04-22 10:35:17 +01:00
gingerBill
e9b1d4f633
Fix #906
2021-04-20 10:34:41 +01:00
gingerBill
c3b3194a00
Update builtin procedures to support the new allocator features (without breaking other code)
2021-04-19 22:44:20 +01:00
gingerBill
f98c4d6837
Improve the Allocator interface to support returning Allocator_Error to allow for safer calls
...
Virtually all code (except for user-written custom allocators) should work as normal. Extra features will need to be added to make the current procedures support the `Allocator_Error` return value (akin to #optional_ok)
2021-04-19 12:31:31 +01:00
gingerBill
e19958152a
Fix floattidf
2021-04-14 20:45:05 +01:00
gingerBill
05a181d719
Fix style issues; Use new attribute @(cold) where appropriate in the new sync package
2021-04-14 20:19:02 +01:00
gingerBill
394e4fcbad
Add __extendhfsf2 for macOS
2021-04-05 18:44:08 +01:00
gingerBill
54e6c50769
Implement f16 functionality
2021-04-01 10:06:00 +01:00
gingerBill
0ccf103160
Fix byte swapping for endian specific types in -llvm-api
2021-03-27 12:48:29 +00:00
gingerBill
359ae29d98
Minor fixes
2021-03-18 13:25:41 +00:00
gingerBill
a60d22fefd
Make trailing comma usage consistent
2021-03-13 21:18:07 +00:00
gingerBill
083cec6c88
Remove dead code
2021-03-06 16:11:54 +00:00
gingerBill
1988856eed
Minimize the size of runtime.Source_Code_Location to use i32 instead of int
2021-03-05 12:56:36 +00:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
gingerBill
6faf024ab4
Remove unneeded return value from incl and excl
2021-03-02 00:40:40 +00:00
gingerBill
35edf45514
Add make_soa and delete_soa; Reorganize soa procedures into a separate file
2021-03-01 18:07:09 +00:00
gingerBill
79eb46bce3
Replace inline uses in the rest of core with #force_inline
2021-02-23 20:39:59 +00:00
gingerBill
aa93305015
Replace usage of inline proc with #force_inline proc in the core library
2021-02-23 16:14:47 +00:00
gingerBill
41b854f192
Remove #opaque types
2021-02-23 15:45:06 +00:00
gingerBill
a1693c0184
Deprecate inline for in favour of #unroll for
2021-02-23 14:45:15 +00:00
gingerBill
28ed310f31
Remove "pure" and "pure_none" calling conventions
2021-02-23 13:10:23 +00:00
gingerBill
595885d3db
Remove bit_field in type info, runtime, and general core library
2021-02-19 11:36:23 +00:00