[all-commits] [llvm/llvm-project] 75db34: [flang][codegen] Add a conversion for `!fir.coordi...
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Fri Dec 10 00:35:31 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75db341d5a12783f8048ef9968896871c580e6b7
https://github.com/llvm/llvm-project/commit/75db341d5a12783f8048ef9968896871c580e6b7
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-12-10 (Fri, 10 Dec 2021)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/lib/Optimizer/CodeGen/TypeConverter.h
A flang/test/Fir/Todo/cordinate_of_1.fir
A flang/test/Fir/Todo/cordinate_of_2.fir
A flang/test/Fir/Todo/cordinate_of_3.fir
A flang/test/Fir/Todo/cordinate_of_4.fir
M flang/test/Fir/convert-to-llvm.fir
Log Message:
-----------
[flang][codegen] Add a conversion for `!fir.coordinate_of` - part 1
This patch extends the `FIRToLLVMLowering` pass in Flang by adding a
hook to transform `!fir.coordinate_of` into a sequence of LLVM MLIR
instructions.
The following cases are currently supported:
1. the input object is a `!fir.complex` (wrapped in e.g. `!fir.ref` or
`!fir.box`)
2. the input object is wrapped in a `!fir.box` (including e.g.
`!fir.array`).
Note that `!fir.complex` inside a `!fir.box` falls under case 1. above
(i.e. it's a special case regardless of the wrapping type).
This is part of the upstreaming effort from the `!fir-dev` branch in [1].
Differential Revision: https://reviews.llvm.org/D114159
Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: V Donaldson <vdonaldson at nvidia.com>
More information about the All-commits
mailing list