[PATCH] D107764: [OpenMP][OpenMPIRBuilder] Implement loop unrolling.

Michael Kruse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 2 18:34:04 PDT 2021


Meinersbur updated this revision to Diff 370464.
Meinersbur added a comment.
Herald added a subscriber: ormris.

Register required passes individually instead of asking the PassBuilder to register them. The PassBuilder sits in the LLVMPasses component. This creates a circular dependency since LLVMPasses requires LLVMipo containing the OpenMPOpt pass that uses the OpenMPIRBuilder. LLVMFrontend was originally intended to contain code common in Frontends, it is non-obvious that LLVM uses it internally as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107764

Files:
  clang/include/clang/Sema/Sema.h
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/lib/Parse/ParseOpenMP.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/irbuilder_unroll_full.c
  clang/test/OpenMP/irbuilder_unroll_heuristic.c
  clang/test/OpenMP/irbuilder_unroll_partial_factor.c
  clang/test/OpenMP/irbuilder_unroll_partial_factor_for.c
  clang/test/OpenMP/irbuilder_unroll_partial_factor_for_collapse.c
  clang/test/OpenMP/irbuilder_unroll_partial_heuristic.c
  clang/test/OpenMP/irbuilder_unroll_partial_heuristic_constant_for.c
  clang/test/OpenMP/irbuilder_unroll_partial_heuristic_for_collapse.c
  clang/test/OpenMP/irbuilder_unroll_partial_heuristic_runtime_for.c
  clang/test/OpenMP/irbuilder_unroll_unroll_partial_factor.c
  clang/test/OpenMP/irbuilder_unroll_unroll_partial_heuristic.c
  llvm/include/llvm/Analysis/LoopInfo.h
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Analysis/LoopInfo.cpp
  llvm/lib/Frontend/OpenMP/CMakeLists.txt
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/lib/Transforms/IPO/CMakeLists.txt
  llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107764.370464.patch
Type: text/x-patch
Size: 158266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210903/67784e83/attachment-0001.bin>


More information about the cfe-commits mailing list