From: Peixin Qiao Date: Wed, 12 Oct 2022 12:25:34 +0000 (+0800) Subject: [flang][NFC] Fix FIRTypes.td X-Git-Tag: upstream/17.0.6~30849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78c66cf300eab3e7b49803e21c6bea5fb69a975d;p=platform%2Fupstream%2Fllvm.git [flang][NFC] Fix FIRTypes.td Fix two typos and remove the incorrectly added `extraClassDeclaration` in `FIRTypes.td`. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D135665 --- diff --git a/flang/include/flang/Optimizer/Dialect/FIRTypes.td b/flang/include/flang/Optimizer/Dialect/FIRTypes.td index 9d7c76e..f179071 100644 --- a/flang/include/flang/Optimizer/Dialect/FIRTypes.td +++ b/flang/include/flang/Optimizer/Dialect/FIRTypes.td @@ -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 always wraps a !fir.char - 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. }];