search for: p4lang

Displaying 1 result from an estimated 1 matches for "p4lang".

Did you mean: clang
2018 Mar 13
0
Proposal for a LLVM front-end for P4 language
...rg/). Our work aims to enable LLVM based optimizations for P4. As the P4 language was designed to target many different switch architectures, we feel that P4 can comfortably fit in the LLVM framework where adding targets is more structured. The existing open-source P4 compiler (https://github.com/p4lang/p4c) supports its BPF backend via clang by emitting C code. P4 ---> C ----> | Clang | --> BPF. We propose that having an LLVM front-end can make it much simpler by by-passing the C code-generation step. As part of our implementation, we have a zeroth version of front-end to support som...