-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* importing `cpython_bindings.py` when using `BindPython` ABI cpython_bindings.py will contain declarations for all the CPython C API function required * BindPython for no args - no return functions in LLVM backend * BindPython support for args of int and float types * refactored "from ... import ..." AST to ASR code * BindPython support for args of str and bool types * BindPython support for return type of str, bool, integer & real types * refactored python_bind split one `pass_python_bind` function into `generate_body`, `native_to_cpython`, `cpython_to_native`, and `pass_python_bind` * fix for CI * fix for failing test * add integration test for llvm backend * refactor: importing cpython_bindings separate out into function * skip python_bind ASR pass when using C backend * changes according to code review * generating CPython related function declarations in python_bind pass * fix for failing CI * remove use of `PyRun_SimpleString` to set python path some refactoring * clean up unwanted comment * refactored `declare_functions` to asr_utils.cpp * Update src/libasr/pass/python_bind.cpp Co-authored-by: Shaikh Ubaid <[email protected]> * skipping python_bind ASR pass if `--enable-cpython` flag not used * fix related to previous commit --------- Co-authored-by: Shaikh Ubaid <[email protected]>
- Loading branch information
1 parent
9374feb
commit 4b06d70
Showing
11 changed files
with
615 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.