This is an archive of the discontinued LLVM Phabricator instance.

[flang][lowering] Add support for lowering of the `{l|u}bound` intrinsics
ClosedPublic

Authored by awarzynski on Mar 17 2022, 10:19 AM.

Details

Summary

This patch adds support for lowering of the {l|u}bound intrinsics from
Fortran to the FIR dialect of MLIR. Note that ubound is already
supported, but the test was missing (added here).

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

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

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Peter Steinfeld <psteinfeld@nvidia.com>

Diff Detail

Event Timeline

awarzynski created this revision.Mar 17 2022, 10:19 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.Mar 17 2022, 10:19 AM
clementval accepted this revision.Mar 17 2022, 12:42 PM

LGTM. The build failure seems to be coming from something unrelated that was reverted in the mean time.

This revision is now accepted and ready to land.Mar 17 2022, 12:42 PM
This revision was landed with ongoing or failed builds.Mar 18 2022, 3:17 AM
This revision was automatically updated to reflect the committed changes.