[mlir] NFC: Fix trivial typos
authorKazuaki Ishizaki <ishizaki@jp.ibm.com>
Thu, 16 Jan 2020 22:58:04 +0000 (23:58 +0100)
committerAlex Zinenko <zinenko@google.com>
Thu, 16 Jan 2020 22:58:58 +0000 (23:58 +0100)
Summary: Fix trivial typos

Differential Revision: https://reviews.llvm.org/D72672

mlir/include/mlir/Dialect/SPIRV/SPIRVAvailability.td
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h
mlir/include/mlir/Dialect/VectorOps/VectorOps.td
mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
mlir/utils/spirv/define_inst.sh

index 8ec74ac..034eaa4 100644 (file)
@@ -12,7 +12,7 @@
 include "mlir/IR/OpBase.td"
 
 //===----------------------------------------------------------------------===//
-// Op availaility definitions
+// Op availability definitions
 //===----------------------------------------------------------------------===//
 
 // The base class for defining op availability dimensions.
index 3c7aab4..110f122 100644 (file)
@@ -35,7 +35,7 @@ def SPV_Dialect : Dialect {
     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
index 548ab83..19cd9ee 100644 (file)
@@ -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;
index 20b008a..02d0b39 100644 (file)
@@ -228,7 +228,7 @@ def Vector_ShuffleOp :
               v2 : <t_1 x t_2 x .. x t_k x type>
       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)
 
index f01a430..c8fefd7 100644 (file)
@@ -57,7 +57,7 @@ static void insertCopyLoops(OpBuilder &builder, Location loc,
     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());
 
index a6f5d35..b48f790 100644 (file)
@@ -2734,7 +2734,7 @@ private:
            type.isa<VectorType>();
   }
 
-  // Returns a soruce value for the given block.
+  // Returns a source value for the given block.
   Value getSrcValue(Block *block) const {
     auto storeOp = cast<spirv::StoreOp>(block->front());
     return storeOp.value();
index 3f972ae..caede03 100644 (file)
@@ -297,13 +297,13 @@ static void emitAvailabilityQueryForIntEnum(const Record &enumDef,
   StringRef enumName = enumAttr.getEnumClassName();
   std::vector<EnumAttrCase> enumerants = enumAttr.getAllCases();
 
-  // Mapping from availability class name to (enumerant, availablity
+  // Mapping from availability class name to (enumerant, availability
   // specification) pairs.
   llvm::StringMap<llvm::SmallVector<std::pair<EnumAttrCase, Availability>, 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 @@ static void emitAvailabilityQueryForBitEnum(const Record &enumDef,
   std::string underlyingType = enumAttr.getUnderlyingType();
   std::vector<EnumAttrCase> enumerants = enumAttr.getAllCases();
 
-  // Mapping from availability class name to (enumerant, availablity
+  // Mapping from availability class name to (enumerant, availability
   // specification) pairs.
   llvm::StringMap<llvm::SmallVector<std::pair<EnumAttrCase, Availability>, 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 @@ static void emitEnumDecl(const Record &enumDef, raw_ostream &os) {
 
   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 @@ static void emitAvailabilityImpl(const Operator &srcOp, raw_ostream &os) {
   std::vector<Availability> 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<Availability> availClasses;
@@ -1211,7 +1211,7 @@ static void emitAvailabilityImpl(const Operator &srcOp, raw_ostream &os) {
       if (!enumAttr)
         continue;
 
-      // (enumerant, availablity specification) pairs for this availability
+      // (enumerant, availability specification) pairs for this availability
       // class.
       SmallVector<std::pair<EnumAttrCase, Availability>, 1> caseSpecs;
 
@@ -1222,7 +1222,7 @@ static void emitAvailabilityImpl(const Operator &srcOp, raw_ostream &os) {
           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;
index db58813..1b57e58 100755 (executable)
@@ -15,7 +15,7 @@
 # If <opname> is missing, this script updates existing ones in <filename>.
 
 # 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