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

Ssa: Deprecate the public DefinitionExt and PhiReadNode #19160

Merged
merged 3 commits into from
Apr 4, 2025

Conversation

aschackmull
Copy link
Contributor

@aschackmull aschackmull commented Mar 31, 2025

This PR deprecates all public predicates and classes in the SSA library that somehow reference phi-read nodes or DefinitionExt. The DefinitionExt and PhiReadNode classes are still used internally in the SSA library, but they're now completely hidden.

@github-actions github-actions bot added Java Rust Pull requests that update Rust code Swift DataFlow Library labels Mar 31, 2025
@aschackmull aschackmull force-pushed the ssa/deprecate-definitionext branch from bc49797 to cff6299 Compare April 2, 2025 14:43
@github-actions github-actions bot removed Java Rust Pull requests that update Rust code Swift DataFlow Library labels Apr 2, 2025
@aschackmull aschackmull force-pushed the ssa/deprecate-definitionext branch from cff6299 to 34554fd Compare April 3, 2025 07:48
@aschackmull aschackmull marked this pull request as ready for review April 3, 2025 07:59
@Copilot Copilot bot review requested due to automatic review settings April 3, 2025 07:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates public references to the DefinitionExt and PhiReadNode classes in the SSA library, making them internal-only while still retaining their functionality in the background.

  • Added a change note indicating the deprecation of public references to DefinitionExt and PhiReadNode.
Files not reviewed (1)
  • shared/ssa/codeql/ssa/Ssa.qll: Language not supported

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

One question, otherwise LGTM.

@@ -1369,18 +1408,6 @@ module Make<LocationSig Location, InputSig<Location> Input> {
not uncertainWriteDefinitionInput(_, def)
}

/** Holds if a read is not dominated by a definition. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I was too quick there. I removed it because it referenced deprecated predicates, but I should just have updated those references. Fix incoming.

@aschackmull aschackmull merged commit ea8cd6f into github:main Apr 4, 2025
33 checks passed
@aschackmull aschackmull deleted the ssa/deprecate-definitionext branch April 4, 2025 07:23
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.

2 participants