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

[WIP] control flow if #735

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

glou-nes
Copy link
Contributor

I want to test with CI.

src = CC.retrieve_code_info(result.linfo, world)
#dico2[mi]=(CC.copy(src), goto_if_not_protection(src))
@error src
src = goto_if_not_protection(src)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Billy's concern was that since the transformation here happens before inlining, the code that will later get doesn't have the needed conversions inserted.
I'm wondering if you run into this issue?
If so, the idea was to do the transformation by specializing the abstract interpreter.
If that's necessary, the correct place to do it would be InferenceState like I did here:
https://github.com/JuliaLLVM/MLIR.jl/blob/cf22c54222033ed4f5f3d68a620448bcaf766ac4/src/Generate/absint.jl#L151C1-L160C4
based on an old pr from valentin:
JuliaGPU/GPUCompiler.jl#311

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have an example of such a case in mind! I will try with this one firstly (seem easier to handle).

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

Successfully merging this pull request may close these issues.

3 participants