-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify key names generated for keys with masks #1141
Conversation
I assume you double checked that there was no other expressions missing from that table the compiler supports too? |
This is the signature of the corresponding pass:
MethodCallExpression is for isValid. |
We should verify what various implementations do. |
@vgurevich will post comments. |
The Barefoot compiler does not use these rules for masks and slices. |
2b6f614
to
749ee78
Compare
p4-16/spec/P4-16-spec.mdk
Outdated
All other kinds of expressions **must** be annotated with a `@name` | ||
annotation (Section [#sec-control-plane-api-annotations]), as in the | ||
following example. | ||
If a compiler cannot generate a name for a key is **requires** the key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is -> it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Mihai Budiu mbudiu@vmware.com
Fixes #1138
This has been supported by the compiler for at least 5 years.