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

Add support for OpaqueClosure #68

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Add support for OpaqueClosure #68

merged 1 commit into from
Jan 31, 2024

Conversation

topolarity
Copy link
Member

This also tightens up our call replacements and makes it quite a bit more strict regarding unresolved function pointers.

This also tightens up our call replacements and makes it quite a bit
more strict regarding unresolved function pointers.
@topolarity topolarity added bug Something isn't working classification error When a function is incorrectly classified as allocating/non-allocating labels Jan 30, 2024
@topolarity topolarity requested a review from gbaraldi January 30, 2024 18:52
# by AllocCheck.jl, but is instead (conservatively) marked as a DynamicDisaptch.
#
# We get thrown off by the `jl_load_and_lookup` machinery here.
@test_broken all(x isa AllocationSite && x.type == Memory{UInt8} # uses jl_string_to_genericmemory
Copy link
Member Author

Choose a reason for hiding this comment

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

I relaxed this test and marked the original as broken

We need to expand our resolution here to walk through the PhiNode in the LLVM IR and notice the ccall / jl_load_and_lookup machinery.

@gbaraldi
Copy link
Member

LGTM

@topolarity topolarity merged commit d166c90 into main Jan 31, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working classification error When a function is incorrectly classified as allocating/non-allocating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants