Skip to content

Commit 8ca09f1

Browse files
committed
[NFC][MLIR] Fix some typos
1 parent 59731ee commit 8ca09f1

File tree

126 files changed

+266
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+266
-266
lines changed

clang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class RestrictedIncludesPPCallbacks
2525
public:
2626
explicit RestrictedIncludesPPCallbacks(
2727
RestrictSystemLibcHeadersCheck &Check, const SourceManager &SM,
28-
const SmallString<128> CompilerIncudeDir)
28+
const SmallString<128> CompilerIncludeDir)
2929
: portability::RestrictedIncludesPPCallbacks(Check, SM),
30-
CompilerIncudeDir(CompilerIncudeDir) {}
30+
CompilerIncludeDir(CompilerIncludeDir) {}
3131

3232
void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
3333
StringRef FileName, bool IsAngled,
@@ -38,7 +38,7 @@ class RestrictedIncludesPPCallbacks
3838
SrcMgr::CharacteristicKind FileType) override;
3939

4040
private:
41-
const SmallString<128> CompilerIncudeDir;
41+
const SmallString<128> CompilerIncludeDir;
4242
};
4343

4444
} // namespace
@@ -49,7 +49,7 @@ void RestrictedIncludesPPCallbacks::InclusionDirective(
4949
StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule,
5050
bool ModuleImported, SrcMgr::CharacteristicKind FileType) {
5151
// Compiler provided headers are allowed (e.g stddef.h).
52-
if (SrcMgr::isSystem(FileType) && SearchPath == CompilerIncudeDir)
52+
if (SrcMgr::isSystem(FileType) && SearchPath == CompilerIncludeDir)
5353
return;
5454
portability::RestrictedIncludesPPCallbacks::InclusionDirective(
5555
HashLoc, IncludeTok, FileName, IsAngled, FilenameRange, File, SearchPath,
@@ -58,11 +58,11 @@ void RestrictedIncludesPPCallbacks::InclusionDirective(
5858

5959
void RestrictSystemLibcHeadersCheck::registerPPCallbacks(
6060
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
61-
SmallString<128> CompilerIncudeDir =
61+
SmallString<128> CompilerIncludeDir =
6262
StringRef(PP->getHeaderSearchInfo().getHeaderSearchOpts().ResourceDir);
63-
llvm::sys::path::append(CompilerIncudeDir, "include");
63+
llvm::sys::path::append(CompilerIncludeDir, "include");
6464
PP->addPPCallbacks(std::make_unique<RestrictedIncludesPPCallbacks>(
65-
*this, SM, CompilerIncudeDir));
65+
*this, SM, CompilerIncludeDir));
6666
}
6767

6868
} // namespace clang::tidy::llvm_libc

mlir/docs/Canonicalization.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Most compilers have canonicalization passes, and sometimes they have many
1212
different ones (e.g. instcombine, dag combine, etc in LLVM). Because MLIR is a
1313
multi-level IR, we can provide a single canonicalization infrastructure and
1414
reuse it across many different IRs that it represents. This document describes
15-
the general approach, global canonicalizations performed, and provides sections
15+
the general approach, global canonicalization performed, and provides sections
1616
to capture IR-specific rules for reference.
1717

1818
[TOC]
@@ -28,7 +28,7 @@ exhausted. This is for efficiency reasons and to ensure that faulty patterns
2828
cannot cause infinite looping.
2929

3030
Canonicalization patterns are registered with the operations themselves, which
31-
allows each dialect to define its own set of operations and canonicalizations
31+
allows each dialect to define its own set of operations and canonicalization
3232
together.
3333

3434
Some important things to think about w.r.t. canonicalization patterns:
@@ -107,15 +107,15 @@ These transformations are applied to all levels of IR:
107107

108108
## Defining Canonicalizations
109109

110-
Two mechanisms are available with which to define canonicalizations;
110+
Two mechanisms are available with which to define canonicalization;
111111
general `RewritePattern`s and the `fold` method.
112112

113113
### Canonicalizing with `RewritePattern`s
114114

115-
This mechanism allows for providing canonicalizations as a set of
115+
This mechanism allows for providing canonicalization as a set of
116116
`RewritePattern`s, either imperatively defined in C++ or declaratively as
117117
[Declarative Rewrite Rules](DeclarativeRewrites.md). The pattern rewrite
118-
infrastructure allows for expressing many different types of canonicalizations.
118+
infrastructure allows for expressing many different types of canonicalization.
119119
These transformations may be as simple as replacing a multiplication with a
120120
shift, or even replacing a conditional branch with an unconditional one.
121121

@@ -156,7 +156,7 @@ defining operation rewrites.
156156
### Canonicalizing with the `fold` method
157157
158158
The `fold` mechanism is an intentionally limited, but powerful mechanism that
159-
allows for applying canonicalizations in many places throughout the compiler.
159+
allows for applying canonicalization in many places throughout the compiler.
160160
For example, outside of the canonicalizer pass, `fold` is used within the
161161
[dialect conversion infrastructure](DialectConversion.md) as a legalization
162162
mechanism, and can be invoked directly anywhere with an `OpBuilder` via

mlir/docs/Dialects/Linalg/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ The key implication is that this conversion to deep predication needs to be
478478
undone once we are done with Linalg transformations. After iterators and
479479
induction variables are materialized (i.e. after lowering out of
480480
`linalg.generic` occurred), the overall performance will be greatly influenced
481-
by the quality of canonicalizations, foldings and *Loop Independent Code Motion*
481+
by the quality of canonicalization, foldings and *Loop Independent Code Motion*
482482
(LICM).
483483

484484
In the grander scheme, the reliance on late LICM was deemed a necessary risk.

mlir/docs/PDLL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ Pattern {
699699
}
700700
```
701701

702-
Below are the set of contexts in which result type inferrence is supported:
702+
Below are the set of contexts in which result type inference is supported:
703703

704704
##### Inferred Results of Replacement Operation
705705

mlir/docs/Rationale/RationaleLinalgDialect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ write, easy to verify and easy to maintain.
516516
declaratively. In turn this allows using local pattern rewrite rules in MLIR
517517
(i.e. [DRR](../DeclarativeRewrites.md)).
518518
- Allow creating customizable passes declaratively by simply selecting rewrite
519-
rules. This allows mixing transformations, canonicalizations, constant folding
519+
rules. This allows mixing transformations, canonicalization, constant folding
520520
and other enabling rewrites in a single pass. The result is a system where pass
521521
fusion is very simple to obtain and gives hope for solving certain
522522
[phase ordering issues](https://dl.acm.org/doi/10.1145/201059.201061).

mlir/docs/Tutorials/Toy/Ch-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ like Toy to get the information they need.
1616

1717
MLIR provides a set of always available-hooks for certain core transformations,
1818
as seen in the [previous chapter](Ch-3.md), where we registered some
19-
canonicalizations via a hook on our operations (`getCanonicalizationPatterns`).
19+
canonicalization via a hook on our operations (`getCanonicalizationPatterns`).
2020
However, these types of hooks don't really scale well. Therefore, a more generic
2121
solution was designed, in the form of [interfaces](../../Interfaces.md), to make
2222
the MLIR infrastructure as extensible as the representation. Interfaces provide

mlir/docs/doxygen.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ REFERENCES_RELATION = YES
931931
REFERENCES_LINK_SOURCE = YES
932932

933933
# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
934-
# source code will show a tooltip with additional information such as prototype,
934+
# source code will show a tooldip with additional information such as prototype,
935935
# brief description and links to the definition and documentation. Since this
936936
# will make the HTML file larger and loading of large files a bit slower, you
937937
# can opt to disable this feature.

mlir/include/mlir/AsmParser/AsmParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ parseAsmSourceFile(const llvm::SourceMgr &sourceMgr, Block *block,
4747
/// not, an error diagnostic is emitted to the context and a null value is
4848
/// returned.
4949
/// If `numRead` is provided, it is set to the number of consumed characters on
50-
/// succesful parse. Otherwise, parsing fails if the entire string is not
50+
/// successful parse. Otherwise, parsing fails if the entire string is not
5151
/// consumed.
5252
/// Some internal copying can be skipped if the source string is known to be
5353
/// null terminated.
@@ -58,7 +58,7 @@ Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context,
5858
/// This parses a single MLIR type to an MLIR context if it was valid. If not,
5959
/// an error diagnostic is emitted to the context.
6060
/// If `numRead` is provided, it is set to the number of consumed characters on
61-
/// succesful parse. Otherwise, parsing fails if the entire string is not
61+
/// successful parse. Otherwise, parsing fails if the entire string is not
6262
/// consumed.
6363
/// Some internal copying can be skipped if the source string is known to be
6464
/// null terminated.

mlir/include/mlir/Bytecode/BytecodeImplementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class BytecodeDialectInterface
438438

439439
/// Read a type belonging to this dialect from the given reader. This method
440440
/// should return null in the case of failure. Optionally, the dialect version
441-
/// can be accessed thorugh the reader.
441+
/// can be accessed through the reader.
442442
virtual Type readType(DialectBytecodeReader &reader) const {
443443
reader.emitError() << "dialect " << getDialect()->getNamespace()
444444
<< " does not support reading types from bytecode";

mlir/include/mlir/Bytecode/BytecodeReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class BytecodeReader {
5757
/// The lazyOps call back is invoked for every ops that can be lazy-loaded.
5858
/// This let the client decide if the op should be materialized immediately or
5959
/// delayed.
60-
/// !! Using this materialize withing an IR walk() can be confusing: make sure
60+
/// !! Using this materialize within an IR walk() can be confusing: make sure
6161
/// to use a PreOrder traversal !!
6262
LogicalResult materialize(
6363
Operation *op, llvm::function_ref<bool(Operation *)> lazyOpsCallback =

mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ std::unique_ptr<Pass> createTosaToLinalgNamed(
3232
/// Populates passes to convert from TOSA to Linalg on buffers. At the end of
3333
/// the pass, the function will only contain linalg ops or standard ops if the
3434
/// pipeline succeeds. The option to disable decompositions is available for
35-
/// benchmarking performance improvements from the canonicalizations.
35+
/// benchmarking performance improvements from the canonicalization.
3636
void addTosaToLinalgPasses(
3737
OpPassManager &pm, const TosaToLinalgOptions &options,
3838
const TosaToLinalgNamedOptions &tosaToLinalgNamedOptions =

mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void populatePrepareVectorToMMAPatterns(RewritePatternSet &patterns,
3131
/// The rest of the vector operations are left untouched.
3232
LogicalResult convertVectorToMMAOps(RewriterBase &rewriter, Operation *rootOp);
3333

34-
/// Convert vector ops ops nested under `rootOp` to vector and GPU operaitons
34+
/// Convert vector ops ops nested under `rootOp` to vector and GPU operations
3535
/// compatible with the `nvvm.mma.sync` lowering path. This will convert a slice
3636
/// of operations that can be legally lowered on this path while the rest of
3737
/// the vector operations are left untouched.

mlir/include/mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace mlir {
2222
namespace tracing {
2323

24-
/// This breakpoing intends to match a FileLineColLocation, that is a tuple of
24+
/// This breakpoint intends to match a FileLineColLocation, that is a tuple of
2525
/// file name, line number, and column number. Using -1 for the column and the
2626
/// line number will match any column and line number respectively.
2727
class FileLineColLocBreakpoint

mlir/include/mlir/Dialect/Arith/IR/ArithBase.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def Arith_CmpFPredicateAttr : I64EnumAttr<
4141
I64EnumAttrCase<"OEQ", 1, "oeq">,
4242
I64EnumAttrCase<"OGT", 2, "ogt">,
4343
I64EnumAttrCase<"OGE", 3, "oge">,
44-
I64EnumAttrCase<"OLT", 4, "olt">,
44+
I64EnumAttrCase<"OLT", 4, "old">,
4545
I64EnumAttrCase<"OLE", 5, "ole">,
4646
I64EnumAttrCase<"ONE", 6, "one">,
4747
I64EnumAttrCase<"ORD", 7, "ord">,

mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ OpTy replaceOpWithNewBufferizedOp(RewriterBase &rewriter, Operation *op,
646646
///
647647
/// Note: Canonicalization patterns could clean up layout maps and infer more
648648
/// precise layout maps after bufferization. However, many possible
649-
/// canonicalizations are currently not implemented.
649+
/// canonicalization are currently not implemented.
650650
BaseMemRefType getMemRefType(Value value, const BufferizationOptions &options,
651651
MemRefLayoutAttrInterface layout = {},
652652
Attribute memorySpace = nullptr);

mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def DLTI_DataLayoutSpecAttr :
7272
DataLayoutSpecAttr combineWith(ArrayRef<DataLayoutSpecInterface> specs) const;
7373

7474
/// Returns the endiannes identifier.
75-
StringAttr getEndiannessIdentifier(MLIRContext *context) const;
75+
StringAttr getEndiannesssIdentifier(MLIRContext *context) const;
7676

7777
/// Returns the alloca memory space identifier.
7878
StringAttr getAllocaMemorySpaceIdentifier(MLIRContext *context) const;

mlir/include/mlir/Dialect/DLTI/DLTIBase.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ def DLTI_Dialect : Dialect {
4141

4242
// Constants used in entries.
4343
constexpr const static ::llvm::StringLiteral
44-
kDataLayoutEndiannessKey = "dlti.endianness";
44+
kDataLayoutEndiannesssKey = "dlti.endianness";
4545

4646
constexpr const static ::llvm::StringLiteral
47-
kDataLayoutEndiannessBig = "big";
47+
kDataLayoutEndiannesssBig = "big";
4848

4949
constexpr const static ::llvm::StringLiteral
50-
kDataLayoutEndiannessLittle = "little";
50+
kDataLayoutEndiannesssLittle = "little";
5151

5252
constexpr const static ::llvm::StringLiteral
5353
kDataLayoutAllocaMemorySpaceKey = "dlti.alloca_memory_space";

mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def FCmpPredicateFALSE : LLVM_EnumAttrCase<"_false", "_false", "FCMP_FALSE", 0>;
544544
def FCmpPredicateOEQ : LLVM_EnumAttrCase<"oeq", "oeq", "FCMP_OEQ", 1>;
545545
def FCmpPredicateOGT : LLVM_EnumAttrCase<"ogt", "ogt", "FCMP_OGT", 2>;
546546
def FCmpPredicateOGE : LLVM_EnumAttrCase<"oge", "oge", "FCMP_OGE", 3>;
547-
def FCmpPredicateOLT : LLVM_EnumAttrCase<"olt", "olt", "FCMP_OLT", 4>;
547+
def FCmpPredicateOLT : LLVM_EnumAttrCase<"old", "old", "FCMP_OLT", 4>;
548548
def FCmpPredicateOLE : LLVM_EnumAttrCase<"ole", "ole", "FCMP_OLE", 5>;
549549
def FCmpPredicateONE : LLVM_EnumAttrCase<"one", "one", "FCMP_ONE", 6>;
550550
def FCmpPredicateORD : LLVM_EnumAttrCase<"ord", "ord", "FCMP_ORD", 7>;

mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ void populateFuseTensorPadWithProducerLinalgOpPatterns(
17531753
RewritePatternSet &patterns);
17541754

17551755
/// Patterns to convert from one named op to another. These can be seen as
1756-
/// canonicalizations of named ops into another named op.
1756+
/// canonicalization of named ops into another named op.
17571757
void populateLinalgNamedOpConversionPatterns(RewritePatternSet &patterns);
17581758

17591759
/// Patterns to fold unit-extent dimensions in operands/results of linalg ops on

mlir/include/mlir/Dialect/Linalg/Utils/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void offsetIndices(RewriterBase &b, LinalgOp linalgOp,
213213

214214
/// A struct containing the Linalg producer before and after fusion.
215215
/// When operating on tensors, `fusedProducer` may feed into a `tensor.cast`
216-
/// op before the consumer Linalg op, until enough canonicalizations have
216+
/// op before the consumer Linalg op, until enough canonicalization have
217217
/// applied.
218218
struct FusionInfo {
219219
LinalgOp originalProducer;

mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def MemRef_ExtractStridedMetadataOp : MemRef_Op<"extract_strided_metadata", [
937937
This makes lowering more progressive and brings the following benefits:
938938
- not all users of MLIR want to lower to LLVM and the information to e.g.
939939
lower to library calls---like libxsmm---or to SPIR-V was not available.
940-
- foldings and canonicalizations can happen at a higher level in MLIR:
940+
- foldings and canonicalization can happen at a higher level in MLIR:
941941
before this op existed, lowering to LLVM would create large amounts of
942942
LLVMIR. Even when LLVM does a good job at folding the low-level IR from
943943
a performance perspective, it is unnecessarily opaque and inefficient to

mlir/include/mlir/Dialect/SCF/Transforms/Transforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void naivelyFuseParallelOps(Region &region,
5656
/// `partialIteration`). This transformation is called "loop peeling".
5757
///
5858
/// This transformation is beneficial for a wide range of transformations such
59-
/// as vectorization or loop tiling: It enables additional canonicalizations
59+
/// as vectorization or loop tiling: It enables additional canonicalization
6060
/// inside the peeled loop body such as rewriting masked loads into unmaked
6161
/// loads.
6262
///

mlir/include/mlir/Dialect/SCF/Utils/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SmallVector<scf::ForOp> replaceLoopNestWithNewYields(
5757
/// Assumes the FuncOp result types is the type of the yielded operands of the
5858
/// single block. This constraint makes it easy to determine the result.
5959
/// This method also clones the `arith::ConstantIndexOp` at the start of
60-
/// `outlinedFuncBody` to alloc simple canonicalizations.
60+
/// `outlinedFuncBody` to alloc simple canonicalization.
6161
/// Creates a new FuncOp and thus cannot be used in a FuncOp pass.
6262
/// The client is responsible for providing a unique `funcName` that will not
6363
/// collide with another FuncOp name. If `callOp` is provided, it will be set

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ def SparseTensor_SelectOp : SparseTensor_Op<"select", [Pure, SameOperandsAndResu
12881288
%col = linalg.index 1 : index
12891289
%result = sparse_tensor.select %a : f64 {
12901290
^bb0(%arg0: f64):
1291-
%keep = arith.cmpf "olt", %col, %row : f64
1291+
%keep = arith.cmpf "old", %col, %row : f64
12921292
sparse_tensor.yield %keep : i1
12931293
}
12941294
linalg.yield %result : f64

mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def ApplyMergeConsecutiveInsertExtractSlicePatternsOp : Op<Transform_Dialect,
9292
[DeclareOpInterfaceMethods<PatternDescriptorOpInterface>]> {
9393
let description = [{
9494
Indicates that consecutive tensor.extract_slice/tensor.insert_slice ops
95-
should be merged into a single op. These patterns are not canonicalizations
95+
should be merged into a single op. These patterns are not canonicalization
9696
because the bufferization is sensitive to IR structure.
9797
}];
9898

mlir/include/mlir/IR/AttrTypeBase.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class AttrOrTypeDef<string valueType, string name, list<Trait> defTraits,
164164
// Name of storage class to generate or use.
165165
string storageClass = name # valueType # "Storage";
166166

167-
// Namespace (withing dialect c++ namespace) in which the storage class
167+
// Namespace (within dialect c++ namespace) in which the storage class
168168
// resides.
169169
string storageNamespace = "detail";
170170

mlir/include/mlir/IR/OpImplementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ class AsmParser {
796796
/// least one element will be parsed.
797797
///
798798
/// contextMessage is an optional message appended to "expected '('" sorts of
799-
/// diagnostics when parsing the delimeters.
799+
/// diagnostics when parsing the delimiters.
800800
virtual ParseResult
801801
parseCommaSeparatedList(Delimiter delimiter,
802802
function_ref<ParseResult()> parseElementFn,

mlir/include/mlir/IR/OperationSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class OperationName {
257257
/// success. The caller will remove the operation and use those results
258258
/// instead.
259259
///
260-
/// This allows expression of some simple in-place canonicalizations (e.g.
260+
/// This allows expression of some simple in-place canonicalization (e.g.
261261
/// "x+0 -> x", "min(x,y,x,z) -> min(x,y,z)", "x+y-x -> y", etc), as well as
262262
/// generalized constant folding.
263263
LogicalResult foldHook(Operation *op, ArrayRef<Attribute> operands,

mlir/include/mlir/IR/Threading.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file defines various utilies for multithreaded processing within MLIR.
9+
// This file defines various utilities for multithreaded processing within MLIR.
1010
// These utilities automatically handle many of the necessary threading
1111
// conditions, such as properly ordering diagnostics, observing if threading is
1212
// disabled, etc. These utilities should be used over other threading utilities

mlir/include/mlir/Interfaces/DataLayoutInterfaces.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ getDefaultIndexBitwidth(Type type, const DataLayout &dataLayout,
7474

7575
/// Default handler for endianness request. Dispatches to the
7676
/// DataLayoutInterface if specified, otherwise returns the default.
77-
Attribute getDefaultEndianness(DataLayoutEntryInterface entry);
77+
Attribute getDefaultEndiannesss(DataLayoutEntryInterface entry);
7878

7979
/// Default handler for alloca memory space request. Dispatches to the
8080
/// DataLayoutInterface if specified, otherwise returns the default.
@@ -227,7 +227,7 @@ class DataLayout {
227227
std::optional<uint64_t> getTypeIndexBitwidth(Type t) const;
228228

229229
/// Returns the specified endianness.
230-
Attribute getEndianness() const;
230+
Attribute getEndiannesss() const;
231231

232232
/// Returns the memory space used for AllocaOps.
233233
Attribute getAllocaMemorySpace() const;

0 commit comments

Comments
 (0)