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

Derive T_size from DataLayout #49188

Merged
merged 8 commits into from
Mar 31, 2023
Merged

Derive T_size from DataLayout #49188

merged 8 commits into from
Mar 31, 2023

Conversation

pchintalapudi
Copy link
Member

No description provided.

@KristofferC
Copy link
Sponsor Member

Would be nice with some context. Does this fix some issue, why is it better etc?

@pchintalapudi
Copy link
Member Author

This PR just eliminates the obvious assumptions about host pointer size/alignment in codegen, since those are available from the data layout. It's necessary for codegen on not 32/64 bit architectures, and if in the future cross compilation is supported.

@gbaraldi
Copy link
Member

And making JuliaFunction a template makes it a bit cleaner?

@pchintalapudi
Copy link
Member Author

Yeah, otherwise there's a lot of JuliaFunctions with lambdas/function pointers that need to be rewritten to accept a target triple and T_size.

Copy link
Sponsor 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.

Looks good from my side.

@pchintalapudi pchintalapudi merged commit 8327e85 into master Mar 31, 2023
@pchintalapudi pchintalapudi deleted the pc/size_type branch March 31, 2023 21:27
Xnartharax pushed a commit to Xnartharax/julia that referenced this pull request Apr 19, 2023
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.

None yet

5 participants