Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into using clang to generate bindings instead of xndtools #19

Open
saulshanabrook opened this issue Dec 4, 2018 · 0 comments
Open

Comments

@saulshanabrook
Copy link
Member

Currently, we parse some of the xnd/ndtypes/gumath c files to generate compatible LLVM functions that can call their exposed functions. We do this by parsing the C files in Python.

Instead, we could use clang itself to generate these bindings. That way we don't have to reimplement a C parser and define the mappings between C and LLVM ABIs ourselves.

See aguinet/dragonffi#13 for some discussion using dragonffi to do this (it has a Python API)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant