This patch provides the basic infrastructure for lowering declarative
constructs for OpenMP and OpenACC.
This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project
Paths
| Differential D124225
[flang] Add lowering stubs for OpenMP/OpenACC declarative constructs ClosedPublic Authored by peixin on Apr 21 2022, 7:15 PM.
Details Summary This patch provides the basic infrastructure for lowering declarative This is part of the upstreaming effort from the fir-dev branch in [1].
Diff Detail Event TimelineComment Actions LGTM. Is it a common practice to add XFAIL tests for undeveloped features without any CHECK: lines? I'd like for them to be added only while adding features without the XFAIL but I don't have a problem if others are okay with it. Comment Actions
To be honest, I don't know if it's common practice. I assume there is no strict rule. I was asked to add the test cases in fir-dev when I create this patch, so I added them. Comment Actions LGTM. We have a facility for checking TODO messages. See https://reviews.llvm.org/D114371. If you are interested, you can try this. This revision is now accepted and ready to land.Apr 27 2022, 5:00 AM Comment Actions Fix the test cases according to @kiranchandramohan 's comments. @clementval Is the fix for OpenACC OK to you? BTW, declare reduction test case has one segfault during semantic analysis. It is not our current priority. Closed by commit rGb6b8d34554a4: [flang] Add lowering stubs for OpenMP/OpenACC declarative constructs (authored by peixin). · Explain WhyApr 27 2022, 6:46 PM This revision was automatically updated to reflect the committed changes. Comment Actions @clementval The new patch is not supported in fir-dev anymore. But do I need to cherry-pick this to fir-dev considering this has some changes in lowering. Will this affect your upstreaming work?
Revision Contents
Diff 425508 flang/include/flang/Lower/OpenACC.h
flang/include/flang/Lower/OpenMP.h
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/OpenACC.cpp
flang/lib/Lower/OpenMP.cpp
flang/test/Lower/OpenACC/Todo/acc-declare.f90
flang/test/Lower/OpenACC/Todo/acc-routine.f90
flang/test/Lower/OpenMP/Todo/omp-declarative-allocate.f90
flang/test/Lower/OpenMP/Todo/omp-declare-reduction.f90
flang/test/Lower/OpenMP/Todo/omp-declare-simd.f90
flang/test/Lower/OpenMP/Todo/omp-declare-target.f90
flang/test/Lower/OpenMP/Todo/omp-threadprivate.f90
|