[flang-commits] [flang] [OpenACC][flang] Emit NYI when unstructured loops are associated with OpenACC directives (PR #202948)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Fri Jun 12 00:53:02 PDT 2026


ergawy wrote:

> For some of the tests you removed because of the NYI, I am wondering if we can keep them to ensure that the IR is still what we expect. A couple of ideas:
> 
> * Add a flag in OpenACC.cpp that we can use to avoid the NYI
> * Update the test to use a construct like `acc kernels` to avoid the NYI.
> 
> The code changes look great to me and they look like they indeed achieve what I had envisioned.

I updated the tests with `acc serial`. `acc kernels` also hits a previously introduced NYI: https://github.com/llvm/llvm-project/blob/main/flang/lib/Lower/OpenACC.cpp#L5028.

https://github.com/llvm/llvm-project/pull/202948


More information about the flang-commits mailing list