Skip to content

Remove old vector workarounds, slightly modernize#5140

Merged
vlstill merged 4 commits into
p4lang:mainfrom
vlstill:remove-old-vector-workarounds
Feb 24, 2025
Merged

Remove old vector workarounds, slightly modernize#5140
vlstill merged 4 commits into
p4lang:mainfrom
vlstill:remove-old-vector-workarounds

Conversation

@vlstill

@vlstill vlstill commented Feb 21, 2025

Copy link
Copy Markdown
Member

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
Comment thread ir/vector.h
@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>

@asl asl left a comment

Copy link
Copy Markdown
Contributor

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
@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