5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
+ //
9
+ // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
10
+ //
11
+ // ===----------------------------------------------------------------------===//
8
12
9
13
#include " flang/Optimizer/Dialect/FIRType.h"
10
14
#include " flang/Optimizer/Dialect/FIRDialect.h"
15
+ #include " mlir/IR/Builders.h"
11
16
#include " mlir/IR/Diagnostics.h"
12
17
#include " mlir/IR/DialectImplementation.h"
13
18
#include " llvm/ADT/SmallPtrSet.h"
@@ -838,7 +843,7 @@ CharacterType fir::CharacterType::get(mlir::MLIRContext *ctxt, KindTy kind) {
838
843
return Base::get (ctxt, kind);
839
844
}
840
845
841
- int fir::CharacterType::getFKind () const { return getImpl ()->getFKind (); }
846
+ KindTy fir::CharacterType::getFKind () const { return getImpl ()->getFKind (); }
842
847
843
848
// Field
844
849
@@ -858,15 +863,15 @@ LogicalType fir::LogicalType::get(mlir::MLIRContext *ctxt, KindTy kind) {
858
863
return Base::get (ctxt, kind);
859
864
}
860
865
861
- int fir::LogicalType::getFKind () const { return getImpl ()->getFKind (); }
866
+ KindTy fir::LogicalType::getFKind () const { return getImpl ()->getFKind (); }
862
867
863
868
// INTEGER
864
869
865
870
fir::IntegerType fir::IntegerType::get (mlir::MLIRContext *ctxt, KindTy kind) {
866
871
return Base::get (ctxt, kind);
867
872
}
868
873
869
- int fir::IntegerType::getFKind () const { return getImpl ()->getFKind (); }
874
+ KindTy fir::IntegerType::getFKind () const { return getImpl ()->getFKind (); }
870
875
871
876
// COMPLEX
872
877
@@ -886,7 +891,7 @@ RealType fir::RealType::get(mlir::MLIRContext *ctxt, KindTy kind) {
886
891
return Base::get (ctxt, kind);
887
892
}
888
893
889
- int fir::RealType::getFKind () const { return getImpl ()->getFKind (); }
894
+ KindTy fir::RealType::getFKind () const { return getImpl ()->getFKind (); }
890
895
891
896
// Box<T>
892
897
0 commit comments