[flang][hlfir] Add ordered assignment pass with TODOs
authorJean Perier <jperier@nvidia.com>
Fri, 5 May 2023 07:21:13 +0000 (09:21 +0200)
committerJean Perier <jperier@nvidia.com>
Fri, 5 May 2023 07:21:43 +0000 (09:21 +0200)
commit88ed439562e95c936a8c6d06aa1405ae05792b40
tree8a48ee1f53adef1b29b8867b603843a1731760d0
parent0aa80b42ac975a10087c4356b475a188ef1f5afa
[flang][hlfir] Add ordered assignment pass with TODOs

I plan to implement lowering from parse tree to HLFIR first for forall
and where to ease testing of the rewrite pass while writing it.

To avoid cryptic errors in ConvertToFir pass about unhandled operations,
this patch already defines the pass that will further lower these
operations and make it throw clear TODO messages.

Differential Revision: https://reviews.llvm.org/D149852
flang/include/flang/Optimizer/HLFIR/Passes.h
flang/include/flang/Optimizer/HLFIR/Passes.td
flang/include/flang/Tools/CLOptions.inc
flang/lib/Optimizer/HLFIR/Transforms/CMakeLists.txt
flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIROrderedAssignments.cpp [new file with mode: 0644]
flang/test/Driver/mlir-debug-pass-pipeline.f90
flang/test/Driver/mlir-pass-pipeline.f90
flang/test/Fir/basic-program.fir
flang/test/HLFIR/ordered-assignments-codegen-todo.fir [new file with mode: 0644]