[fir] Add cfg conversion pass
authorJean Perier <jperier@nvidia.com>
Tue, 12 Oct 2021 21:00:23 +0000 (23:00 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 12 Oct 2021 21:01:54 +0000 (23:01 +0200)
commit68d692375ce62dc841bb12671d8d35d87bd23a57
tree07dfc5d504cff250212bf6ce5f0cd558793d20be
parentd80a5d54e1b7678b53b22f7762bb2ade415aefe2
[fir] Add cfg conversion pass

This patch upstream the cfg conversion pass. This pass
rewrite FIR loop-like operation to a CFG.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>
Co-authored-by: Valentin Clement <clementval@gmail.com>
Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D111095
flang/include/flang/Optimizer/Transforms/Passes.h
flang/include/flang/Optimizer/Transforms/Passes.td
flang/lib/Optimizer/Transforms/CMakeLists.txt
flang/lib/Optimizer/Transforms/RewriteLoop.cpp [new file with mode: 0644]
flang/test/Fir/loop01.fir [new file with mode: 0644]
flang/test/Fir/loop02.fir [new file with mode: 0644]