[fir] Add fir.gentypedesc conversion
authorValentin Clement <clementval@gmail.com>
Tue, 16 Nov 2021 13:37:05 +0000 (14:37 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 16 Nov 2021 13:41:00 +0000 (14:41 +0100)
commit3124618704c5a9d1442b75d6372307654fea0827
treeb01dc7720bc694740d982b328104f6ae20d3e6e6
parent374cd0fb6102a8726da0e6036b3c484aca32c61e
[fir] Add fir.gentypedesc conversion

Add conversion pattern for the GenTypeDescOp.
Convert to a global constant with an addressof.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D113766

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/convert-to-llvm-invalid.fir