[flang][lowering] Add support for lowering of the `index` intrinsics
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Wed, 16 Mar 2022 18:27:12 +0000 (18:27 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 17 Mar 2022 12:04:11 +0000 (12:04 +0000)
commit6321113f783a1d8a6cc2494ae068174245b043c6
treec21bcc0cf21ca848e6375be22d986807169bbfbc
parenta6e70e4056dff962ec634c5bd4f2f4105a0bef71
[flang][lowering] Add support for lowering of the `index` intrinsics

This patch adds support for lowering of the `index` intrinsics from
Fortran to the FIR dialect of MLIR.

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/D121834

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/index.f90 [new file with mode: 0644]