[flang-commits] [flang] [flang][PPC] Improve vector type names in expression diagnostics (NFC) (PR #199383)

Vir Patel via flang-commits flang-commits at lists.llvm.org
Mon May 25 09:45:30 PDT 2026


virsworld wrote:

> Thanks for reworking. Since `FormatVectorType` and `DerivedTypeSpec::VectorTypeAsFortran` in `flang/lib/Semantics/type.cpp` are very similar, I think it is reasonable to refactor that and consider to put the common code in `flang/lib/Support/Fortran.cpp`. That may require some adjustment in what is being passed to the method.

Refactored to use new function `FormatVectorTypeAsFortran` from `flang/lib/Support/Fortran.cpp` in `flang/lib/Semantics/type.cpp` and `flang/lib/Evaluate/formatting.cpp`.

https://github.com/llvm/llvm-project/pull/199383


More information about the flang-commits mailing list