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

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

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 <vladimir.still@altera.com>
Signed-off-by: Vladimír Štill <vladimir.still@altera.com>
Signed-off-by: Vladimír Štill <vladimir.still@altera.com>
@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 <vladimir.still@altera.com>
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!

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