diff options
author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2025-07-24 08:59:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-24 08:59:13 -0500 |
commit | 1ba3859cdbf263182502b1c00546e985bdb633da (patch) | |
tree | 16e7937e79370ed2a14e6b222c4b55173d957816 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | 3003e4e8616015cd247ccbede67598ac544825da (diff) | |
download | llvm-1ba3859cdbf263182502b1c00546e985bdb633da.zip llvm-1ba3859cdbf263182502b1c00546e985bdb633da.tar.gz llvm-1ba3859cdbf263182502b1c00546e985bdb633da.tar.bz2 |
[flang][OpenMP] Parse strictly- and loosely-structured blocks (#150298)
Block-associated constructs have, as their body, either a strictly- or a
loosely-structured block. In the former case the end-directive is
optional.
The existing parser required the end-directive to be present in all
cases.
Note:
The definitions of these blocks in the OpenMP spec exclude cases where
the block contains more than one construct, and the first one is
BLOCK/ENDBLOCK. For example, the following is invalid:
```
!$omp target
block ! This cannot be a strictly-structured block, but
continue ! a loosely-structured block cannot start with
endblock ! BLOCK/ENDBLOCK
continue !
!$omp end target
```
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
0 files changed, 0 insertions, 0 deletions