This effectively mirrors the logging in dialect conversion, which has proven
very useful for understanding the pattern application process.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Nice, thanks!
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp | ||
---|---|---|
177 | Could we print ops with regions just with regions elided? (I thought we had such an option) |
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp | ||
---|---|---|
177 | We've talked about it before, but haven't actually added the option yet. I did some sneaky hacky thing in the lsp-server, but that technique doesn't apply well generally. I can look at adding a real option to skip regions in a followup (given that it is a common desire in many printing cases). |
mlir/docs/PatternRewriter.md | ||
---|---|---|
353 | It's probably worth mentioning that this is enabled only in an assert build |
This is really useful - thanks!
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp | ||
---|---|---|
177 | It would be great to have such an option and it could perhaps even be the default here. I've often wanted to dump funcs, fors, and ifs without their regions, and this would be useful for debugging in general. I can't see any such option on OpPrintingFlags at the moment. |
It's probably worth mentioning that this is enabled only in an assert build