This is an archive of the discontinued LLVM Phabricator instance.

[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
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

Diff Detail

Event Timeline

peixin created this revision.Apr 21 2022, 7:15 PM
peixin requested review of this revision.Apr 21 2022, 7:15 PM

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.

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.

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.

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
peixin updated this revision to Diff 425508.Apr 27 2022, 6:53 AM

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.

Looks ok for me for now.

@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?

Sorry, not cherry-pick. I mean, sync to fir-dev.