p4c
p4c copied to clipboard
P4_16 reference compiler
We use a different build system to build p4testgen (bazel). The inconsistent pattern of imports in `backends/p4tools` is causing problems for us. Particularly, we have problems with the following patterns:...
Clean up the compiler includes by running [IWYU](https://include-what-you-use.org/) across them. This also exposes how some files have a massive amount of includes, some of which may not be necessary. If...
From the spec: ``` Note: bitwise-operations (|,&,^,~) are not defined on expressions of type int. ``` But p4c allows to compile: ``` const bit tmp2 = (1 | 2) |+|...
I know that struct as action parameter is not supported by v1model/bmv2 yet. I heard this is a bmv2-specific limitation though. So I have the following questions to clarify: 1....
Hi all, I check the name and the code of passes in the frontend and midend. I found some passes which eliminate different structures, especially the passes whose names start...
A table wit action selector property is split into base table, group table and member table. Prior to this PR, group and member tables were unconditionally applied ``` table.apply() ==>...
Instead of enriching the program IR by a custom varbit type which remembers extracted size, assign bit directly to varbit members.