https://github.com/llvm/llvm-project/issues/64728
In https://reviews.llvm.org/D144634 : Support for Code Generation of loop bind clause,
before mapping a directive to the new directive there is a need to check if the parent directive/region is proper for the new mapped directive. e.g.
#pragma omp parallel for
for () {
#pragma omp loop bind(parallel) for() {}
}.
After mapping "omp loop bind(parallel)" to "omp for" the above example becomes:
#pragma omp parallel for
for () {
#pragma omp for for() {}
}.
However, it is illegal to have a "for" region within another "for" region. Thanks to David Pagan for pointing this out.
Need to drop these extra calls of checkNestingOfRegions(), all check must be handled in the single call. Can we do it?