[PATCH] D92974: [OpenMPIRBuilder] Implement tileLoops.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 14:46:45 PST 2020


Meinersbur created this revision.
Meinersbur added reviewers: jdoerfert, AMDChirag, anchu-rajendran, kiranchandramohan, SouraVX, ftynse, kiranktp, fghanim.
Herald added subscribers: dexonsmith, guansong, hiraditya, yaxunl.
Meinersbur requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: LLVM.

The  tileLoops method implements the code generation part of the tile directive introduced in OpenMP 5.1. It takes a list of loops forming a loop nest, tiles it, and returns the CanonicalLoopInfo representing the generated loops.

The implementation takes n CanonicalLoopInfos, n tile size Values and returns 2*n new CanonicalLoopInfos. The input CanonicalLoopInfos are invalidated and BBs not reused in the new loop nest removed from the function.

In a modified version of D76342 <https://reviews.llvm.org/D76342>, I was able to correctly compile and execute a tiled loop nest.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92974

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92974.310671.patch
Type: text/x-patch
Size: 45587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201209/e95ca7a5/attachment.bin>


More information about the llvm-commits mailing list