Commit Graph

13 Commits (2f268843ac7527f22f7f41d582dc80b7d64d6fec)

Author SHA1 Message Date
A. R. Shajii e1016f9e9a
Upgrade to LLVM 15 (#56)
* Upgrade to LLVM 15 (WIP)

* Call `setPresplitCoroutine()` on coro LLVM funcs

* Use new pass manager

* Update deps

* Update docs

* Fix exceptions on M1

* Add libunwind

* Use Orc and JITLink for "codon run"

* JITLink integration

* Fix callback

* Fix strbuf, fix GC root registration

* Fix test init

* Fix llvm function

* Fix pickle, float atomics

* Add TargetLibraryAnalysis

* Use new LLVM pass manager in GPU codegen

* Fix libunwind linking

* Fix libunwind

* Fix GPU passes

* Don't link libunwind explicitly

* Bump version

* Update plugins for new pass manager

* Fix bash error

* Fix GPU GV extraction

* Move simd module to experimental folder

* Update file read

* Add benchmark programs

* Add dynamic tuple

* Fix parser tuple slicing bug

* Make DynamicTuple interoperable with Tuple

* Fix DynamicTuple GPU interop

* Dockerize builds

* Simplify CMake

* Revert "Simplify CMake"

This reverts commit 08d2920349.

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-10-14 09:31:10 -04:00
A. R. Shajii 7f7810eb95 Turn off TLS when building with Jupyter support 2022-07-27 09:15:14 -04:00
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 9b73bc0da3
OpenMP updates (#30)
* Support task-based reductions (wip)

* Fix task-based reductions (wip)

* Fix local reduction var reference

* Fix shared info access

* Fix reductions

* Add more tests for float reductions

* Update test

* Update test

* Add corner case tests

* Add nested par tests

* Add barrier to match clang's codegen

* Refactor to remove duplicated code

* Fix GC root registration via OpenMP patch

* Update deps.cmake

* Debug

* Debug

* Update thread registration with GC

* Update OpenMP

* Update OpenMP to new master
2022-06-06 19:31:48 -04:00
A. R. Shajii b47a9a844b
Jupyter quanto fixes (#22)
* Add methods to check for passes/analyses

* Fix xeus build

* clang-format

* Optimize JIT

* Allow jit mode to take data from file

* Fix OpenMP in JIT mode

* Update JIT main

* Update cloning

Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-03-19 10:29:41 -04:00
A. R. Shajii a3be465ae5 Use patched OpenMP 2022-02-27 07:52:43 -05:00
Ibrahim Numanagić c8b757859a Fix OpenMP 12+ issue 2022-02-25 18:25:29 -08:00
Ibrahim Numanagić 1ec5cd2958 Merge branch 'jupyter-fixes' into auto-class-deduction 2022-02-25 09:22:56 -08:00
A. R. Shajii 4452367c1f Update OpenMP 2022-02-22 10:17:50 -05:00
Ibrahim Numanagić 2506cb849e Use @overload for top-level function overloads; Partial function bugfixes 2022-02-18 17:27:24 -08:00
Ibrahim Numanagić fd06afaa61 Fix linux build [wip] 2022-01-25 13:17:37 -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 e121e2b9db Refactor build files 2021-10-10 01:02:11 -04:00