aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2024-03-08 10:34:45 +0900
committerGitHub <noreply@github.com>2024-03-08 10:34:45 +0900
commit60a20bd6973c8fc7aa9a19465ed042604e07fb17 (patch)
treea5b0d482033855e74e71a4b05e5fad5854a0f0ad /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parente7a22e72de79352c4639664f1ac678555a4c20e4 (diff)
downloadllvm-60a20bd6973c8fc7aa9a19465ed042604e07fb17.zip
llvm-60a20bd6973c8fc7aa9a19465ed042604e07fb17.tar.gz
llvm-60a20bd6973c8fc7aa9a19465ed042604e07fb17.tar.bz2
[mlir][Transforms] Add listener support to dialect conversion (#83425)
This commit adds listener support to the dialect conversion. Similarly to the greedy pattern rewrite driver, an optional listener can be specified in the configuration object. Listeners are notified only if the dialect conversion succeeds. In case of a failure, where some IR changes are first performed and then rolled back, no notifications are sent. Due to the fact that some kinds of rewrite are reflected in the IR immediately and some in a delayed fashion, there are certain limitations when attaching a listener; these are documented in `ConversionConfig`. To summarize, users are always notified about all rewrites that happened, but the notifications are sent all at once at the very end, and not interleaved with the actual IR changes. This change is in preparation improvements to `transform.apply_conversion_patterns`, which currently invalidates all handles. In the future, it can use a listener to update handles accordingly, similar to `transform.apply_patterns`.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions