[flang-commits] [flang] 78c66cf - [flang][NFC] Fix FIRTypes.td
Peixin Qiao via flang-commits
flang-commits at lists.llvm.org
Wed Oct 12 05:27:04 PDT 2022
Author: Peixin Qiao
Date: 2022-10-12T20:25:34+08:00
New Revision: 78c66cf300eab3e7b49803e21c6bea5fb69a975d
URL: https://github.com/llvm/llvm-project/commit/78c66cf300eab3e7b49803e21c6bea5fb69a975d
DIFF: https://github.com/llvm/llvm-project/commit/78c66cf300eab3e7b49803e21c6bea5fb69a975d.diff
LOG: [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
Added:
Modified:
flang/include/flang/Optimizer/Dialect/FIRTypes.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Dialect/FIRTypes.td b/flang/include/flang/Optimizer/Dialect/FIRTypes.td
index 9d7c76ec6b9a8..f179071f1943f 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<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.
}];
More information about the flang-commits
mailing list