This patch lowers allocatables and pointers named in "private" OpenMP clause.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I see that this is WIP but I guess since you put it on phab it is to get some reviews. There are couple of places where you don't follow the llvm guidlines.
flang/lib/Lower/Bridge.cpp | ||
---|---|---|
609–610 | This change is not needed. | |
716–720 | Not needed change and the code is already following the guidelines. | |
745 | This is probably not needed. | |
748–751 | Don't brace on simple single statement bodies. | |
flang/lib/Lower/OpenMP.cpp | ||
166–177 | ||
178–180 |
flang/lib/Lower/Bridge.cpp | ||
---|---|---|
748–751 | The flang code style diverges unfortunately. |
flang/lib/Lower/Bridge.cpp | ||
---|---|---|
748–751 | In lowering it does not. At least not on this point. |
Thanks @d-smirnov for the patch and for addressing the comments from Valentin.
Could you check whether the following issues are fixed by this patch?
https://github.com/llvm/llvm-project/issues/61453
https://github.com/llvm/llvm-project/issues/61876
https://github.com/llvm/llvm-project/issues/61199
https://github.com/llvm/llvm-project/issues/60871
https://github.com/flang-compiler/f18-llvm-project/issues/1229
https://github.com/flang-compiler/f18-llvm-project/issues/1171#issuecomment-955180002
flang/lib/Lower/Bridge.cpp | ||
---|---|---|
630 | There seems to be some very similar code in line 739 onwards. Can this be refactored and shared? |
Some minor comments for tests. Looking mostly OK.
flang/lib/Lower/Bridge.cpp | ||
---|---|---|
12 | Nit: Accidental change. | |
flang/lib/Lower/OpenMP.cpp | ||
725–727 | Nit: braces not required. | |
flang/test/Lower/OpenMP/parallel-private-clause.f90 | ||
184–233 | There is a lot of code here that is not being checked. Can the additional code be removed if they are not checked. Also, only check what is relevant. | |
371 | Nit: Use capital letters for capture variables (like r here). | |
390 | The dealloc check for this is missing. |
Nit: Accidental change.