Fix a couple of spelling mistakes
authorTobias Grosser <tobias@grosser.es>
Wed, 3 Aug 2016 05:28:09 +0000 (05:28 +0000)
committerTobias Grosser <tobias@grosser.es>
Wed, 3 Aug 2016 05:28:09 +0000 (05:28 +0000)
llvm-svn: 277569

polly/include/polly/CodeGen/BlockGenerators.h
polly/include/polly/CodeGen/IslNodeBuilder.h
polly/include/polly/ScheduleOptimizer.h
polly/include/polly/ScopBuilder.h
polly/include/polly/ScopDetectionDiagnostic.h
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/BlockGenerators.cpp
polly/lib/CodeGen/IslNodeBuilder.cpp
polly/lib/Transform/ScheduleOptimizer.cpp

index eade339..92b62ea 100644 (file)
@@ -536,7 +536,7 @@ protected:
   void copyInstruction(ScopStmt &Stmt, Instruction *Inst, ValueMapT &BBMap,
                        LoopToScevMapT &LTS, isl_id_to_ast_expr *NewAccesses);
 
-  /// @brief Helper to determine if @p Inst can be synthezised in @p Stmt.
+  /// @brief Helper to determine if @p Inst can be synthesized in @p Stmt.
   ///
   /// @returns false, iff @p Inst can be synthesized in @p Stmt.
   bool canSyntheziseInStmt(ScopStmt &Stmt, Instruction *Inst);
@@ -569,7 +569,7 @@ public:
   ///                     within this basic block), one for each lane.
   /// @param Schedule    A map from the statement to a schedule where the
   ///                    innermost dimension is the dimension of the innermost
-  ///                    loop containing the statemenet.
+  ///                    loop containing the statement.
   /// @param NewAccesses A map from memory access ids to new ast expressions,
   ///                    which may contain new access expressions for certain
   ///                    memory accesses.
@@ -586,7 +586,7 @@ private:
   // vector lane, ...
   // Each map, contains information about Instructions in the old ScoP, which
   // are recalculated in the new SCoP. When copying the basic block, we replace
-  // all referenes to the old instructions with their recalculated values.
+  // all references to the old instructions with their recalculated values.
   //
   // For example, when the code generator produces this AST:
   //
@@ -601,7 +601,7 @@ private:
   std::vector<LoopToScevMapT> &VLTS;
 
   // A map from the statement to a schedule where the innermost dimension is the
-  // dimension of the innermost loop containing the statemenet.
+  // dimension of the innermost loop containing the statement.
   isl_map *Schedule;
 
   VectorBlockGenerator(BlockGenerator &BlockGen,
index 3c8ae65..836aa2f 100644 (file)
@@ -129,7 +129,7 @@ protected:
   /// Generate code for a given SCEV*
   ///
   /// This function generates code for a given SCEV expression. It generated
-  /// code is emmitted at the end of the basic block our Builder currently
+  /// code is emitted at the end of the basic block our Builder currently
   /// points to and the resulting value is returned.
   ///
   /// @param Expr The expression to code generate.
@@ -151,7 +151,7 @@ protected:
   /// @param All If not set only parameters referred to by the constraints in
   ///            @p Set will be materialized, otherwise all.
   ///
-  /// @returns False, iff a problem occured and the value was not materialized.
+  /// @returns False, iff a problem occurred and the value was not materialized.
   bool materializeParameters(__isl_take isl_set *Set, bool All);
 
   // Extract the upper bound of this loop
@@ -169,7 +169,7 @@ protected:
   //    It must not be calculated at each loop iteration and can often even be
   //    hoisted out further by the loop invariant code motion.
   //
-  // 2. OpenMP needs a loop invarient upper bound to calculate the number
+  // 2. OpenMP needs a loop invariant upper bound to calculate the number
   //    of loop iterations.
   //
   // 3. With the existing code, upper bounds have been easier to implement.
@@ -261,7 +261,7 @@ protected:
   /// map all members of @p IAClass to that preloaded value, potentially casted
   /// to the required type.
   ///
-  /// @returns False, iff a problem occured and the load was not preloaded.
+  /// @returns False, iff a problem occurred and the load was not preloaded.
   bool preloadInvariantEquivClass(InvariantEquivClassTy &IAClass);
 
   void createForVector(__isl_take isl_ast_node *For, int VectorWidth);
index 38ecb01..44be552 100644 (file)
@@ -69,7 +69,7 @@ public:
   ///
   /// This function takes a node in an (possibly already optimized) schedule
   /// tree and applies a set of additional optimizations on this schedule tree
-  /// node and its descendents. The transformations applied include:
+  /// node and its descendants. The transformations applied include:
   ///
   ///   - Tiling
   ///   - Prevectorization
index 28740d7..bd776ce 100644 (file)
@@ -91,7 +91,7 @@ class ScopBuilder {
   /// @returns True if the access could be built, False otherwise.
   bool buildAccessCallInst(MemAccInst Inst, Loop *L);
 
-  /// @brief Build a single-dimensional parameteric sized MemoryAccess
+  /// @brief Build a single-dimensional parametric sized MemoryAccess
   ///        from the Load/Store instruction.
   ///
   /// @param Inst       The Load/Store instruction that access the memory
@@ -159,7 +159,7 @@ class ScopBuilder {
   /// @param Affine      Whether all subscripts are affine expressions.
   /// @param AccessValue Value read or written.
   /// @param Subscripts  Access subscripts per dimension.
-  /// @param Sizes       The array diminsion's sizes.
+  /// @param Sizes       The array dimension's sizes.
   /// @param Kind        The kind of memory accessed.
   ///
   /// @return The created MemoryAccess, or nullptr if the access is not within
index dff3731..350522f 100644 (file)
@@ -43,10 +43,10 @@ class Region;
 
 namespace polly {
 
-/// @brief Type to hold region delimitors (entry & exit block).
+/// @brief Type to hold region delimiters (entry & exit block).
 using BBPair = std::pair<BasicBlock *, BasicBlock *>;
 
-/// @brief Return the region delimitors (entry & exit block) of @p R.
+/// @brief Return the region delimiters (entry & exit block) of @p R.
 BBPair getBBPairForRegion(const Region *R);
 
 /// @brief Set the begin and end source location for the region limited by @p P.
@@ -57,7 +57,7 @@ class RejectLog;
 ///
 /// This emits the content of the reject log as optimization remarks.
 /// Remember to at least track failures (-polly-detect-track-failures).
-/// @param P The region delimitors (entry & exit) we emit remarks for.
+/// @param P The region delimiters (entry & exit) we emit remarks for.
 /// @param Log The error log containing all messages being emitted as remark.
 void emitRejectionRemarks(const BBPair &P, const RejectLog &Log);
 
index 3fe7c72..e84f6eb 100644 (file)
@@ -534,7 +534,7 @@ private:
   /// For memory accesses of kind MK_PHI or MK_ExitPHI the access
   /// instruction of a load access is the PHI instruction. The access
   /// instruction of a PHI-store is the incoming's block's terminator
-  /// intruction.
+  /// instruction.
   ///
   /// For memory accesses of kind MK_Value the access instruction of a load
   /// access is nullptr because generally there can be multiple instructions in
@@ -648,7 +648,7 @@ private:
   /// @brief Create the access relation for the underlying memory intrinsic.
   void buildMemIntrinsicAccessRelation();
 
-  /// @brief Assemble the access relation from all availbale information.
+  /// @brief Assemble the access relation from all available information.
   ///
   /// In particular, used the information passes in the constructor and the
   /// parent ScopStmt set by setStatment().
@@ -706,7 +706,7 @@ public:
   ///
   /// After code generation moves some PHIs around during region simplification,
   /// we cannot reliably locate the original PHI node and its incoming values
-  /// anymore. For this reason we remember these explicitely for all PHI-kind
+  /// anymore. For this reason we remember these explicitly for all PHI-kind
   /// accesses.
   ArrayRef<std::pair<BasicBlock *, Value *>> getIncoming() const {
     assert(isAnyPHIKind());
@@ -783,7 +783,7 @@ public:
   /// @brief Get the ScopArrayInfo object for the base address.
   const ScopArrayInfo *getScopArrayInfo() const;
 
-  /// @brief Return a string representation of the accesse's reduction type.
+  /// @brief Return a string representation of the access's reduction type.
   const std::string getReductionOperatorStr() const;
 
   /// @brief Return a string representation of the reduction type @p RT.
index c8b61bb..49accbf 100644 (file)
@@ -383,7 +383,7 @@ void MemoryAccess::updateDimensionality() {
   // two subsequent values of 'i' index two values that are stored next to
   // each other in memory. By this division we make this characteristic
   // obvious again. If the base pointer was accessed with offsets not divisible
-  // by the accesses element size, we will have choosen a smaller ArrayElemSize
+  // by the accesses element size, we will have chosen a smaller ArrayElemSize
   // that divides the offsets of all accesses to this base pointer.
   if (DimsAccess == 1) {
     isl_val *V = isl_val_int_from_si(Ctx, ArrayElemSize);
index 510dc86..436aea1 100644 (file)
@@ -892,7 +892,7 @@ bool VectorBlockGenerator::extractScalarValues(const Instruction *Inst,
 
       // If there is one scalar extracted, all scalar elements should have
       // already been extracted by the code here. So no need to check for the
-      // existance of all of them.
+      // existence of all of them.
       if (SM.count(Operand))
         break;
 
index fa10d64..989f927 100644 (file)
@@ -1066,14 +1066,14 @@ bool IslNodeBuilder::preloadInvariantEquivClass(
   if (ValueMap.count(MA->getAccessInstruction()))
     return true;
 
-  // Check for recurrsion which can be caused by additional constraints, e.g.,
-  // non-finitie loop contraints. In such a case we have to bail out and insert
+  // Check for recursion which can be caused by additional constraints, e.g.,
+  // non-finite loop constraints. In such a case we have to bail out and insert
   // a "false" runtime check that will cause the original code to be executed.
   auto PtrId = std::make_pair(IAClass.IdentifyingPointer, IAClass.AccessType);
   if (!PreloadedPtrs.insert(PtrId).second)
     return false;
 
-  // The exectution context of the IAClass.
+  // The execution context of the IAClass.
   isl_set *&ExecutionCtx = IAClass.ExecutionContext;
 
   // If the base pointer of this class is dependent on another one we have to
index acecf9d..83f28f7 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// This pass generates an entirey new schedule tree from the data dependences
+// This pass generates an entirely new schedule tree from the data dependences
 // and iteration domains. The new schedule tree is computed in two steps:
 //
 // 1) The isl scheduling optimizer is run