diff options
author | Sergio Afonso <safonsof@amd.com> | 2024-04-19 16:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 16:15:10 +0100 |
commit | 5e5b8c49096afba8e4e0fd094a5ab905a9acced0 (patch) | |
tree | 10ba39e5ba4b4bf013a3354dbe48cb931779a93b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9dbf3e2384e450c2b4f282b85b9ec47c65976194 (diff) | |
download | llvm-5e5b8c49096afba8e4e0fd094a5ab905a9acced0.zip llvm-5e5b8c49096afba8e4e0fd094a5ab905a9acced0.tar.gz llvm-5e5b8c49096afba8e4e0fd094a5ab905a9acced0.tar.bz2 |
[MLIR][OpenMP] Verify loop wrapper properties of omp.parallel (#88722)
This patch extends verification of the `omp.parallel` operation to check
it is correctly defined when taking a loop wrapper role.
In OpenMP, a PARALLEL construct can be either a (potenially combined)
block construct or a loop construct, when appearing as part of a
composite construct. This is currently the case for the DISTRIBUTE
PARALLEL DO/FOR and DISTRIBUTE PARALLEL DO/FOR SIMD exclusively.
When used to represent the PARALLEL leaf of a composite construct, it
must follow the rules of a wrapper loop operation in MLIR, and this is
what this patch ensures. No additional restrictions are introduced for
PARALLEL block constructs.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions