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

inference: Allow any non-nothing source in ci_has_source for extern owner #55294

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Keno
Copy link
Member

@Keno Keno commented Jul 28, 2024

In updating DAECompiler to the new engine API, I was running some trouble, because the source it produces is not a CodeInfo or a String (which is fine because it has a non-nothing owner). Adjust the test to consider any non-nothing value in .inferred valid source (at least for non-nothing CI owners).

…wner

In updating DAECompiler to the new engine API, I was running some
trouble, because the source it produces is not a `CodeInfo` or a
`String` (which is fine because it has a non-nothing `owner`).
Adjust the test to consider any non-nothing value in .inferred valid
source (at least for non-nothing CI owners).
@Keno Keno requested review from vtjnash and aviatesk July 28, 2024 23:39
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

Looks fine, but note that currently there are no callers that set SOURCE_MODE_FORCE_SOURCE that actually want the behavior specified by this function currently (both want it to either produce LLVM IR for including in staticdata output or to a have a constant value). We will probably need to figure that specification issue eventually.

@Keno
Copy link
Member Author

Keno commented Jul 30, 2024

Yeah, all of this isn't fully fleshed out yet, I'm just trying to get things working again. Let's revisit all of these interfaces once your larger refactor is fully in.

@Keno Keno merged commit 5862301 into master Jul 30, 2024
7 checks passed
@Keno Keno deleted the kf/extownersource branch July 30, 2024 09:33
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Aug 17, 2024
…wner (JuliaLang#55294)

In updating DAECompiler to the new engine API, I was running some
trouble, because the source it produces is not a `CodeInfo` or a
`String` (which is fine because it has a non-nothing `owner`). Adjust
the test to consider any non-nothing value in .inferred valid source (at
least for non-nothing CI owners).
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.

3 participants