This patch is to add VectorTypeAsFortran for PPC vector types.
Coauthor: @tislam
Paths
| Differential D151757
[flang] Add DerivedTypeSpec::VectorTypeAsFortran for PPC vector type ClosedPublic Authored by kkwli0 on May 30 2023, 2:55 PM.
Details
Diff Detail Event Timeline
This revision is now accepted and ready to land.May 31 2023, 8:30 AM Closed by commit rG7eb05cb4938c: [flang] Add DerivedTypeSpec::VectorTypeAsFortran for PPC vector type (authored by kkwli0). · Explain WhyMay 31 2023, 1:40 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 526803 flang/include/flang/Semantics/type.h
flang/lib/Semantics/type.cpp
flang/test/Semantics/ppc-vector-types.f90
flang/test/Semantics/ppc-vector-types01.f90
flang/test/Semantics/ppc-vector-types02.f90
|
Why does this have to be a distinct public member function as opposed to extending the behavior of AsFortran() in place? It seems error-prone for callers to have to remember to test with IsVectorType() and then call one or the other, when that test could be automatic inside AsFortran().