[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
This commit is contained in:
Peixin Qiao 2022-10-12 20:25:34 +08:00
parent 5f4927da77
commit 78c66cf300
1 changed files with 2 additions and 11 deletions

View 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.
}];