p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
681 stars 445 forks source link

Remove reference map from another set of midend passes #4939

Closed asl closed 1 month ago

asl commented 1 month ago

This includes less obvious cases. Plus some additional cleanup.

asl commented 1 month ago

Two issues were uncovered so far:

Overall I think eventually we'd need passes to maintain their own copy of reference map if they really need it; we should not have global refmap object passed everywhere as maintaining its freshness is non-trivial and error-prone.