diff --git a/mlir/include/mlir/Dialect/SPIRV/SPIRVAvailability.td b/mlir/include/mlir/Dialect/SPIRV/SPIRVAvailability.td --- a/mlir/include/mlir/Dialect/SPIRV/SPIRVAvailability.td +++ b/mlir/include/mlir/Dialect/SPIRV/SPIRVAvailability.td @@ -12,7 +12,7 @@ include "mlir/IR/OpBase.td" //===----------------------------------------------------------------------===// -// Op availaility definitions +// Op availability definitions //===----------------------------------------------------------------------===// // The base class for defining op availability dimensions. diff --git a/mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td b/mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td --- a/mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td +++ b/mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td @@ -35,7 +35,7 @@ SPIR-V itself. The SPIR-V dialect aims to be a proper compiler intermediate representation - to faciliate transformations. Ops in this dialect stay at the same semantic + to facilitate transformations. Ops in this dialect stay at the same semantic level as the SPIR-V specification and try to have one-to-one mapping to the corresponding SPIR-V instructions; but they may deviate representationally to utilize MLIR mechanisms if it results in better representation and thus diff --git a/mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h b/mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h --- a/mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h +++ b/mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h @@ -19,7 +19,7 @@ // Forward declare enum classes related to op availability. Their definitions // are in the TableGen'erated SPIRVEnums.h.inc and can be referenced by other -// dclarations in SPIRVEnums.h.inc. +// declarations in SPIRVEnums.h.inc. namespace mlir { namespace spirv { enum class Version : uint32_t; diff --git a/mlir/include/mlir/Dialect/VectorOps/VectorOps.td b/mlir/include/mlir/Dialect/VectorOps/VectorOps.td --- a/mlir/include/mlir/Dialect/VectorOps/VectorOps.td +++ b/mlir/include/mlir/Dialect/VectorOps/VectorOps.td @@ -228,7 +228,7 @@ v2 : we have s_i = t_i for all 1 < i <= k * the mask length equals the leading dimension size of the result - * numbering the input vector indices left to right accross the operands, all + * numbering the input vector indices left to right across the operands, all mask values must be within range, viz. given two k-D operands v1 and v2 above, all mask values are in the range [0,s_1+t_1) diff --git a/mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp b/mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp --- a/mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp +++ b/mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp @@ -57,7 +57,7 @@ steps.resize(extraLoops, one); } - // Add existing bonuds. + // Add existing bounds. lbs.append(bounds.getLbs().begin(), bounds.getLbs().end()); ubs.append(bounds.getUbs().begin(), bounds.getUbs().end()); diff --git a/mlir/lib/Dialect/SPIRV/SPIRVOps.cpp b/mlir/lib/Dialect/SPIRV/SPIRVOps.cpp --- a/mlir/lib/Dialect/SPIRV/SPIRVOps.cpp +++ b/mlir/lib/Dialect/SPIRV/SPIRVOps.cpp @@ -2734,7 +2734,7 @@ type.isa(); } - // Returns a soruce value for the given block. + // Returns a source value for the given block. Value getSrcValue(Block *block) const { auto storeOp = cast(block->front()); return storeOp.value(); diff --git a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp --- a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp +++ b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp @@ -297,13 +297,13 @@ StringRef enumName = enumAttr.getEnumClassName(); std::vector enumerants = enumAttr.getAllCases(); - // Mapping from availability class name to (enumerant, availablity + // Mapping from availability class name to (enumerant, availability // specification) pairs. llvm::StringMap, 1>> classCaseMap; - // Place all availablity specifications to their corresponding - // availablility classes. + // Place all availability specifications to their corresponding + // availability classes. for (const EnumAttrCase &enumerant : enumerants) for (const Availability &avail : getAvailabilities(enumerant.getDef())) classCaseMap[avail.getClass()].push_back({enumerant, avail}); @@ -339,13 +339,13 @@ std::string underlyingType = enumAttr.getUnderlyingType(); std::vector enumerants = enumAttr.getAllCases(); - // Mapping from availability class name to (enumerant, availablity + // Mapping from availability class name to (enumerant, availability // specification) pairs. llvm::StringMap, 1>> classCaseMap; - // Place all availablity specifications to their corresponding - // availablility classes. + // Place all availability specifications to their corresponding + // availability classes. for (const EnumAttrCase &enumerant : enumerants) for (const Availability &avail : getAvailabilities(enumerant.getDef())) classCaseMap[avail.getClass()].push_back({enumerant, avail}); @@ -391,8 +391,8 @@ llvm::StringSet<> handledClasses; - // Place all availablity specifications to their corresponding - // availablility classes. + // Place all availability specifications to their corresponding + // availability classes. for (const EnumAttrCase &enumerant : enumerants) for (const Availability &avail : getAvailabilities(enumerant.getDef())) { StringRef className = avail.getClass(); @@ -1165,8 +1165,8 @@ std::vector opAvailabilities = getAvailabilities(srcOp.getDef()); - // First collect all availablity classes this op should implement. - // All availablity instances keep information for the generated interface and + // First collect all availability classes this op should implement. + // All availability instances keep information for the generated interface and // the instance's specific requirement. Here we remember a random instance so // we can get the information regarding the generated interface. llvm::StringMap availClasses; @@ -1211,7 +1211,7 @@ if (!enumAttr) continue; - // (enumerant, availablity specification) pairs for this availability + // (enumerant, availability specification) pairs for this availability // class. SmallVector, 1> caseSpecs; @@ -1222,7 +1222,7 @@ if (availClassName == caseAvail.getClass()) caseSpecs.push_back({enumerant, caseAvail}); - // If this attribute kind does not have any availablity spec from any of + // If this attribute kind does not have any availability spec from any of // its cases, no more work to do. if (caseSpecs.empty()) continue; diff --git a/mlir/utils/spirv/define_inst.sh b/mlir/utils/spirv/define_inst.sh --- a/mlir/utils/spirv/define_inst.sh +++ b/mlir/utils/spirv/define_inst.sh @@ -15,7 +15,7 @@ # If is missing, this script updates existing ones in . # For example: -# ./define_inst.sh SPIRVArithmeticOps.td ArithmeticBianryOp OpIAdd +# ./define_inst.sh SPIRVArithmeticOps.td ArithmeticBinaryOp OpIAdd # ./define_inst.sh SPIRVLogicalOps.td LogicalOp OpFOrdEqual set -e