[flang-commits] [flang] [mlir] [OpenMP][Flang] Add "IsolatedFromAbove" trait to omp.target (PR #67164)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Wed Nov 1 10:51:18 PDT 2023
kiranchandramohan wrote:
> @kiranchandramohan @jeanPerier Sorry to bother both of you, but I've run into an issue with this patch.
>
> When the target region contains a do while loop like in the example below, the loop code is absent entirely from the generated FIR/HLFIR.
>
> This happens for the target data directive as well for which we added a similar custom region body generator some time back.
>
> Any idea why?
I am assuming this happens only when there is unstructured code (code with jumps, do while etc) in the body of the operation. There is some special handling for unstructured code, have a look at https://github.com/llvm/llvm-project/blob/6c320b434d249c0d5692cbecc0e67ec22d659b7e/flang/lib/Lower/OpenMP.cpp#L2132
This is a separate issue and can be fixed in another patch.
https://github.com/llvm/llvm-project/pull/67164
More information about the flang-commits
mailing list