[Mlir-commits] [mlir] edffb97 - [mlir] Fix comment typos

Jacques Pienaar llvmlistbot at llvm.org
Thu Jul 22 20:04:51 PDT 2021


Author: Jacques Pienaar
Date: 2021-07-22T20:04:40-07:00
New Revision: edffb97d1e7c9f56114ab6018c3fc58920307c5d

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

LOG: [mlir] Fix comment typos

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/DataFlowAnalysis.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/DataFlowAnalysis.h b/mlir/include/mlir/Analysis/DataFlowAnalysis.h
index cc83947c84f41..8248019df7d66 100644
--- a/mlir/include/mlir/Analysis/DataFlowAnalysis.h
+++ b/mlir/include/mlir/Analysis/DataFlowAnalysis.h
@@ -8,7 +8,7 @@
 //
 // This files several utilities and algorithms that perform abstract dataflow
 // analysis over the IR. These allow for users to hook into various analysis
-// propagation algorithms without needing to reinvent the traveral over the
+// propagation algorithms without needing to reinvent the traversal over the
 // 
diff erent types of control structures present within MLIR, such as regions,
 // the callgraph, etc. A few of the main entry points are detailed below:
 //
@@ -75,7 +75,7 @@ class AbstractLatticeElement {
   virtual ChangeResult markPessimisticFixpoint() = 0;
 
   /// Mark the lattice element as having reached an optimistic fixpoint. This
-  /// means that we optimisticly assume the current value is the true state.
+  /// means that we optimistically assume the current value is the true state.
   virtual void markOptimisticFixpoint() = 0;
 
   /// Returns true if the lattice has reached a fixpoint. A fixpoint is when the
@@ -174,7 +174,7 @@ class LatticeElement final : public detail::AbstractLatticeElement {
   }
 
   /// Mark the lattice element as having reached an optimistic fixpoint. This
-  /// means that we optimisticly assume the current value is the true state.
+  /// means that we optimistically assume the current value is the true state.
   void markOptimisticFixpoint() final {
     assert(!isUninitialized() && "expected an initialized value");
     knownValue = *optimisticValue;
@@ -200,7 +200,7 @@ class LatticeElement final : public detail::AbstractLatticeElement {
 namespace detail {
 /// This class is the non-templated virtual base class for the
 /// ForwardDataFlowAnalysis. This class provides opaque hooks to the main
-/// alogrithm.
+/// algorithm.
 class ForwardDataFlowAnalysisBase {
 public:
   virtual ~ForwardDataFlowAnalysisBase();
@@ -265,9 +265,9 @@ class ForwardDataFlowAnalysisBase {
 // ForwardDataFlowAnalysis
 //===----------------------------------------------------------------------===//
 
-/// This class provides a general forward dataflow analyis driver
+/// This class provides a general forward dataflow analysis driver
 /// utilizing the lattice classes defined above, to enable the easy definition
-/// of dataflow analysis algorithms. More specically this driver is useful for
+/// of dataflow analysis algorithms. More specifically this driver is useful for
 /// defining analyses that are forward, sparse, pessimistic (except along
 /// unreached backedges) and context-insensitive for the interprocedural
 /// aspects.


        


More information about the Mlir-commits mailing list