-
Notifications
You must be signed in to change notification settings - Fork 458
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
make DumpPipe from Tofino available to all #5184
Conversation
b5e6b29
to
55ead7e
Compare
Usage question for all: because I've placed the preorder implementation in dump.cpp, dumping is enabled via |
I have never actually used this, what is it for? |
It was really useful during Tofino development when trying to see how a pass or set of passes had transformed the IR without having to set breakpoints in a debugger and manually inspect nodes. There is overlap with the P4 dumping functionality (via |
I think this is fine.
The main usage is to have a dump that uses dbprint (at level 1) instead of toP4, mostly for backend-specific stuff that doesn't map well to P4 (and isn't handled by toP4 -- it just gets skipped). Having a level-2 full dump is sometimes useful too (though that is often too verbose). |
@ChrisDodd Anything else blocking approval of this PR? |
Just the one suggestion (moving the |
Whoops -- that's on me 😬 I missed pushing the changes after making them locally. Thanks for the approval! |
9294705
to
9a04eaa
Compare
Move the DumpPipe inspector from Tofino into the common ir/dump.h Add a pair of DumpPipe passes to the p4test backend. Signed-off-by: Glen Gibb <gleng@ai-fabrics.com>
Move the DumpPipe inspector from Tofino into the common ir/dump.h
Add a pair of DumpPipe passes to the p4test backend.