[all-commits] [llvm/llvm-project] 26b5be: [OpenMPIRBuilder] Implement collapseLoops.

Michael Kruse via All-commits all-commits at lists.llvm.org
Wed Feb 3 17:12:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26b5be66f9c540028136f4fb4538c5786104abb9
      https://github.com/llvm/llvm-project/commit/26b5be66f9c540028136f4fb4538c5786104abb9
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OpenMPIRBuilder] Implement collapseLoops.

The collapseLoops method implements a transformations facilitating the implementation of the collapse-clause. It takes a list of loops from a loop nest and reduces it to a single loop that can be used by other methods that are implemented on just a single loop, such as createStaticWorkshareLoop.

This patch shares some changes with D92974 (such as adding some getters to CanonicalLoopNest), used by both patches.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D93268




More information about the All-commits mailing list