[PATCH] D115333: [flang][codegen] Add a conversion for `fir.coordinate_of` - part 2
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 05:03:10 PST 2021
awarzynski created this revision.
awarzynski added reviewers: jeanPerier, AlexisPerry, rovka, schweitz, kiranchandramohan, clementval.
Herald added subscribers: Chia-hungDuan, mehdi_amini, rriddle.
Herald added a project: Flang.
awarzynski requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, jdoerfert.
Herald added a project: LLVM.
This patch extends the `FIRToLLVMLowering` pass in Flang by extending
the hook to transform `fir.coordinate_of` into a sequence of LLVM MLIR
instructions (i.e. `CoordinateOpConversion::doRewrite`). The following
case is added:
3. the input object is inside `!fir.ref` (e.g. `!fir.ref<!fir.array>` or `!fir.ref<!fir.derived>`).
This is part of the upstreaming effort from the `fir-dev` branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project
Originally written by:
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>
Depends on: D114159 <https://reviews.llvm.org/D114159>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115333
Files:
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/convert-to-llvm-invalid.fir
flang/test/Fir/convert-to-llvm.fir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115333.392719.patch
Type: text/x-patch
Size: 14356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/374aaeee/attachment.bin>
More information about the llvm-commits
mailing list