1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

470 Commits

Author SHA1 Message Date
A. R. Shajii
54d060121c clang-format 2025-06-02 11:46:53 -04:00
MetalOxideSemi
7d3d3e0137
Fix object file generation on release mode (#656)
* Fix object file generation on release mode

* Fix inversed if cond
2025-06-02 11:46:11 -04:00
A. R. Shajii
7d254d3e20 Fix macOS build on new runner 2025-05-31 10:40:04 -04:00
A. R. Shajii
90377b5b7b
Support NumPy 2.0 (#653)
* Support NumPy 2.0

* Update NumPy versions

* Update NumPy versions

* Update Python on manylinux

* Update Python build

* Update datetime array creation

* Update CI

* Update Python build
2025-04-29 19:39:43 -04:00
Jonas Neubert
dcb41dcfc9
codon build command: add --cir output type option (#649) 2025-04-22 11:46:03 -04:00
A. R. Shajii
c1dae7d87d Update OpenBLAS 2025-04-04 14:59:13 -04:00
A. R. Shajii
984974b40d Support CMake 4.0 2025-04-04 11:27:35 -04:00
A. R. Shajii
915cb4e9f0
Support converting bytes object to Codon str (#646) 2025-04-03 10:41:19 -04:00
A. R. Shajii
ce5c49edb5 Fix typo in docs and README 2025-04-03 10:39:45 -04:00
A. R. Shajii
59f5bbb73b Bump versions v0.18.2 2025-03-18 10:46:58 -04:00
A. R. Shajii
93fb3d53e3
JIT argument order fix (#639)
* Fix argument ordering in JIT

* Format

* Update JIT tests

* Fix JIT test
2025-03-18 10:45:34 -04:00
A. R. Shajii
b3f6c12d57 Fix 0d array conversions from Python 2025-03-03 11:31:49 -05:00
A. R. Shajii
b17d21513d Remove -static-libstdc++ compilation flag 2025-02-18 14:49:45 -05:00
Ibrahim Numanagić
d035f1dc97
C-based Cython Backend (#629)
* Move to C-based Cython backend (to avoid all those C++ ABI issues with std::string)

* Fix CI
2025-02-18 10:22:03 -05:00
A. R. Shajii
dc5e5ac7a6 Bump version v0.18.1 2025-02-11 22:04:22 -05:00
A. R. Shajii
01a7503762 Bump version 2025-02-11 17:41:16 -05:00
A. R. Shajii
f1ab7116d8 Fix np.pad() casting 2025-02-11 15:49:15 -05:00
A. R. Shajii
b58b1ee767 Update OpenMP reduction detection for new ops 2025-02-07 12:04:12 -05:00
A. R. Shajii
56c00d36c2 Add additional int-float operators 2025-02-06 14:11:52 -05:00
A. R. Shajii
4521182aa8 Update np.correlate() 2025-02-04 17:32:54 -05:00
A. R. Shajii
44c59c2a03 Fix artifact names v0.18.0 2025-01-29 20:17:05 -05:00
A. R. Shajii
15c43eb94e Publish to PyPI in workflow 2025-01-29 15:52:50 -05:00
A. R. Shajii
b8c1eeed36
2025 updates (#619)
* 2025 updates

* Update ci.yml
2025-01-29 15:41:43 -05:00
A. R. Shajii
d13d6a58e3 Fix doc subcommand if no path given 2024-11-13 11:30:00 -05:00
Ibrahim Numanagić
37ff25a907
Fix underscore float parsing (#596)
* Fix underscore float parsing

* Add tests

* Update float parsing

---------

Co-authored-by: A. R. Shajii <ars@ars.me>
2024-10-01 15:35:11 -04:00
A. R. Shajii
d45646dc41 Skip PyPI upload in CI v0.17.0 2024-08-23 19:32:26 -04:00
A. R. Shajii
15253e2338 Fix permissions 2024-08-23 18:07:02 -04:00
A. R. Shajii
6df1ea7b46 Fix release upload URL in CI 2024-08-23 18:04:15 -04:00
A. R. Shajii
96e0a1af74 Update release creation in CI 2024-08-23 16:42:11 -04:00
A. R. Shajii
e05cc5a5b5 Fix permissions in CI 2024-08-23 15:25:17 -04:00
A. R. Shajii
7b16b15f79
Fix -disable-exceptions flag (#581) 2024-08-23 13:52:34 -04:00
A. R. Shajii
c214e2c65d
Update import handling (#580) 2024-08-23 10:18:13 -04:00
A. R. Shajii
3c4272d92a
Fix out-of-range float parsing (#579) 2024-08-14 16:13:29 -04:00
A. R. Shajii
5e2d04188e Add input() built-in function 2024-08-05 17:31:45 -04:00
A. R. Shajii
36167bfab8 Fix ctrl-c when using Python interop 2024-08-05 14:00:05 -04:00
A. R. Shajii
fa2904c15b
JIT fixes for Apple Silicon (#575) 2024-08-04 23:24:57 -04:00
A. R. Shajii
11d281d1b3
Updates from enterprise version (#571) 2024-07-30 19:35:27 -04:00
Ibrahim Numanagić
c750ae62ae
Update ci.yml 2024-07-18 19:56:19 +02:00
A. R. Shajii
189aa88619
Docfix (#569)
* Fix docs

* Fix partial.__name__

* Fix typecheching loop with throw statements

* Cleanup

* Partial __name__ fix

* Update ci.yml

---------

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2024-07-18 08:09:30 -04:00
A. R. Shajii
ffeeca274a
Use fast_float library for str-to-int/float (#561)
* Use fast_float library for str-to-int/float

* Fix str-to-int conversions
2024-05-22 10:22:50 -04:00
A. R. Shajii
acff5e30a1 Format 2024-05-09 15:57:44 -04:00
A. R. Shajii
e936d5ef25 Fix variable naming in LLVM IR
Avoid ".L" prefix as those indicate linker-local names
2024-04-27 12:23:48 -04:00
Ibrahim Numanagić
e7bb5c1609 Merge remote-tracking branch 'origin/cancall_new' into develop 2024-04-03 09:42:42 -07:00
A. R. Shajii
4c0caeb020 Fix error message printing 2024-04-03 11:55:10 -04:00
A. R. Shajii
0e42fded1a
2024 updates (#548)
* Update copyright dates in stdlib

* Update copyright dates in cpp files

* Update copyright dates in h files

* Update copyright dates in py files

* Bump version

* Update LICENSE

* Update release notes
2024-03-02 16:30:03 -05:00
Philip Kaelbling
4400e3d849
Generic Slices (#544)
* Changed slice fields to generics, added check to adjust_indices

* fix typecheck

* Refactored Slice class, fixed test

* fix test

* made slice fields optional, updated tests

* Fix list optimization for new slices; update tests

---------

Co-authored-by: A. R. Shajii <ars@ars.me>
2024-02-25 11:42:31 -05:00
A. R. Shajii
4be3bbf9e7
Add allocation hoist optimization (#534)
* Add allocation hoist optimization

* Fix analysis of nested loops

* Check for irreducible cycles

* Add additional check when analyzing insertvalue

* Add allocation-specific attributes in LLVM IR

* Remove unused calloc function from runtime library

* Add float -> intN and float -> uintN constructors

* Only hoist atomic allocations

* Update codegen

* Simplify codegen

* Change allocation hoist pass to be a function pass

* Fix loop iteration order

* Use 'struct' instead of 'class'

* Add check for phi instructions in header; refactor

* Remove unneeded checks

* Fix C++ benchmark

* Remove annotation
2024-02-22 19:31:19 -05:00
Ibrahim Numanagić
d3f3486f5a Fix static.fn_can_call 2024-02-21 17:33:12 -08:00
A. R. Shajii
7a787bfcf1
Import fixes (#542)
* Fix sub-imports

* Fix sub-imports

* Remove log lines

* Fix out-of-module shadowing

---------

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2024-02-17 15:31:17 -05:00
Ibrahim Numanagić
b853397b34 Fix out-of-module shadowing 2024-02-15 19:37:17 -08:00