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

Remove old vector workarounds, slightly modernize #5140

Merged
merged 4 commits into from
Feb 24, 2025

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Feb 21, 2025

Long overdue cleanup I noticed when working on #5133. Apparently these are workarounds for GCC 4.*, we are safe to remove them as we require GCC 9+. A small potential for breaking change due to the GetImpl namespace being removed and the get for IR::Vector moving to P4::IR to facilitate ADL. If anyone calls the get with explicit namespace (or has explicit using on it) they should just remove the namespaces and rely on argument-dependent lookup.

When there, I also slightly modernized parts of the code & fixed some weirdness.

Signed-off-by: Vladimír Štill <[email protected]>
Signed-off-by: Vladimír Štill <[email protected]>
@vlstill vlstill added core Topics concerning the core segments of the compiler (frontend, midend, parser) breaking-change This change may break assumptions of compiler back ends. labels Feb 21, 2025
@vlstill vlstill self-assigned this Feb 21, 2025
@vlstill vlstill changed the title Remove old vector workarounds Remove old vector workarounds, slightly modernize Feb 21, 2025
Signed-off-by: Vladimír Štill <[email protected]>
Copy link
Contributor

@asl asl left a comment

Choose a reason for hiding this comment

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

Great!

@vlstill vlstill added this pull request to the merge queue Feb 24, 2025
Merged via the queue into p4lang:main with commit 65a2ed8 Feb 24, 2025
19 checks passed
@vlstill vlstill deleted the remove-old-vector-workarounds branch February 24, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This change may break assumptions of compiler back ends. core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants