-
Notifications
You must be signed in to change notification settings - Fork 449
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
Migrate some P4Testgen utilities to lib folder. #3630
Conversation
Not sure what to do about |
dbec75b
to
fe55008
Compare
Type index. Use type index for MacOS?
33b4b25
to
4bfa685
Compare
ir/irutils.h
Outdated
// | ||
// Some of these are just thin wrappers around functions in the IR, but it's nice having everything | ||
// in one place. | ||
class IRUtils { |
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.
since this class has no instances and no non-static members, maybe it should be a namespace?
or maybe even put all these functions in namespace IR directly.
|
||
const cstring Utils::Valid = "*valid"; | ||
|
||
const StateVariable& Utils::getZombieTableVar(const IR::Type* type, const IR::P4Table* table, |
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.
this part is not really migration
This is in preparation to migrate some files from the P4Tools folder to the compiler library folders.