@@ -695,9 +695,9 @@ BoxProcType::verify(llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
695695}
696696
697697static bool cannotBePointerOrHeapElementType (mlir::Type eleTy) {
698- return eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
698+ return mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
699699 SliceType, FieldType, LenType, HeapType, PointerType,
700- ReferenceType, TypeDescType>();
700+ ReferenceType, TypeDescType>(eleTy );
701701}
702702
703703// ===----------------------------------------------------------------------===//
@@ -776,10 +776,10 @@ void fir::CharacterType::print(mlir::AsmPrinter &printer) const {
776776mlir::LogicalResult
777777fir::ClassType::verify (llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
778778 mlir::Type eleTy) {
779- if (eleTy. isa <fir::RecordType, fir::SequenceType, fir::HeapType,
779+ if (mlir:: isa<fir::RecordType, fir::SequenceType, fir::HeapType,
780780 fir::PointerType, mlir::NoneType, mlir::IntegerType,
781781 mlir::FloatType, fir::CharacterType, fir::LogicalType,
782- fir::ComplexType, mlir::ComplexType>())
782+ fir::ComplexType, mlir::ComplexType>(eleTy ))
783783 return mlir::success ();
784784 return emitError () << " invalid element type\n " ;
785785}
@@ -1050,8 +1050,8 @@ void fir::ReferenceType::print(mlir::AsmPrinter &printer) const {
10501050mlir::LogicalResult fir::ReferenceType::verify (
10511051 llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
10521052 mlir::Type eleTy) {
1053- if (eleTy. isa <ShapeType, ShapeShiftType, SliceType, FieldType, LenType,
1054- ReferenceType, TypeDescType>())
1053+ if (mlir:: isa<ShapeType, ShapeShiftType, SliceType, FieldType, LenType,
1054+ ReferenceType, TypeDescType>(eleTy ))
10551055 return emitError () << " cannot build a reference to type: " << eleTy << ' \n ' ;
10561056 return mlir::success ();
10571057}
@@ -1126,9 +1126,9 @@ mlir::LogicalResult fir::SequenceType::verify(
11261126 llvm::ArrayRef<int64_t> shape, mlir::Type eleTy,
11271127 mlir::AffineMapAttr layoutMap) {
11281128 // DIMENSION attribute can only be applied to an intrinsic or record type
1129- if (eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1129+ if (mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
11301130 ShiftType, SliceType, FieldType, LenType, HeapType, PointerType,
1131- ReferenceType, TypeDescType, SequenceType>())
1131+ ReferenceType, TypeDescType, SequenceType>(eleTy ))
11321132 return emitError () << " cannot build an array of this element type: "
11331133 << eleTy << ' \n ' ;
11341134 return mlir::success ();
@@ -1199,9 +1199,9 @@ void fir::TypeDescType::print(mlir::AsmPrinter &printer) const {
11991199mlir::LogicalResult fir::TypeDescType::verify (
12001200 llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
12011201 mlir::Type eleTy) {
1202- if (eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1202+ if (mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
12031203 ShiftType, SliceType, FieldType, LenType, ReferenceType,
1204- TypeDescType>())
1204+ TypeDescType>(eleTy ))
12051205 return emitError () << " cannot build a type descriptor of type: " << eleTy
12061206 << ' \n ' ;
12071207 return mlir::success ();
0 commit comments