Commit Graph

6 Commits (fcbcfb354090d8ac97623fa13ce9cde8cecbc5a2)

Author SHA1 Message Date
A. R. Shajii 01840deb5f
Escape analysis in IR (#33)
* IR escape analysis (WIP)

* Handle calls (WIP)

* Fix argument tracking (WIP)

* Cleanup

* Fix function caching

* Add annotations

* Add capture analysis

* Fixes

* Add tests

* More tests & fixes

* Refactor

* Add escape interface

* Fix consts

* Fix throw side effect

* Fix case for vararg C functions

* Add IR pass timing

* Fix internal func capture status

* Avoid warning on exe build

* More tests

* Fix var tracking & more tests

* Fix derived computation and more tests

* Optimization

* Better derived set generation

* More tests

* Cache reaching-def results

* Fix pass group repeat

* Fix use-after-free issue
2022-07-02 11:48:19 -04:00
A. R. Shajii 7114f3430a Fix ref type construction in IR 2022-05-20 20:44:49 -04:00
Ishak Numanagić 25fa9a5da5 stdlib/internal/gc.codon 2022-02-28 20:57:12 +01:00
Ibrahim Numanagić 18d1d9b51e
Seq backports (#8)
* Backport seq-lang/seq@develop fixes

* Backport seq-lang/seq@develop fixes

* Resolve review issues

* Resolve File.__copy__() issue

* Resolve incorrect partial handling of object methods

* Use ints and floats for __suffix__ methods

* Fix float test

* Update complex tests

* Fix float constructor

* Fix cmath test

Co-authored-by: A. R. Shajii <ars@ars.me>
2021-12-29 19:46:15 -05:00
A. R. Shajii 06063eb1f2 Add gc.register_finalizer() 2021-10-20 15:02:34 -04:00
A. R. Shajii 0d185019f3 .seq to .codon 2021-10-01 09:56:35 -04:00