diff options
author | Valentin Clement (バレンタイン クレメン) <clementval@gmail.com> | 2023-11-30 14:25:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 14:25:03 -0800 |
commit | a9a5af82704d772509ccef87991384f47b65884d (patch) | |
tree | df39a48709cb06c1bc563dfecb4a2207725b3416 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 6fb7c2d713587a061cd281eda917746750559380 (diff) | |
download | llvm-a9a5af82704d772509ccef87991384f47b65884d.zip llvm-a9a5af82704d772509ccef87991384f47b65884d.tar.gz llvm-a9a5af82704d772509ccef87991384f47b65884d.tar.bz2 |
[flang][openacc] Support early return in acc.loop (#73841)
Early return is accepted in OpenACC loop not directly nested in a
compute construct. Since acc.loop operation has a region, the
`func.return` operation cannot be directly used inside the region.
An early return is materialized by an `acc.yield` operation returning a
`true` value. The standard end of the `acc.loop` region yield a `false`
value in this case.
A conditional branch operation on the `acc.loop` result will branch to
the `finalBlock` or just to the continue block whether an early exit was
produce in the acc.loop.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions