[PATCH] D73747: [mlir][NFC] Refactor DialectConversion debug logging
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 14:55:36 PST 2020
rriddle created this revision.
rriddle added a reviewer: ftynse.
Herald added subscribers: llvm-commits, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, mehdi_amini.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
This revision beefs up the debug logging within dialect conversion. Given the nature of multi-level legalization, and legalization in general, it is one of the harder pieces of infrastructure to debug. This revision adds nice formatting to make the output log easier to parse:
Legalizing operation : 'std.constant'(0x608000002420) {
- Fold { } -> FAILURE : unable to fold
- Pattern : 'std.constant -> ()' { } -> FAILURE : pattern failed to match
- Pattern : 'std.constant -> ()' { } -> FAILURE : pattern failed to match
- Pattern : 'std.constant -> (spv.constant)' {
- Insert : 'spv.constant'(0x608000002c20)
- Replace : 'std.constant'(0x608000002420)
//===-------------------------------------------===// Legalizing operation : 'spv.constant'(0x608000002c20) { } -> SUCCESS : operation marked legal by the target //===-------------------------------------------===// } -> SUCCESS : pattern applied successfully
} -> SUCCESS
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73747
Files:
mlir/lib/Transforms/DialectConversion.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73747.241589.patch
Type: text/x-patch
Size: 11195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200130/7054dd15/attachment-0001.bin>
More information about the llvm-commits
mailing list