[PATCH] D89671: [LLVM][OpenMP] Adding support for OpenMP sections construct in OpenMPIRBuilder

Chirag Khandelwal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 10 22:16:44 PST 2021


AMDChirag updated this revision to Diff 315702.
AMDChirag added a comment.

Added the use of `createCanonicalLoop` and `createStaticWorkshareLoop`.
Created `OMP.createSection` for handling the section's code generation.
Section callbacks are no longer a part of `createSections`.
Modified `EmitOMPInlinedRegion` to be able to handle `nullptr` for EntryCall/ExitCall parameters.
Removed changes from `OMPConstants.hpp` and `OMPKinds.def` to, originally, move to separate differential, but now are not required since loop creation is handled with `createCanonicalLoop` and `createStaticWorkshareLoop`.
`OMP.createSections` no longer uses `EmitOMPInlinedRegion`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89671/new/

https://reviews.llvm.org/D89671

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89671.315702.patch
Type: text/x-patch
Size: 11957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/5e64934e/attachment.bin>


More information about the llvm-commits mailing list