[PATCH] D92476: [OpenMPIRBuilder] introduce createStaticWorkshareLoop

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 03:59:21 PST 2020


ftynse created this revision.
ftynse added reviewers: jdoerfert, Meinersbur.
Herald added subscribers: llvm-commits, guansong, hiraditya, yaxunl.
Herald added a project: LLVM.
ftynse requested review of this revision.
Herald added a subscriber: sstefan1.

Introduce a function that creates a statically-scheduled workshare loop
out of a canonical loop created earlier by the OpenMPIRBuilder. This
basically amounts to injecting runtime calls to the preheader and the
after block and updating the trip count. Static scheduling kind is
currently hardcoded and needs to be extracted from the runtime library
into common TableGen definitions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92476

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: D92476.308931.patch
Type: text/x-patch
Size: 12748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/6b920e74/attachment.bin>


More information about the llvm-commits mailing list