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

ccall: add support for automatic llvmcall mangling #44697

Merged
merged 3 commits into from
Mar 23, 2022
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Mar 22, 2022

Sometimes the mangling changes by version, or is unclear, so we allow that to auto-upgrade here.

Code from llvm-alloc-opt.cpp.
Fix #44694

Always been something I thought it should support/verify. While we won't, in general, fix your mistakes by protecting you from the mistake of using ccall or llvmcall. I think this is something that makes sense.

Sometimes the mangling changes by version, or is unclear, so we allow that to auto-upgrade here.
Code from llvm-alloc-opt.cpp.
Fix #44694
Copy link
Member

@vchuravy vchuravy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. I remember staring at this and then giving up.

src/ccall.cpp Outdated Show resolved Hide resolved
src/ccall.cpp Outdated Show resolved Hide resolved
@petvana
Copy link
Member

petvana commented Mar 22, 2022

Thank you, seems to work well now.

Co-authored-by: Petr Vana <[email protected]>
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

Successfully merging this pull request may close these issues.

@code_native crashes Julia on master
3 participants