p4lang-p4c-nightly:cdodd-p4c-working

Last commit made on 2018-05-02
Get this branch:
git clone -b cdodd-p4c-working https://git.launchpad.net/p4lang-p4c-nightly

Branch merges

Branch information

Name:
cdodd-p4c-working
Repository:
lp:p4lang-p4c-nightly

Recent commits

11ef35c... by Chris Dodd <email address hidden>

experimental: Allow @optional on abstract methods

- abstract methods may not all be required for every instantiation of an
  extern with abstract methods.

c1d5772... by Evan Cheshire <email address hidden>

Added Another Policy to SimplifyKey (#1257)

* Added a second level of policies as well as keys to avoid running SimplifyKey on a particular table

* Moved Visitor to requiring a Context

cb04e91... by Antonin Bas <email address hidden>

Fix uninitialized variable bug in ComplexComparison

Fixes #1250

e910bbb... by Antonin Bas <email address hidden>

Use correct ID prefixes in P4Runtime serializer

The different values for the ID prefix (first byte of every ID) are now
defined in p4info.proto. In this commit, we switch to using these values
when generating the P4Info message. One notable difference is that the
direct & indirect versions of counters / meters now use a different
prefix value for their ids.

6acdfb4... by Antonin Bas <email address hidden>

Update PI submodule ref point

This required modifying the control-plane Makefile because of the
addition of a new protobuf source file (p4types.proto).

348cdc7... by Calin Cascaval <email address hidden>

adds support for saturating arithmetic in P4_16 (#1241)

* adds support for saturating arithmetic in P4_16

We add support for |+| and |-| in the frontend of the compiler, as
well as bmv2 backend support. This includes defining two binary
operation IR nodes for saturating addition and subtraction, and
generating the json for bmv2 as defined in
https://github.com/p4lang/behavioral-model/pull/590. For that, we
update the json version to 2.18.

We also added a test that ensures that saturating arithmetic properly
bounds the min and max values for signed and unsigned integer
operations.

Still to do:
- translate P4_14 saturating operations to the new IR expression nodes.

Fixes #1229

fef6e5d... by Mihai Budiu <email address hidden>

Allow named arguments in calls; first step: types and grammar (#1222)

* Allow named arguments in calls; first step: types and grammar

2cb9fd5... by Mihai Budiu <email address hidden>

Fix for issue #1160 (#1226)

* Fix for issue #1160

72b4e92... by Han Wang <email address hidden>

remove macro for PSA_SWITCH in psa.p4, update testcase (#1231)

554dca0... by Chris Dodd <email address hidden>

Infer bool type for modify_field_conditionally condition