Commit Graph

20 Commits (ec4b503e2402e9eb390f703b0883b8a9447886f3)

Author SHA1 Message Date
A. R. Shajii f6bffa50a2
Full regex implementation (#38)
* 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

* Initial re functions

* Cleanup

* Add parseCode

* Add parseCode

* Fix IR realization

* Allow for NumPy conversions

* Update re

* clang-format

* Add pattern methods

* Add more functions

* More functions

* Fixes

* Cleanup

* Add more functions

* Add groups()

* Add flags

* Use optionals where needed

* Support errors

* Fix replacement

* Fix sub

* Fix unescape

* Add tests

* Fix expand

* More tests

* More tests

* More tests

* Add remaining tests

* Revert Python changes

* Use atomic alloc

* Fix test

* Fix errors

* Fix unescape

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-07-08 23:17:50 +00:00
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 fc4f1e9412 Bump version 2022-06-26 17:54:13 -04:00
A. R. Shajii 9e276d8181
Cython package (#34)
* Add pip wheel to the build

* Fix CI

* Fix CI

* Fix CI

* Update setup.py to include stdlib; set CODON_PATH in extra/python package

* Fix CI

* CI debug

* CI fix

* CI fix

* Format

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-06-26 17:38:29 -04:00
Ibrahim Numanagić c33eda9353 Fix JIT state on error 2022-05-20 10:27:29 -07:00
Ibrahim Numanagić 1ec5cd2958 Merge branch 'jupyter-fixes' into auto-class-deduction 2022-02-25 09:22:56 -08:00
Ibrahim Numanagić 56cd0711f7 Move std::filesystem to llvm::sys::fs 2022-02-24 11:43:51 -08:00
Ibrahim Numanagić aaf5e03e56 Fix Linux undefined behaviour; Update CMake for g++ 2022-02-17 19:03:07 -08:00
A. R. Shajii 2bf3709d33 Fix Asan flags 2022-01-31 18:38:59 -05:00
Ibrahim Numanagić fd06afaa61 Fix linux build [wip] 2022-01-25 13:17:37 -08:00
Ibrahim Numanagić 682b97676d Add mimetype support [wip] 2021-12-29 13:11:56 -08:00
A. R. Shajii 166e1ad455
JIT (#6)
* Add JIT engine

* More engine updates

* Fix takeModule()

* Parser JIT support [wip]

* Fix class definition

* Parser JIT support [wip]

* Parser JIT support [wip]

* Fix LLVM context conflict

* Parser JIT support [wip]

* Fix JIT engine

* Parser JIT support [wip]

* Doc fix

* JIT fix

* Fix JIT exceptions

* Refactor

* Add JIT status codes

* Add compiler class

* Better logging

* Better logging

* Update .gitignore

* Add Jupyter Xeus support

* Update JIT

* Remove print

* Update errors

* Fix assert

* Fix asserts

* Update docgen signature

* Update file system interface

* Update plugin errors

* Use numeric_limits

* JIT refactor [wip]

* Set JIT flag on LLVMVisitor

* Update module opt

* JIT imports

* First Jupyter integration

* Update JIT API to return outputs as string

* Capture runtime exception output

* Fix libbacktrace build

* Initial Jupyter support

* Format

* Fix print

* Support run-mode backtraces

* Fix multithreaded backtrace

* Update backtraces

* Upgrade OpenMP

* Add libunwind

* Fix build

* Fix build

* Fix build

* Fix build

* Fix OpenMP & tests

* Use libbacktrace instead of libunwind

* Add debug listener

* Remove unused include

* Remove unused class

* Fix backtraces

* Update backtrace config

* Fix debug info generation

* Refactor backtraces

* Fix ASAN flag

* Fix JIT

* Fix JIT backtraces

* Fix JIT backtrace

* Fix Jupyter, fix xeus build flags

* Fix JIT output capture

* Fix Jupyter

* Fix Jupyter Python support

* Add __repr_pretty__ support

* Update JIT output capturing

* Better backtrace method names

* Support plugins in JIT mode

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2021-11-30 11:50:28 -05:00
A. R. Shajii 681df2069b Refactor LLVM codegen 2021-10-21 14:08:11 -04:00
A. R. Shajii 497a111f43 Minor refactor 2021-10-17 10:30:52 -04:00
A. R. Shajii 007eaa29de Refactor 2021-10-10 19:41:52 -04:00
A. R. Shajii b3ac70b2bd Collect headers in build 2021-10-10 14:41:10 -04:00
A. R. Shajii c68df8382b Link in bz2 and liblzma 2021-10-10 01:08:56 -04:00
A. R. Shajii e121e2b9db Refactor build files 2021-10-10 01:02:11 -04:00
A. R. Shajii d763282137 Rename (wip) 2021-09-30 15:04:26 -04:00
A. R. Shajii ede7765171 Initial commit 2021-09-27 14:02:44 -04:00