@@ -107,8 +107,8 @@ HeapType parseHeap(mlir::DialectAsmParser &parser, mlir::Location loc) {
107
107
}
108
108
109
109
// `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);
112
112
}
113
113
114
114
// `len`
@@ -181,7 +181,7 @@ SequenceType parseSequence(mlir::DialectAsmParser &parser, mlir::Location) {
181
181
// / Is `ty` a standard or FIR integer type?
182
182
static bool isaIntegerType (mlir::Type ty) {
183
183
// 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 >();
185
185
}
186
186
187
187
bool verifyRecordMemberType (mlir::Type ty) {
@@ -469,17 +469,17 @@ struct LogicalTypeStorage : public mlir::TypeStorage {
469
469
};
470
470
471
471
// / `INTEGER` storage
472
- struct IntTypeStorage : public mlir ::TypeStorage {
472
+ struct IntegerTypeStorage : public mlir ::TypeStorage {
473
473
using KeyTy = KindTy;
474
474
475
475
static unsigned hashKey (const KeyTy &key) { return llvm::hash_combine (key); }
476
476
477
477
bool operator ==(const KeyTy &key) const { return key == getFKind (); }
478
478
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};
483
483
}
484
484
485
485
KindTy getFKind () const { return kind; }
@@ -488,8 +488,8 @@ struct IntTypeStorage : public mlir::TypeStorage {
488
488
KindTy kind;
489
489
490
490
private:
491
- IntTypeStorage () = delete ;
492
- explicit IntTypeStorage (KindTy kind) : kind{kind} {}
491
+ IntegerTypeStorage () = delete ;
492
+ explicit IntegerTypeStorage (KindTy kind) : kind{kind} {}
493
493
};
494
494
495
495
// / `COMPLEX` storage
@@ -901,11 +901,11 @@ int fir::LogicalType::getFKind() const { return getImpl()->getFKind(); }
901
901
902
902
// INTEGER
903
903
904
- IntType fir::IntType ::get (mlir::MLIRContext *ctxt, KindTy kind) {
904
+ fir::IntegerType fir::IntegerType ::get (mlir::MLIRContext *ctxt, KindTy kind) {
905
905
return Base::get (ctxt, kind);
906
906
}
907
907
908
- int fir::IntType ::getFKind () const { return getImpl ()->getFKind (); }
908
+ int fir::IntegerType ::getFKind () const { return getImpl ()->getFKind (); }
909
909
910
910
// COMPLEX
911
911
@@ -1290,7 +1290,7 @@ void fir::printFirType(FIROpsDialect *, mlir::Type ty,
1290
1290
os << ' >' ;
1291
1291
return ;
1292
1292
}
1293
- if (auto type = ty.dyn_cast <fir::IntType >()) {
1293
+ if (auto type = ty.dyn_cast <fir::IntegerType >()) {
1294
1294
os << " int<" << type.getFKind () << ' >' ;
1295
1295
return ;
1296
1296
}
0 commit comments