[flang][NFC] Fix FIRTypes.td
authorPeixin Qiao <qiaopeixin@huawei.com>
Wed, 12 Oct 2022 12:25:34 +0000 (20:25 +0800)
committerPeixin Qiao <qiaopeixin@huawei.com>
Wed, 12 Oct 2022 12:25:34 +0000 (20:25 +0800)
Fix two typos and remove the incorrectly added `extraClassDeclaration` in
`FIRTypes.td`.

Reviewed By: clementval

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

flang/include/flang/Optimizer/Dialect/FIRTypes.td

index 9d7c76e..f179071 100644 (file)
@@ -142,7 +142,7 @@ def fir_ClassType : FIR_Type<"Class", "class", [], "BaseBoxType"> {
   let summary = "Class type";
 
   let description = [{
-    Class type is used to model the Fortran CLASS instrinsic type. A class type
+    Class type is used to model the Fortran CLASS intrinsic type. A class type
     is equivalent to a fir.box type with a dynamic type.
   }];
 
@@ -426,15 +426,6 @@ def fir_ShiftType : FIR_Type<"Shift", "shift"> {
 
   let parameters = (ins "unsigned":$rank);
   let hasCustomAssemblyFormat = 1;
-
-  let extraClassDeclaration = [{
-    using KindTy = unsigned;
-
-    // a !fir.boxchar<k> always wraps a !fir.char<k, ?>
-    CharacterType getElementType(mlir::MLIRContext *context) const;
-
-    CharacterType getEleTy() const;
-  }];
 }
 
 def fir_SequenceType : FIR_Type<"Sequence", "array"> {
@@ -538,7 +529,7 @@ def fir_VectorType : FIR_Type<"Vector", "vector"> {
 
   let description = [{
     Replacement for the builtin vector type.
-    The FIR vector type is always rank one. It's size is always a constant.
+    The FIR vector type is always rank one. Its size is always a constant.
     A vector's element type must be real or integer.
   }];