[Flang] Upstream conversion of the XRebox Op
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 7 Dec 2021 13:01:28 +0000 (13:01 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 7 Dec 2021 22:22:39 +0000 (22:22 +0000)
commitfa517555420b8d86268b733d371413d607db3358
tree16e2590b0356cfa8cc84d5195c2fceda2c1f7100
parent36529a28c7af078fc88e7236f9a0856bb6d44396
[Flang] Upstream conversion of the XRebox Op

The XRebox Op is formed by the codegen rewrite which makes it easier to
convert the operation to LLVM. The XRebox op includes the information
from the rebox op and the associated slice, shift, and shape ops.

During the conversion process a new descriptor is created for reboxing.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Val Donaldson <vdonaldson@nvidia.com>
Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D114709
flang/include/flang/Optimizer/CodeGen/CGOps.td
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/convert-to-llvm.fir