This is an archive of the discontinued LLVM Phabricator instance.

[flang][OpenMP] Added lowering support for sections construct
ClosedPublic

Authored by NimishMishra on Mar 23 2022, 3:45 AM.

Details

Diff Detail

Event Timeline

NimishMishra created this revision.Mar 23 2022, 3:45 AM
NimishMishra requested review of this revision.Mar 23 2022, 3:45 AM

LGTM.

flang/lib/Lower/OpenMP.cpp
321

nit: I think this auto is OmpClause. Can we spell it out if it is small?

LGTM, with @shraiysh's comment addressed.

This revision is now accepted and ready to land.Mar 23 2022, 6:45 PM
peixin added inline comments.Mar 23 2022, 6:55 PM
flang/lib/Lower/OpenMP.cpp
99

Nit: Can we use gen instead of handle to be consistent with other function names in Openmp.cpp?

117

Nit: Remove this empty line.

325

Should this be else if?

342

/*what=*/nullptr

Super-nit: The filename omp-sections.f90 is not in sync with the other filenames in the folder. I do not have an opinion of one way or another, but it would be nice to stick to one naming style.

Thanks @peixin and @shraiysh for the nits. I have addressed them all.