[polly] r262114 - LoopGenerators: Expose some parts of the parallel loop generator

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 22:24:59 PST 2016


Author: grosser
Date: Sat Feb 27 00:24:58 2016
New Revision: 262114

URL: http://llvm.org/viewvc/llvm-project?rev=262114&view=rev
Log:
LoopGenerators: Expose some parts of the parallel loop generator

Some of this functionality is useful beyond the generation of a normal OpenMP
loop.

Modified:
    polly/trunk/include/polly/CodeGen/LoopGenerators.h

Modified: polly/trunk/include/polly/CodeGen/LoopGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/LoopGenerators.h?rev=262114&r1=262113&r2=262114&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/LoopGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/LoopGenerators.h Sat Feb 27 00:24:58 2016
@@ -106,8 +106,10 @@ public:
             Type::getIntNTy(Builder.getContext(), DL.getPointerSizeInBits())),
         M(Builder.GetInsertBlock()->getParent()->getParent()) {}
 
-  /// @brief Create a parallel loop
+  /// @brief Create a parallel loop.
   ///
+  /// This function is the main function to automatically generate a parallel
+  /// loop with all its components.
   ///
   /// @param LB        The lower bound for the loop we parallelize.
   /// @param UB        The upper bound for the loop we parallelize.
@@ -147,6 +149,11 @@ private:
   /// @brief The current module
   Module *M;
 
+public:
+  /// The functions below can be used if one does not want to generate a
+  /// specific OpenMP parallel loop, but generate individual parts of it
+  /// (e.g., the subfunction definition).
+
   /// @brief Create a runtime library call to spawn the worker threads.
   ///
   /// @param SubFn      The subfunction which holds the loop body.




More information about the llvm-commits mailing list