[flang][CodeGen] Transform `fir.boxchar_len` to a sequence of LLVM MLIR
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Fri, 12 Nov 2021 13:25:42 +0000 (13:25 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Tue, 16 Nov 2021 13:49:23 +0000 (13:49 +0000)
commit6c3d7fd4c55cfacbf9536373857eb496b3cfedcf
treecee7f1783650287a578c6a077486dbafc1640db5
parentaa9bbb64becda3d74ae922b3c0c875649f4ebbce
[flang][CodeGen] Transform `fir.boxchar_len` to a sequence of LLVM MLIR

This patch extends the `FIRToLLVMLowering` pass in Flang by adding a
hook to transform `fir.boxchar_len` 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/D113763

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