[clang-tools-extra] [mlir] [NFC][MLIR] Fix some typos (PR #108355)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 03:12:23 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-llvm

Author: VitalyR (VitalyAnkh)

<details>
<summary>Changes</summary>



---

Patch is 140.25 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/108355.diff


130 Files Affected:

- (modified) clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp (+7-7) 
- (modified) mlir/docs/Canonicalization.md (+6-6) 
- (modified) mlir/docs/Dialects/Linalg/_index.md (+1-1) 
- (modified) mlir/docs/PDLL.md (+1-1) 
- (modified) mlir/docs/Rationale/RationaleLinalgDialect.md (+1-1) 
- (modified) mlir/docs/SPIRVToLLVMDialectConversion.md (+1-1) 
- (modified) mlir/docs/Tutorials/Toy/Ch-4.md (+1-1) 
- (modified) mlir/docs/doxygen.cfg.in (+1-1) 
- (modified) mlir/include/mlir/AsmParser/AsmParser.h (+2-2) 
- (modified) mlir/include/mlir/Bytecode/BytecodeImplementation.h (+1-1) 
- (modified) mlir/include/mlir/Bytecode/BytecodeReader.h (+1-1) 
- (modified) mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h (+1-1) 
- (modified) mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h (+1-1) 
- (modified) mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/Arith/IR/ArithBase.td (+1-1) 
- (modified) mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td (+1-1) 
- (modified) mlir/include/mlir/Dialect/DLTI/DLTIBase.td (+3-3) 
- (modified) mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td (+1-1) 
- (modified) mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/Linalg/Utils/Utils.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td (+1-1) 
- (modified) mlir/include/mlir/Dialect/SCF/Transforms/Transforms.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/SCF/Utils/Utils.h (+1-1) 
- (modified) mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td (+1-1) 
- (modified) mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td (+1-1) 
- (modified) mlir/include/mlir/IR/AttrTypeBase.td (+1-1) 
- (modified) mlir/include/mlir/IR/OpImplementation.h (+1-1) 
- (modified) mlir/include/mlir/IR/OperationSupport.h (+1-1) 
- (modified) mlir/include/mlir/IR/Threading.h (+1-1) 
- (modified) mlir/include/mlir/Interfaces/DataLayoutInterfaces.h (+2-2) 
- (modified) mlir/include/mlir/Interfaces/DataLayoutInterfaces.td (+3-3) 
- (modified) mlir/include/mlir/Interfaces/Utils/InferIntRangeCommon.h (+1-1) 
- (modified) mlir/include/mlir/Tools/PDLL/AST/Nodes.h (+2-2) 
- (modified) mlir/include/mlir/Tools/PDLL/AST/Types.h (+2-2) 
- (modified) mlir/include/mlir/Tools/PDLL/ODS/Context.h (+1-1) 
- (modified) mlir/include/mlir/Tools/PDLL/ODS/Dialect.h (+1-1) 
- (modified) mlir/include/mlir/Tools/PDLL/ODS/Operation.h (+5-5) 
- (modified) mlir/include/mlir/Tools/ParseUtilities.h (+1-1) 
- (modified) mlir/include/mlir/Tools/lsp-server-support/Protocol.h (+1-1) 
- (modified) mlir/include/mlir/Transforms/DialectConversion.h (+3-3) 
- (modified) mlir/include/mlir/Transforms/Inliner.h (+1-1) 
- (modified) mlir/include/mlir/Transforms/OneToNTypeConversion.h (+2-2) 
- (modified) mlir/include/mlir/Transforms/Passes.td (+3-3) 
- (modified) mlir/include/mlir/Transforms/RegionUtils.h (+1-1) 
- (modified) mlir/lib/Bindings/Python/IRModule.h (+1-1) 
- (modified) mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp (+1-1) 
- (modified) mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp (+1-1) 
- (modified) mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp (+1-1) 
- (modified) mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Affine/IR/AffineOps.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Affine/Utils/Utils.cpp (+1-1) 
- (modified) mlir/lib/Dialect/ArmSME/Transforms/VectorLegalization.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp (+1-1) 
- (modified) mlir/lib/Dialect/DLTI/DLTI.cpp (+10-10) 
- (modified) mlir/lib/Dialect/GPU/Transforms/AllReduceLowering.cpp (+1-1) 
- (modified) mlir/lib/Dialect/LLVMIR/IR/LLVMMemorySlot.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Linalg/Transforms/NamedOpConversions.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp (+2-2) 
- (modified) mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp (+1-1) 
- (modified) mlir/lib/Dialect/MemRef/Transforms/EmulateWideInt.cpp (+1-1) 
- (modified) mlir/lib/Dialect/SCF/Utils/Utils.cpp (+1-1) 
- (modified) mlir/lib/Dialect/SPIRV/Transforms/UnifyAliasedResourcePass.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Tensor/IR/TensorInferTypeOpInterfaceImpl.cpp (+4-4) 
- (modified) mlir/lib/Dialect/Tensor/IR/TensorOps.cpp (+1-1) 
- (modified) mlir/lib/IR/BuiltinTypes.cpp (+1-1) 
- (modified) mlir/lib/Interfaces/DataLayoutInterfaces.cpp (+5-5) 
- (modified) mlir/lib/Target/LLVMIR/DataLayoutImporter.cpp (+6-6) 
- (modified) mlir/lib/Target/LLVMIR/DataLayoutImporter.h (+1-1) 
- (modified) mlir/lib/Target/LLVMIR/ModuleTranslation.cpp (+2-2) 
- (modified) mlir/lib/Tools/PDLL/ODS/Context.cpp (+2-2) 
- (modified) mlir/lib/Tools/PDLL/ODS/Dialect.cpp (+2-2) 
- (modified) mlir/lib/Tools/PDLL/ODS/Operation.cpp (+2-2) 
- (modified) mlir/lib/Tools/PDLL/Parser/Parser.cpp (+16-16) 
- (modified) mlir/lib/Transforms/InlinerPass.cpp (+1-1) 
- (modified) mlir/lib/Transforms/RemoveDeadValues.cpp (+4-4) 
- (modified) mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp (+1-1) 
- (modified) mlir/lib/Transforms/Utils/Inliner.cpp (+1-1) 
- (modified) mlir/test/Conversion/ArithToEmitC/arith-to-emitc.mlir (+4-4) 
- (modified) mlir/test/Conversion/ArithToLLVM/arith-to-llvm.mlir (+4-4) 
- (modified) mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir (+1-1) 
- (modified) mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir (+3-3) 
- (modified) mlir/test/Conversion/SPIRVToLLVM/comparison-ops-to-llvm.mlir (+2-2) 
- (modified) mlir/test/Dialect/Arith/canonicalize.mlir (+4-4) 
- (modified) mlir/test/Dialect/Arith/ops.mlir (+1-1) 
- (modified) mlir/test/Dialect/ControlFlow/canonicalize.mlir (+8-8) 
- (modified) mlir/test/Dialect/Linalg/convert-elementwise-to-linalg.mlir (+4-4) 
- (modified) mlir/test/Dialect/Linalg/match-ops-interpreter.mlir (+1-1) 
- (modified) mlir/test/Dialect/Linalg/transform-op-peel-and-vectorize-conv.mlir (+1-1) 
- (modified) mlir/test/Dialect/Linalg/transform-op-peel-and-vectorize.mlir (+1-1) 
- (modified) mlir/test/Dialect/Math/expand-math.mlir (+5-5) 
- (modified) mlir/test/Dialect/Math/polynomial-approximation.mlir (+8-8) 
- (modified) mlir/test/Dialect/MemRef/expand-strided-metadata.mlir (+1-1) 
- (modified) mlir/test/Dialect/PDLInterp/ops.mlir (+1-1) 
- (modified) mlir/test/Dialect/SCF/for-loop-canonicalization.mlir (+2-2) 
- (modified) mlir/test/Dialect/Vector/vector-sink.mlir (+2-2) 
- (modified) mlir/test/IR/core-ops.mlir (+2-2) 
- (modified) mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir (+1-1) 
- (modified) mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_f16.mlir (+1-1) 
- (modified) mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reduce_custom.mlir (+2-2) 
- (modified) mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_unary.mlir (+1-1) 
- (modified) mlir/test/Integration/GPU/SYCL/gpu-reluf32-to-spirv.mlir (+1-1) 
- (modified) mlir/test/Rewrite/pdl-bytecode.mlir (+1-1) 
- (modified) mlir/test/Target/LLVMIR/Import/instructions.ll (+2-2) 
- (modified) mlir/test/Target/LLVMIR/llvmir.mlir (+2-2) 
- (modified) mlir/test/Transforms/constant-fold.mlir (+3-3) 
- (modified) mlir/test/lib/Dialect/DLTI/TestDataLayoutQuery.cpp (+1-1) 
- (modified) mlir/test/lib/Dialect/Test/TestOps.td (+1-1) 
- (modified) mlir/test/lib/IR/TestSymbolUses.cpp (+1-1) 
- (modified) mlir/test/mlir-tblgen/trait.mlir (+3-3) 
- (modified) mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp (+1-1) 
- (modified) mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp (+1-1) 
- (modified) mlir/unittests/Dialect/OpenACC/OpenACCOpsTest.cpp (+1-1) 
- (modified) mlir/unittests/IR/AttrTypeReplacerTest.cpp (+7-7) 
- (modified) mlir/unittests/IR/InterfaceAttachmentTest.cpp (+3-3) 
- (modified) mlir/unittests/IR/OpPropertiesTest.cpp (+1-1) 
- (modified) mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp (+9-9) 
- (modified) mlir/utils/emacs/mlir-lsp-client.el (+2-2) 
- (modified) mlir/utils/generate-test-checks.py (+2-2) 
- (modified) mlir/utils/spirv/gen_spirv_dialect.py (+4-4) 
- (modified) mlir/utils/tree-sitter-mlir/dialect/arith.js (+1-1) 
- (modified) mlir/utils/tree-sitter-mlir/queries/highlights.scm (+2-2) 
- (modified) mlir/utils/tree-sitter-mlir/test/corpus/op.txt (+2-2) 
- (modified) mlir/utils/tree-sitter-mlir/test/highlight/controlflow.mlir (+1-1) 
- (modified) mlir/utils/tree-sitter-mlir/test/highlight/func.mlir (+2-2) 
- (modified) mlir/utils/vscode/cpp-grammar.json (+2-2) 


``````````diff
diff --git a/clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp b/clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
index b656917071a6ca..4e09b735b1580c 100644
--- a/clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
+++ b/clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
@@ -25,9 +25,9 @@ class RestrictedIncludesPPCallbacks
 public:
   explicit RestrictedIncludesPPCallbacks(
       RestrictSystemLibcHeadersCheck &Check, const SourceManager &SM,
-      const SmallString<128> CompilerIncudeDir)
+      const SmallString<128> CompilerIncludeDir)
       : portability::RestrictedIncludesPPCallbacks(Check, SM),
-        CompilerIncudeDir(CompilerIncudeDir) {}
+        CompilerIncludeDir(CompilerIncludeDir) {}
 
   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
                           StringRef FileName, bool IsAngled,
@@ -38,7 +38,7 @@ class RestrictedIncludesPPCallbacks
                           SrcMgr::CharacteristicKind FileType) override;
 
 private:
-  const SmallString<128> CompilerIncudeDir;
+  const SmallString<128> CompilerIncludeDir;
 };
 
 } // namespace
@@ -49,7 +49,7 @@ void RestrictedIncludesPPCallbacks::InclusionDirective(
     StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule,
     bool ModuleImported, SrcMgr::CharacteristicKind FileType) {
   // Compiler provided headers are allowed (e.g stddef.h).
-  if (SrcMgr::isSystem(FileType) && SearchPath == CompilerIncudeDir)
+  if (SrcMgr::isSystem(FileType) && SearchPath == CompilerIncludeDir)
     return;
   portability::RestrictedIncludesPPCallbacks::InclusionDirective(
       HashLoc, IncludeTok, FileName, IsAngled, FilenameRange, File, SearchPath,
@@ -58,11 +58,11 @@ void RestrictedIncludesPPCallbacks::InclusionDirective(
 
 void RestrictSystemLibcHeadersCheck::registerPPCallbacks(
     const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
-  SmallString<128> CompilerIncudeDir =
+  SmallString<128> CompilerIncludeDir =
       StringRef(PP->getHeaderSearchInfo().getHeaderSearchOpts().ResourceDir);
-  llvm::sys::path::append(CompilerIncudeDir, "include");
+  llvm::sys::path::append(CompilerIncludeDir, "include");
   PP->addPPCallbacks(std::make_unique<RestrictedIncludesPPCallbacks>(
-      *this, SM, CompilerIncudeDir));
+      *this, SM, CompilerIncludeDir));
 }
 
 } // namespace clang::tidy::llvm_libc
diff --git a/mlir/docs/Canonicalization.md b/mlir/docs/Canonicalization.md
index 03fd174229afe9..6d3eb9e6d2be10 100644
--- a/mlir/docs/Canonicalization.md
+++ b/mlir/docs/Canonicalization.md
@@ -12,7 +12,7 @@ Most compilers have canonicalization passes, and sometimes they have many
 different ones (e.g. instcombine, dag combine, etc in LLVM). Because MLIR is a
 multi-level IR, we can provide a single canonicalization infrastructure and
 reuse it across many different IRs that it represents. This document describes
-the general approach, global canonicalizations performed, and provides sections
+the general approach, global canonicalization performed, and provides sections
 to capture IR-specific rules for reference.
 
 [TOC]
@@ -28,7 +28,7 @@ exhausted. This is for efficiency reasons and to ensure that faulty patterns
 cannot cause infinite looping.
 
 Canonicalization patterns are registered with the operations themselves, which
-allows each dialect to define its own set of operations and canonicalizations
+allows each dialect to define its own set of operations and canonicalization
 together.
 
 Some important things to think about w.r.t. canonicalization patterns:
@@ -107,15 +107,15 @@ These transformations are applied to all levels of IR:
 
 ## Defining Canonicalizations
 
-Two mechanisms are available with which to define canonicalizations;
+Two mechanisms are available with which to define canonicalization;
 general `RewritePattern`s and the `fold` method.
 
 ### Canonicalizing with `RewritePattern`s
 
-This mechanism allows for providing canonicalizations as a set of
+This mechanism allows for providing canonicalization as a set of
 `RewritePattern`s, either imperatively defined in C++ or declaratively as
 [Declarative Rewrite Rules](DeclarativeRewrites.md). The pattern rewrite
-infrastructure allows for expressing many different types of canonicalizations.
+infrastructure allows for expressing many different types of canonicalization.
 These transformations may be as simple as replacing a multiplication with a
 shift, or even replacing a conditional branch with an unconditional one.
 
@@ -156,7 +156,7 @@ defining operation rewrites.
 ### Canonicalizing with the `fold` method
 
 The `fold` mechanism is an intentionally limited, but powerful mechanism that
-allows for applying canonicalizations in many places throughout the compiler.
+allows for applying canonicalization in many places throughout the compiler.
 For example, outside of the canonicalizer pass, `fold` is used within the
 [dialect conversion infrastructure](DialectConversion.md) as a legalization
 mechanism, and can be invoked directly anywhere with an `OpBuilder` via
diff --git a/mlir/docs/Dialects/Linalg/_index.md b/mlir/docs/Dialects/Linalg/_index.md
index fbd1a451dc094e..dc4375dc0d7993 100644
--- a/mlir/docs/Dialects/Linalg/_index.md
+++ b/mlir/docs/Dialects/Linalg/_index.md
@@ -478,7 +478,7 @@ The key implication is that this conversion to deep predication needs to be
 undone once we are done with Linalg transformations. After iterators and
 induction variables are materialized (i.e. after lowering out of
 `linalg.generic` occurred), the overall performance will be greatly influenced
-by the quality of canonicalizations, foldings and *Loop Independent Code Motion*
+by the quality of canonicalization, foldings and *Loop Independent Code Motion*
 (LICM).
 
 In the grander scheme, the reliance on late LICM was deemed a necessary risk.
diff --git a/mlir/docs/PDLL.md b/mlir/docs/PDLL.md
index f5651156a860ca..b4fb0723a4cac7 100644
--- a/mlir/docs/PDLL.md
+++ b/mlir/docs/PDLL.md
@@ -699,7 +699,7 @@ Pattern {
 }
 ```
 
-Below are the set of contexts in which result type inferrence is supported:
+Below are the set of contexts in which result type inference is supported:
 
 ##### Inferred Results of Replacement Operation
 
diff --git a/mlir/docs/Rationale/RationaleLinalgDialect.md b/mlir/docs/Rationale/RationaleLinalgDialect.md
index 7b5137ede3ae74..61137ba7c6b658 100644
--- a/mlir/docs/Rationale/RationaleLinalgDialect.md
+++ b/mlir/docs/Rationale/RationaleLinalgDialect.md
@@ -516,7 +516,7 @@ write, easy to verify and easy to maintain.
 declaratively. In turn this allows using local pattern rewrite rules in MLIR
 (i.e. [DRR](../DeclarativeRewrites.md)).
 - Allow creating customizable passes declaratively by simply selecting rewrite
-rules. This allows mixing transformations, canonicalizations, constant folding
+rules. This allows mixing transformations, canonicalization, constant folding
 and other enabling rewrites in a single pass. The result is a system where pass
 fusion is very simple to obtain and gives hope for solving certain
 [phase ordering issues](https://dl.acm.org/doi/10.1145/201059.201061).
diff --git a/mlir/docs/SPIRVToLLVMDialectConversion.md b/mlir/docs/SPIRVToLLVMDialectConversion.md
index 0aae02cff26be1..4186e5479b5f45 100644
--- a/mlir/docs/SPIRVToLLVMDialectConversion.md
+++ b/mlir/docs/SPIRVToLLVMDialectConversion.md
@@ -335,7 +335,7 @@ SPIR-V Dialect op            | LLVM Dialect op
 `spirv.FOrdEqual`              | `llvm.fcmp "oeq"`
 `spirv.FOrdGreaterThan`        | `llvm.fcmp "ogt"`
 `spirv.FOrdGreaterThanEqual`   | `llvm.fcmp "oge"`
-`spirv.FOrdLessThan`           | `llvm.fcmp "olt"`
+`spirv.FOrdLessThan`           | `llvm.fcmp "old"`
 `spirv.FOrdLessThanEqual`      | `llvm.fcmp "ole"`
 `spirv.FOrdNotEqual`           | `llvm.fcmp "one"`
 `spirv.FUnordEqual`            | `llvm.fcmp "ueq"`
diff --git a/mlir/docs/Tutorials/Toy/Ch-4.md b/mlir/docs/Tutorials/Toy/Ch-4.md
index b753ee7a5332f5..118ac5010d30b7 100644
--- a/mlir/docs/Tutorials/Toy/Ch-4.md
+++ b/mlir/docs/Tutorials/Toy/Ch-4.md
@@ -16,7 +16,7 @@ like Toy to get the information they need.
 
 MLIR provides a set of always available-hooks for certain core transformations,
 as seen in the [previous chapter](Ch-3.md), where we registered some
-canonicalizations via a hook on our operations (`getCanonicalizationPatterns`).
+canonicalization via a hook on our operations (`getCanonicalizationPatterns`).
 However, these types of hooks don't really scale well. Therefore, a more generic
 solution was designed, in the form of [interfaces](../../Interfaces.md), to make
 the MLIR infrastructure as extensible as the representation. Interfaces provide
diff --git a/mlir/docs/doxygen.cfg.in b/mlir/docs/doxygen.cfg.in
index 6c437ea138c219..c2da3c75e44b8a 100644
--- a/mlir/docs/doxygen.cfg.in
+++ b/mlir/docs/doxygen.cfg.in
@@ -931,7 +931,7 @@ REFERENCES_RELATION    = YES
 REFERENCES_LINK_SOURCE = YES
 
 # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
-# source code will show a tooltip with additional information such as prototype,
+# source code will show a tooldip with additional information such as prototype,
 # brief description and links to the definition and documentation. Since this
 # will make the HTML file larger and loading of large files a bit slower, you
 # can opt to disable this feature.
diff --git a/mlir/include/mlir/AsmParser/AsmParser.h b/mlir/include/mlir/AsmParser/AsmParser.h
index 3c1bff1fbc7f14..33daf7ca26f49e 100644
--- a/mlir/include/mlir/AsmParser/AsmParser.h
+++ b/mlir/include/mlir/AsmParser/AsmParser.h
@@ -47,7 +47,7 @@ parseAsmSourceFile(const llvm::SourceMgr &sourceMgr, Block *block,
 /// not, an error diagnostic is emitted to the context and a null value is
 /// returned.
 /// If `numRead` is provided, it is set to the number of consumed characters on
-/// succesful parse. Otherwise, parsing fails if the entire string is not
+/// successful parse. Otherwise, parsing fails if the entire string is not
 /// consumed.
 /// Some internal copying can be skipped if the source string is known to be
 /// null terminated.
@@ -58,7 +58,7 @@ Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context,
 /// This parses a single MLIR type to an MLIR context if it was valid. If not,
 /// an error diagnostic is emitted to the context.
 /// If `numRead` is provided, it is set to the number of consumed characters on
-/// succesful parse. Otherwise, parsing fails if the entire string is not
+/// successful parse. Otherwise, parsing fails if the entire string is not
 /// consumed.
 /// Some internal copying can be skipped if the source string is known to be
 /// null terminated.
diff --git a/mlir/include/mlir/Bytecode/BytecodeImplementation.h b/mlir/include/mlir/Bytecode/BytecodeImplementation.h
index 0ddc531073e232..7379e5d4c8095e 100644
--- a/mlir/include/mlir/Bytecode/BytecodeImplementation.h
+++ b/mlir/include/mlir/Bytecode/BytecodeImplementation.h
@@ -438,7 +438,7 @@ class BytecodeDialectInterface
 
   /// Read a type belonging to this dialect from the given reader. This method
   /// should return null in the case of failure. Optionally, the dialect version
-  /// can be accessed thorugh the reader.
+  /// can be accessed through the reader.
   virtual Type readType(DialectBytecodeReader &reader) const {
     reader.emitError() << "dialect " << getDialect()->getNamespace()
                        << " does not support reading types from bytecode";
diff --git a/mlir/include/mlir/Bytecode/BytecodeReader.h b/mlir/include/mlir/Bytecode/BytecodeReader.h
index 19f74a0750cc90..e68fcc0c3bd18d 100644
--- a/mlir/include/mlir/Bytecode/BytecodeReader.h
+++ b/mlir/include/mlir/Bytecode/BytecodeReader.h
@@ -57,7 +57,7 @@ class BytecodeReader {
   /// The lazyOps call back is invoked for every ops that can be lazy-loaded.
   /// This let the client decide if the op should be materialized immediately or
   /// delayed.
-  /// !! Using this materialize withing an IR walk() can be confusing: make sure
+  /// !! Using this materialize within an IR walk() can be confusing: make sure
   /// to use a PreOrder traversal !!
   LogicalResult materialize(
       Operation *op, llvm::function_ref<bool(Operation *)> lazyOpsCallback =
diff --git a/mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h b/mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h
index c84e4f17c38d88..384ea215ce7451 100644
--- a/mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h
+++ b/mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h
@@ -32,7 +32,7 @@ std::unique_ptr<Pass> createTosaToLinalgNamed(
 /// Populates passes to convert from TOSA to Linalg on buffers. At the end of
 /// the pass, the function will only contain linalg ops or standard ops if the
 /// pipeline succeeds.  The option to disable decompositions is available for
-/// benchmarking performance improvements from the canonicalizations.
+/// benchmarking performance improvements from the canonicalization.
 void addTosaToLinalgPasses(
     OpPassManager &pm, const TosaToLinalgOptions &options,
     const TosaToLinalgNamedOptions &tosaToLinalgNamedOptions =
diff --git a/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h b/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
index 10467e61ad0836..9521a79e65c0ff 100644
--- a/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
+++ b/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
@@ -31,7 +31,7 @@ void populatePrepareVectorToMMAPatterns(RewritePatternSet &patterns,
 /// The rest of the vector operations are left untouched.
 LogicalResult convertVectorToMMAOps(RewriterBase &rewriter, Operation *rootOp);
 
-/// Convert vector ops ops nested under `rootOp` to vector and GPU operaitons
+/// Convert vector ops ops nested under `rootOp` to vector and GPU operations
 /// compatible with the `nvvm.mma.sync` lowering path. This will convert a slice
 /// of operations that can be legally lowered on this path while the rest of
 /// the vector operations are left untouched.
diff --git a/mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h b/mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h
index e62b9c0bc0de58..75ba52b78c0a0a 100644
--- a/mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h
+++ b/mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h
@@ -21,7 +21,7 @@
 namespace mlir {
 namespace tracing {
 
-/// This breakpoing intends to match a FileLineColLocation, that is a tuple of
+/// This breakpoint intends to match a FileLineColLocation, that is a tuple of
 /// file name, line number, and column number. Using -1 for  the column and the
 /// line number will match any column and line number respectively.
 class FileLineColLocBreakpoint
diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td b/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td
index 19a2ade2e95a0e..e771976123772e 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td
+++ b/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td
@@ -41,7 +41,7 @@ def Arith_CmpFPredicateAttr : I64EnumAttr<
       I64EnumAttrCase<"OEQ", 1, "oeq">,
       I64EnumAttrCase<"OGT", 2, "ogt">,
       I64EnumAttrCase<"OGE", 3, "oge">,
-      I64EnumAttrCase<"OLT", 4, "olt">,
+      I64EnumAttrCase<"OLT", 4, "old">,
       I64EnumAttrCase<"OLE", 5, "ole">,
       I64EnumAttrCase<"ONE", 6, "one">,
       I64EnumAttrCase<"ORD", 7, "ord">,
diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
index aceb9d059b95f3..32b6da0afb78e4 100644
--- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
+++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
@@ -646,7 +646,7 @@ OpTy replaceOpWithNewBufferizedOp(RewriterBase &rewriter, Operation *op,
 ///
 /// Note: Canonicalization patterns could clean up layout maps and infer more
 /// precise layout maps after bufferization. However, many possible
-/// canonicalizations are currently not implemented.
+/// canonicalization are currently not implemented.
 BaseMemRefType getMemRefType(Value value, const BufferizationOptions &options,
                              MemRefLayoutAttrInterface layout = {},
                              Attribute memorySpace = nullptr);
diff --git a/mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td b/mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td
index 53d38407608bed..d9466b9c03b504 100644
--- a/mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td
+++ b/mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td
@@ -72,7 +72,7 @@ def DLTI_DataLayoutSpecAttr :
     DataLayoutSpecAttr combineWith(ArrayRef<DataLayoutSpecInterface> specs) const;
 
     /// Returns the endiannes identifier.
-    StringAttr getEndiannessIdentifier(MLIRContext *context) const;
+    StringAttr getEndiannesssIdentifier(MLIRContext *context) const;
 
     /// Returns the alloca memory space identifier.
     StringAttr getAllocaMemorySpaceIdentifier(MLIRContext *context) const;
diff --git a/mlir/include/mlir/Dialect/DLTI/DLTIBase.td b/mlir/include/mlir/Dialect/DLTI/DLTIBase.td
index f84149c43e0fcd..85ffd7620bd7d3 100644
--- a/mlir/include/mlir/Dialect/DLTI/DLTIBase.td
+++ b/mlir/include/mlir/Dialect/DLTI/DLTIBase.td
@@ -41,13 +41,13 @@ def DLTI_Dialect : Dialect {
 
     // Constants used in entries.
     constexpr const static ::llvm::StringLiteral
-    kDataLayoutEndiannessKey = "dlti.endianness";
+    kDataLayoutEndiannesssKey = "dlti.endianness";
 
     constexpr const static ::llvm::StringLiteral
-    kDataLayoutEndiannessBig = "big";
+    kDataLayoutEndiannesssBig = "big";
 
     constexpr const static ::llvm::StringLiteral
-    kDataLayoutEndiannessLittle = "little";
+    kDataLayoutEndiannesssLittle = "little";
 
     constexpr const static ::llvm::StringLiteral
     kDataLayoutAllocaMemorySpaceKey = "dlti.alloca_memory_space";
diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
index 4a43c16903394f..aac58ad5456f1d 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
@@ -544,7 +544,7 @@ def FCmpPredicateFALSE : LLVM_EnumAttrCase<"_false", "_false", "FCMP_FALSE", 0>;
 def FCmpPredicateOEQ   : LLVM_EnumAttrCase<"oeq", "oeq", "FCMP_OEQ", 1>;
 def FCmpPredicateOGT   : LLVM_EnumAttrCase<"ogt", "ogt", "FCMP_OGT", 2>;
 def FCmpPredicateOGE   : LLVM_EnumAttrCase<"oge", "oge", "FCMP_OGE", 3>;
-def FCmpPredicateOLT   : LLVM_EnumAttrCase<"olt", "olt", "FCMP_OLT", 4>;
+def FCmpPredicateOLT   : LLVM_EnumAttrCase<"old", "old", "FCMP_OLT", 4>;
 def FCmpPredicateOLE   : LLVM_EnumAttrCase<"ole", "ole", "FCMP_OLE", 5>;
 def FCmpPredicateONE   : LLVM_EnumAttrCase<"one", "one", "FCMP_ONE", 6>;
 def FCmpPredicateORD   : LLVM_EnumAttrCase<"ord", "ord", "FCMP_ORD", 7>;
diff --git a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
index 0208f854f799ec..9b9d689c743271 100644
--- a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
@@ -1753,7 +1753,7 @@ void populateFuseTensorPadWithProducerLinalgOpPatterns(
     RewritePatternSet &patterns);
 
 /// Patterns to convert from one named op to another. These can be seen as
-/// canonicalizations of named ops into another named op.
+/// canonicalization of named ops into another named op.
 void populateLinalgNamedOpConversionPatterns(RewritePatternSet &patterns);
 
 /// Patterns to fold unit-extent dimensions in operands/results of linalg ops on
diff --git a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
index f1df49ce3eaa36..da4175cd0be74b 100644
--- a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
+++ b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
@@ -213,7 +213,7 @@ void offsetIndices(RewriterBase &b, LinalgOp linalgOp,
 
 /// A struct containing the Linalg producer before and after fusion.
 /// When operating on tensors, `fusedProducer` may feed into a `tensor.cast`
-/// op before the consumer Linalg op, until enough canonicalizations have
+/// op before the consumer Linalg op, until enough canonicalization have
 /// applied.
 struct FusionInfo {
   LinalgOp originalProducer;
diff --git a/mlir/include/ml...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/108355


More information about the cfe-commits mailing list