Skip to content

Commit 0107df1

Browse files
committed
Fix more typos
1 parent 8ca09f1 commit 0107df1

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

mlir/include/mlir/Analysis/Presburger/PWMAFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class MultiAffineFunction {
119119
/// The space of this function. The domain variables are considered as the
120120
/// input variables of the function. The range variables are considered as
121121
/// the outputs. The symbols parametrize the function and locals are used to
122-
/// represent divisions. Each local variable has a corressponding division
122+
/// represent divisions. Each local variable has a corresponding division
123123
/// representation stored in `divs`.
124124
PresburgerSpace space;
125125

mlir/include/mlir/TableGen/Class.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class MethodSignature {
143143

144144
/// Determine whether a method with this signature makes a method with
145145
/// `other` signature redundant. This occurs if the signatures have the same
146-
/// name and this signature's parameteres subsume the other's.
146+
/// name and this signature's parameters subsume the other's.
147147
///
148148
/// A method that makes another method redundant with a different return type
149149
/// can replace the other, the assumption being that the subsuming method
@@ -325,7 +325,7 @@ class Method : public ClassDeclarationBase<ClassDeclaration::Method> {
325325
};
326326

327327
/// Create a method with a return type, a name, method properties, and a some
328-
/// parameters. The parameteres may be passed as a list or as a variadic pack.
328+
/// parameters. The parameters may be passed as a list or as a variadic pack.
329329
template <typename RetTypeT, typename NameT, typename... Args>
330330
Method(RetTypeT &&retType, NameT &&name, Properties properties,
331331
Args &&...args)

mlir/include/mlir/TableGen/Constraint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ class Constraint {
5858
// not provided, returns an empty string.
5959
StringRef getDescription() const;
6060

61-
/// Returns the name of the TablGen def of this constraint. In some cases
61+
/// Returns the name of the TableGen def of this constraint. In some cases
6262
/// where the current def is anonymous, the name of the base def is used (e.g.
6363
/// `std::optional<>`/`Variadic<>` type constraints).
6464
StringRef getDefName() const;
6565

66-
/// Returns a unique name for the TablGen def of this constraint. This is
66+
/// Returns a unique name for the TableGen def of this constraint. This is
6767
/// generally just the name of the def, but in some cases where the current
6868
/// def is anonymous, the name of the base def is attached (to provide more
6969
/// context on the def).

mlir/lib/Analysis/Presburger/PWMAFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static void addDivisionConstraints(IntegerRelation &rel,
416416
}
417417

418418
IntegerRelation MultiAffineFunction::getAsRelation() const {
419-
// Create a relation corressponding to the input space plus the divisions
419+
// Create a relation corresponding to the input space plus the divisions
420420
// used in outputs.
421421
IntegerRelation result(PresburgerSpace::getRelationSpace(
422422
space.getNumDomainVars(), 0, space.getNumSymbolVars(),

mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,10 +1057,10 @@ class CmpFOpNanNonePattern final : public OpConversionPattern<arith::CmpFOp> {
10571057
Value replace;
10581058
if (bitEnumContainsAll(op.getFastmath(), arith::FastMathFlags::nnan)) {
10591059
if (op.getPredicate() == arith::CmpFPredicate::ORD) {
1060-
// Ordered comparsion checks if neither operand is NaN.
1060+
// Ordered comparison checks if neither operand is NaN.
10611061
replace = spirv::ConstantOp::getOne(op.getType(), loc, rewriter);
10621062
} else {
1063-
// Unordered comparsion checks if either operand is NaN.
1063+
// Unordered comparison checks if either operand is NaN.
10641064
replace = spirv::ConstantOp::getZero(op.getType(), loc, rewriter);
10651065
}
10661066
} else {

mlir/lib/Dialect/SparseTensor/Transforms/Utils/LoopEmitter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class LoopEmitter {
367367

368368
void initSubSectIterator(OpBuilder &builder, Location loc);
369369

370-
/// Get the reduced number of contraints on tensor[tid][lvl].
370+
/// Get the reduced number of constraints on tensor[tid][lvl].
371371
unsigned redDepOnLevel(TensorId tid, Level lvl) const {
372372
return levelReducedDep[tid][lvl];
373373
};

mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ TEST(IntegerPolyhedronTest, FindSampleTest) {
317317
checkPermutationsSample(
318318
true /* not empty */, 5,
319319
{
320-
// Tetrahedron contraints:
320+
// Tetrahedron constraints:
321321
{0, 1, 0, 0, 0, 0}, // y >= 0
322322
{0, -1, 1, 0, 0, 0}, // z >= y
323323
// -300000x + 299998y + 100000 + z <= 0.
@@ -338,7 +338,7 @@ TEST(IntegerPolyhedronTest, FindSampleTest) {
338338
checkPermutationsSample(
339339
false /* empty */, 5,
340340
{
341-
// Tetrahedron contraints:
341+
// Tetrahedron constraints:
342342
{0, 1, 0, 0, 0, 0}, // y >= 0
343343
{0, -1, 1, 0, 0, 0}, // z >= y
344344
// -300000x + 299998y + 100000 + z <= 0.
@@ -360,7 +360,7 @@ TEST(IntegerPolyhedronTest, FindSampleTest) {
360360
checkPermutationsSample(
361361
false /* empty */, 5,
362362
{
363-
// Tetrahedron contraints:
363+
// Tetrahedron constraints:
364364
{0, 1, 0, 0, 0, 0, 0}, // y >= 0
365365
{0, -1, 1, 0, 0, 0, 0}, // z >= y
366366
// -300000x + 299998y + 100000 + z <= 0.
@@ -386,7 +386,7 @@ TEST(IntegerPolyhedronTest, FindSampleTest) {
386386
// Since the tetrahedron is empty, the Cartesian product is too.
387387
checkPermutationsSample(false /* empty */, 5,
388388
{
389-
// Tetrahedron contraints:
389+
// Tetrahedron constraints:
390390
{0, 1, 0, 0, 0, 0},
391391
{0, -300, 299, 0, 0, 0},
392392
{300 * 299, -89400, -299, 0, 0, -100 * 299},
@@ -404,7 +404,7 @@ TEST(IntegerPolyhedronTest, FindSampleTest) {
404404
// {(p, q) : 1/3 <= p <= 2/3}.
405405
checkPermutationsSample(false /* empty */, 5,
406406
{
407-
// Tetrahedron contraints:
407+
// Tetrahedron constraints:
408408
{0, 1, 0, 0, 0, 0},
409409
{0, -300, 299, 0, 0, 0},
410410
{300 * 299, -89400, -299, 0, 0, -100 * 299},
@@ -622,7 +622,7 @@ TEST(IntegerPolyhedronTest, addConstantLowerBound) {
622622

623623
/// Check if the expected division representation of local variables matches the
624624
/// computed representation. The expected division representation is given as
625-
/// a vector of expressions set in `expectedDividends` and the corressponding
625+
/// a vector of expressions set in `expectedDividends` and the corresponding
626626
/// denominator in `expectedDenominators`. The `denominators` and `dividends`
627627
/// obtained through `getLocalRepr` function is verified against the
628628
/// `expectedDenominators` and `expectedDividends` respectively.

mlir/unittests/Dialect/SparseTensor/MergerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ TEST_P(MergerTest3T1L, vector_cmp) {
791791
loopsToBits({{l0, t1}}));
792792
}
793793

794-
/// Vector element-wise comparsion (disjunction) of 2 vectors, i.e.;
794+
/// Vector element-wise comparison (disjunction) of 2 vectors, i.e.;
795795
/// a(i) = b(i) cmp c(i)
796796
/// which should form the 3 lattice points
797797
/// {

0 commit comments

Comments
 (0)