llvm-project/flang/lib
Jean Perier c099ca4e45 [flang][optimizer] support aggregate types inside tuple and record type
This patch allows:
 - fir.box type to be a member of tuple<> or fir.type<> types,
 - tuple<> type to be a member of tuple<> type.

When a fir.box types are nested in tuple<> or fir.type<>, it is translated
to the struct type of a Fortran runtime descriptor, and not a
pointer to a descriptor. This is because the fir.box is owned by the tuple
or fir.type.

FIR type translation was also flattening nested tuple while lowering to LLVM
dialect types. There does not seem to be a deep reason for doing that
and doing it causes issues in fir.coordinate_of generated on such tuple
(a fir.coordinate_of getting tuple<B, C> in tuple<A, tuple<B, C>>
ended-up lowered to an LLVM GEP getting B).

Differential Revision: https://reviews.llvm.org/D118701
2022-02-02 09:22:11 +01:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal [flang] Runtime performance improvements to real formatted input 2021-11-12 11:40:02 -08:00
Evaluate [flang] Fix argument keyword names in some specific intrinsics 2022-02-01 16:55:21 -08:00
Frontend [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
FrontendTool [flang][driver] Add support for Frontend Plugins 2021-08-12 11:42:16 +01:00
Lower [flang] Lower PAUSE statement 2022-02-02 08:16:12 +01:00
Optimizer [flang][optimizer] support aggregate types inside tuple and record type 2022-02-02 09:22:11 +01:00
Parser [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
Semantics [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
CMakeLists.txt [flang][driver] Delete `f18` (i.e. the old Flang driver) 2021-08-05 12:57:15 +00:00