[PATCH] D95399: [flang][fir] Upstream FIR dialect changes.

Eric Schweitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 10:05:56 PST 2021


schweitz added inline comments.


================
Comment at: flang/lib/Optimizer/Dialect/FIRDialect.cpp:63
     : mlir::Dialect("fir", ctx, mlir::TypeID::get<FIROpsDialect>()) {
-  addTypes<BoxType, BoxCharType, BoxProcType, CharacterType, CplxType, DimsType,
-           FieldType, HeapType, IntType, LenType, LogicalType, PointerType,
-           RealType, RecordType, ReferenceType, SequenceType, TypeDescType>();
-  addAttributes<ClosedIntervalAttr, ExactTypeAttr, LowerBoundAttr,
+  addTypes<BoxType, BoxCharType, BoxProcType, CharacterType, fir::ComplexType,
+           FieldType, HeapType, fir::IntegerType, LenType, LogicalType,
----------------
SouraVX wrote:
> Is this intended ? some Types containing the prefix `fir::` and some not ?
Ah, right. The ones prefixed with `fir::` have duplicate classes in other namespaces. So this future-proofs this code to make sure the correct classes are used.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95399/new/

https://reviews.llvm.org/D95399



More information about the llvm-commits mailing list