[flang][RFC] Adding higher level FIR ops to ease expression lowering
authorJean Perier <jperier@nvidia.com>
Thu, 13 Oct 2022 12:24:56 +0000 (14:24 +0200)
committerJean Perier <jperier@nvidia.com>
Thu, 13 Oct 2022 12:25:51 +0000 (14:25 +0200)
commit0623ce152a02eed954a1de82a1430d6d00647c9f
tree75bcf58c2850811606dd222e42eda173d130befb
parentfcce2562c177f0ad2aa03620be8675bef5c631d1
[flang][RFC] Adding higher level FIR ops to ease expression lowering

This document describes a new HLFIR dialect with a new value type
(hlfir.expr) and some new higher level FIR operations to make lowering
to FIR more straightforward and make pattern matching of high level
Fortran concepts (array and character assignments, character operations,
and transformational intrinsics) easier in FIR.

This should allow implementing the remaining gaps in Fortran 95 features
without increasing the lowering code complexity too much, and get a
clean start for the remaining F2003 and F2018 features.

Differential Revision: https://reviews.llvm.org/D134285
flang/docs/HighLevelFIR.md [new file with mode: 0644]