diff options
author | Matthias Springer <me@m-sp.org> | 2023-09-19 17:35:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 17:35:38 +0200 |
commit | 9b5ef2bea8e3de8fd564ab74b8123b446883216f (patch) | |
tree | 26e75b4dd35b1af389c33a249df78d274359a545 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
parent | d69293c1c80f0f0e3eb012bc006573d4d5cb820f (diff) | |
download | llvm-9b5ef2bea8e3de8fd564ab74b8123b446883216f.zip llvm-9b5ef2bea8e3de8fd564ab74b8123b446883216f.tar.gz llvm-9b5ef2bea8e3de8fd564ab74b8123b446883216f.tar.bz2 |
[mlir][Interfaces] `LoopLikeOpInterface`: Support ops with multiple regions (#66754)
This commit implements `LoopLikeOpInterface` on `scf.while`. This
enables LICM (and potentially other transforms) on `scf.while`.
`LoopLikeOpInterface::getLoopBody()` is renamed to `getLoopRegions` and
can now return multiple regions.
Also fix a bug in the default implementation of
`LoopLikeOpInterface::isDefinedOutsideOfLoop()`, which returned "false"
for some values that are defined outside of the loop (in a nested op, in
such a way that the value does not dominate the loop). This interface is
currently only used for LICM and there is no way to trigger this bug, so
no test is added.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions