-
The source info object can be initialized using two approaches:
Using an explicit filename, line number, column number, and fragment: https://github.com/p4lang/p4c/blob/main/lib/source_file.h#L129…
-
Bf4 expansion phase error
I was able to compile bf4 on an Ubuntu 20.04, linux-headers-5.4.0-90-generic from apt, apt packages most up to date, z3 4.8.7 from apt, ninja 2.2.0 from repository, json 3…
-
A lot of passes involve new IR designs which are not supported by the current toP4.cpp and toP4.h in the frontend. Our current solution is to migrate toP4 files to toCAIRN in our own directory so that…
-
Not running the preprocessor causes p4test not support files which have an UTF8 BOM on it.
I know the P4 language spec says the source is written in ASCII but ASCII is a subset of UTF8 so I had expec…
-
I followed the instructions from README file - https://github.com/opencomputeproject/SAI/blob/master/flexsai/p4/README.md in order to link and build `p4lang/p4c` with `SAI p4 backend` extension.
Wit…
-
Hi guys,
I tried to create a small project using p4c and ebpf. I have two errors that I don't know how to resolve. Can someone help me ?
Here's the console cmd :
p4c-ebpf app_ebpf.p4 -o app_eb…
-
The stuff in https://github.com/p4lang/behavioral-model/tree/main/tools/macos has not been updated (or I assume, tested) in years. We should either:
1) Add a disclaimer notice to that folder indica…
-
This optional parameter has been added in p4c:
https://github.com/p4lang/p4c/blob/94994988db3c6f2d0c39a95135592524c5c5293b/p4include/pna.p4#L375-L378
https://github.com/p4lang/p4c/blob/94994988d…
-
One example of some recent failures in the automated CI tests for p4c that only failed with a DEBUG build, and not a RELEASE build, are mentioned in this issue: https://github.com/p4lang/p4c/issues/48…
-
Compiling the following code:
```p4
apply {
if (standard_metadata.ingress_global_timestamp == 123) return;
bit x = 42;
if (standard_metadata.packet_length == 456) return;
log_msg…