[flang] Add High level Fortran IR dialect
authorJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 11:10:52 +0000 (13:10 +0200)
committerJean Perier <jperier@nvidia.com>
Fri, 21 Oct 2022 11:11:13 +0000 (13:11 +0200)
commit451b1b1ffbb655fdebaea5bc2a508d60e16ca22e
tree82086fe3a76d481cbfd240808c21910c5539106a
parenta0549ee2a39013c6ff75b86cda9d4ccfadb0ab88
[flang] Add High level Fortran IR dialect

This patch adds the basic dialect definition of the HLFIR dialect that
was described in https://reviews.llvm.org/D134285.

It adds the definition of the hlfir.expr type and related tests so that
it can be verified that the dialect is properly hooked up by the tools.

Operations will be added as progress is made in the expression
lowering update.

Differential Revision: https://reviews.llvm.org/D136328
14 files changed:
flang/include/flang/Optimizer/CMakeLists.txt
flang/include/flang/Optimizer/HLFIR/CMakeLists.txt [new file with mode: 0644]
flang/include/flang/Optimizer/HLFIR/HLFIRDialect.h [new file with mode: 0644]
flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td [new file with mode: 0644]
flang/include/flang/Optimizer/Support/InitFIR.h
flang/lib/Frontend/CMakeLists.txt
flang/lib/Optimizer/CMakeLists.txt
flang/lib/Optimizer/HLFIR/CMakeLists.txt [new file with mode: 0644]
flang/lib/Optimizer/HLFIR/HLFIRDialect.cpp [new file with mode: 0644]
flang/test/HLFIR/expr-type.fir [new file with mode: 0644]
flang/tools/bbc/CMakeLists.txt
flang/tools/fir-opt/CMakeLists.txt
flang/tools/tco/CMakeLists.txt
flang/unittests/Optimizer/CMakeLists.txt