diff options
author | Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com> | 2024-12-06 23:41:46 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 12:11:46 -0600 |
commit | e73ec1a74af3a390af5a77dea64022019a2a5686 (patch) | |
tree | 97440d2944ebf77f82a73256d80ecb7780c9c2b2 /lldb/test/Shell/ScriptInterpreter/Python/bytecode.test | |
parent | 02db35a1d644b559d3841f31e9167d12458f8efc (diff) | |
download | llvm-e73ec1a74af3a390af5a77dea64022019a2a5686.zip llvm-e73ec1a74af3a390af5a77dea64022019a2a5686.tar.gz llvm-e73ec1a74af3a390af5a77dea64022019a2a5686.tar.bz2 |
[Flang][OpenMP] Add some semantic checks for Linear clause (#111354)
This PR adds all the missing semantics for the Linear clause based on
the OpenMP 5.2 restrictions. The restriction details are mentioned
below.
OpenMP 5.2:
5.4.6 linear Clause restrictions
- A linear-modifier may be specified as ref or uval only on a declare
simd directive.
- If linear-modifier is not ref, all list items must be of type integer.
- If linear-modifier is ref or uval, all list items must be dummy
arguments without the VALUE attribute.
- List items must not be Cray pointers or variables that have the
POINTER attribute. Cray pointer support has been deprecated.
- If linear-modifier is ref, list items must be polymorphic variables,
assumed-shape arrays, or variables with the ALLOCATABLE attribute.
- A common block name must not appear in a linear clause.
- The list-item cannot appear more than once
4.4.4 ordered Clause restriction
- If n is explicitly specified, a linear clause must not be specified on
the same directive.
5.11 aligned Clause restriction
- Each list item must have C_PTR or Cray pointer type or have the
POINTER or ALLOCATABLE attribute. Cray pointer support has been
deprecated.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/bytecode.test')
0 files changed, 0 insertions, 0 deletions