diff options
author | River Riddle <riddleriver@gmail.com> | 2020-03-17 12:09:14 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-03-17 12:12:21 -0700 |
commit | 5267f5e6b4cb7ad78680fc33a4414b11d95f4c12 (patch) | |
tree | ef62adca6560260fb5350455a6f547ce36a4cd22 /llvm/lib/CodeGen/RDFGraph.cpp | |
parent | 1bf0c9937583c344639f4c255cfed8478deecdb4 (diff) | |
download | llvm-5267f5e6b4cb7ad78680fc33a4414b11d95f4c12.zip llvm-5267f5e6b4cb7ad78680fc33a4414b11d95f4c12.tar.gz llvm-5267f5e6b4cb7ad78680fc33a4414b11d95f4c12.tar.bz2 |
[mlir] Add a hook to PatternRewriter to allow for patterns to notify why a match failed.
Summary:
This revision adds a new hook, `notifyMatchFailure`, that allows for notifying the rewriter that a match failure is coming with the provided reason. This hook takes as a parameter a callback that fills a `Diagnostic` instance with the reason why the match failed. This allows for the rewriter to decide how this information can be displayed to the end-user, and may completely ignore it if desired(opt mode). For now, DialectConversion is updated to include this information in the debug output.
Differential Revision: https://reviews.llvm.org/D76203
Diffstat (limited to 'llvm/lib/CodeGen/RDFGraph.cpp')
0 files changed, 0 insertions, 0 deletions