@@ -107,8 +107,8 @@ HeapType parseHeap(mlir::DialectAsmParser &parser, mlir::Location loc) {
107107}
108108
109109//  `int` `<` kind `>`
110- IntType  parseInteger (mlir::DialectAsmParser &parser) {
111-   return  parseKindSingleton<IntType >(parser);
110+ fir::IntegerType  parseInteger (mlir::DialectAsmParser &parser) {
111+   return  parseKindSingleton<fir::IntegerType >(parser);
112112}
113113
114114//  `len`
@@ -181,7 +181,7 @@ SequenceType parseSequence(mlir::DialectAsmParser &parser, mlir::Location) {
181181// / Is `ty` a standard or FIR integer type?
182182static  bool  isaIntegerType (mlir::Type ty) {
183183  //  TODO: why aren't we using isa_integer? investigatation required.
184-   return  ty.isa <mlir::IntegerType>() || ty.isa <fir::IntType >();
184+   return  ty.isa <mlir::IntegerType>() || ty.isa <fir::IntegerType >();
185185}
186186
187187bool  verifyRecordMemberType (mlir::Type ty) {
@@ -469,17 +469,17 @@ struct LogicalTypeStorage : public mlir::TypeStorage {
469469};
470470
471471// / `INTEGER` storage
472- struct  IntTypeStorage  : public  mlir ::TypeStorage {
472+ struct  IntegerTypeStorage  : public  mlir ::TypeStorage {
473473  using  KeyTy = KindTy;
474474
475475  static  unsigned  hashKey (const  KeyTy &key) { return  llvm::hash_combine (key); }
476476
477477  bool  operator ==(const  KeyTy &key) const  { return  key == getFKind (); }
478478
479-   static  IntTypeStorage  *construct (mlir::TypeStorageAllocator &allocator,
480-                                    KindTy kind) {
481-     auto  *storage = allocator.allocate <IntTypeStorage >();
482-     return  new  (storage) IntTypeStorage {kind};
479+   static  IntegerTypeStorage  *construct (mlir::TypeStorageAllocator &allocator,
480+                                         KindTy kind) {
481+     auto  *storage = allocator.allocate <IntegerTypeStorage >();
482+     return  new  (storage) IntegerTypeStorage {kind};
483483  }
484484
485485  KindTy getFKind () const  { return  kind; }
@@ -488,8 +488,8 @@ struct IntTypeStorage : public mlir::TypeStorage {
488488  KindTy kind;
489489
490490private: 
491-   IntTypeStorage () = delete ;
492-   explicit  IntTypeStorage (KindTy kind) : kind{kind} {}
491+   IntegerTypeStorage () = delete ;
492+   explicit  IntegerTypeStorage (KindTy kind) : kind{kind} {}
493493};
494494
495495// / `COMPLEX` storage
@@ -901,11 +901,11 @@ int fir::LogicalType::getFKind() const { return getImpl()->getFKind(); }
901901
902902//  INTEGER
903903
904- IntType  fir::IntType ::get (mlir::MLIRContext *ctxt, KindTy kind) {
904+ fir::IntegerType  fir::IntegerType ::get (mlir::MLIRContext *ctxt, KindTy kind) {
905905  return  Base::get (ctxt, kind);
906906}
907907
908- int  fir::IntType ::getFKind () const  { return  getImpl ()->getFKind (); }
908+ int  fir::IntegerType ::getFKind () const  { return  getImpl ()->getFKind (); }
909909
910910//  COMPLEX
911911
@@ -1290,7 +1290,7 @@ void fir::printFirType(FIROpsDialect *, mlir::Type ty,
12901290    os << ' >'  ;
12911291    return ;
12921292  }
1293-   if  (auto  type = ty.dyn_cast <fir::IntType >()) {
1293+   if  (auto  type = ty.dyn_cast <fir::IntegerType >()) {
12941294    os << " int<"   << type.getFKind () << ' >'  ;
12951295    return ;
12961296  }
0 commit comments