[flang][CodeGen] Transform `fir.unboxchar` to a sequence of LLVM MLIR
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Wed, 10 Nov 2021 13:24:56 +0000 (13:24 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Mon, 15 Nov 2021 15:34:55 +0000 (15:34 +0000)
commit14867ffc7c6dd78665b332fe2e815c83909eb93e
tree3b45bcc978a1f6e3f2044c6c4117f850ca091f51
parent37c7211f110839bd54707c0f25bc434d596dbda1
[flang][CodeGen] Transform `fir.unboxchar` to a sequence of LLVM MLIR

This patch extends the `FIRToLLVMLowering` pass in Flang by adding a
hook to transform `fir.unboxchar` to a sequence of LLVM MLIR
instructions.

This is part of the upstreaming effort from the `fir-dev` branch in [1].

[1] https://github.com/flang-compiler/f18-llvm-project

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

Originally written by:
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/convert-to-llvm-target.fir