diff options
| author | River Riddle <riddleriver@gmail.com> | 2020-01-31 11:46:53 -0800 |
|---|---|---|
| committer | River Riddle <riddleriver@gmail.com> | 2020-01-31 12:07:17 -0800 |
| commit | 4948b8b3cf485159da64fca81a9903610a830281 (patch) | |
| tree | 8bdec03418368894da99646d05d6285a97a7964c /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
| parent | ff17da3f75b4825f71e81e1caa2e5084d500a1a1 (diff) | |
| download | llvm-4948b8b3cf485159da64fca81a9903610a830281.zip llvm-4948b8b3cf485159da64fca81a9903610a830281.tar.gz llvm-4948b8b3cf485159da64fca81a9903610a830281.tar.bz2 | |
[mlir][NFC] Refactor DialectConversion debug logging
Summary:
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
```
Differential Revision: https://reviews.llvm.org/D73747
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions
