[Mlir-commits] [mlir] 5f32a85 - [mlir] Fix typos in comments

Markus Böck llvmlistbot at llvm.org
Thu Nov 4 02:59:53 PDT 2021


Author: Markus Böck
Date: 2021-11-04T10:59:44+01:00
New Revision: 5f32a851fb14c839555f55ac165cf5c17742e1ea

URL: https://github.com/llvm/llvm-project/commit/5f32a851fb14c839555f55ac165cf5c17742e1ea
DIFF: https://github.com/llvm/llvm-project/commit/5f32a851fb14c839555f55ac165cf5c17742e1ea.diff

LOG: [mlir] Fix typos in comments

Added: 
    

Modified: 
    mlir/include/mlir/Pass/AnalysisManager.h
    mlir/include/mlir/Reducer/ReductionNode.h
    mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Pass/AnalysisManager.h b/mlir/include/mlir/Pass/AnalysisManager.h
index 21318b0097a49..d5840818dffc4 100644
--- a/mlir/include/mlir/Pass/AnalysisManager.h
+++ b/mlir/include/mlir/Pass/AnalysisManager.h
@@ -212,7 +212,7 @@ class AnalysisMap {
     return static_cast<AnalysisModel<AnalysisT> &>(*it->second).analysis;
   }
 
-  /// Construct analysis using two arguments contructor (OpT, AnalysisManager)
+  /// Construct analysis using two arguments constructor (OpT, AnalysisManager)
   template <typename AnalysisT, typename OpT,
             std::enable_if_t<std::is_constructible<
                 AnalysisT, OpT, AnalysisManager &>::value> * = nullptr>
@@ -220,7 +220,7 @@ class AnalysisMap {
     return std::make_unique<AnalysisModel<AnalysisT>>(op, am);
   }
 
-  /// Construct analysis using single argument contructor (OpT)
+  /// Construct analysis using single argument constructor (OpT)
   template <typename AnalysisT, typename OpT,
             std::enable_if_t<!std::is_constructible<
                 AnalysisT, OpT, AnalysisManager &>::value> * = nullptr>

diff  --git a/mlir/include/mlir/Reducer/ReductionNode.h b/mlir/include/mlir/Reducer/ReductionNode.h
index a43b2f1008561..6cdbd2354810a 100644
--- a/mlir/include/mlir/Reducer/ReductionNode.h
+++ b/mlir/include/mlir/Reducer/ReductionNode.h
@@ -160,7 +160,7 @@ class ReductionNode {
   Tester::Interestingness interesting;
 
   /// `ranges` represents the selected subset of operations in the region. We
-  /// implictly number each operation in the region and ReductionTreePass will
+  /// implicitly number each operation in the region and ReductionTreePass will
   /// apply reducer patterns on the operation falls into the `ranges`. We will
   /// generate new ReductionNode with subset of `ranges` to see if we can do
   /// further reduction. we may split the element in the `ranges` so that we can

diff  --git a/mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h b/mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h
index ea09505a488e0..00c62163c23bc 100644
--- a/mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h
+++ b/mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h
@@ -42,7 +42,7 @@ class FrozenRewritePatternSet {
   /// `disabledPatternLabels` is a set of labels used to filter out input
   /// patterns with a label in this set. `enabledPatternLabels` is a set of
   /// labels used to filter out input patterns that do not have one of the
-  /// lables in this set.
+  /// labels in this set.
   FrozenRewritePatternSet(
       RewritePatternSet &&patterns,
       ArrayRef<std::string> disabledPatternLabels = llvm::None,


        


More information about the Mlir-commits mailing list