-
Notifications
You must be signed in to change notification settings - Fork 349
Roundtrip llvmlite.binding.TypeRef back into llvmlite.ir.Type #1051
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
Conversation
Missing indentation
stuartarchibald
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for exposing this interface @sklam, it is just what is needed for numba/pixie#21. A single typo else looks good. Thanks again!
| self.assertEqual(got, ty) | ||
| self.assertIsInstance(got, irtype) | ||
|
|
||
| def _check_typeref_as_ir_for_wrappers(self, asm, target_symbol): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks!
Co-authored-by: stuartarchibald <[email protected]>
stuartarchibald
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch and fixes!
Adds
llvmlite.binding.TypeRef.as_ir()to extractllvmlite.ir.Type. This is useful for building wrappers around functions emitted by other LLVM-IR producing tools. See new tests that uses output from clang on C++ sources.