[flang][fir] Add fir-opt tool
authorValentin Clement <clementval@gmail.com>
Sat, 13 Feb 2021 03:20:15 +0000 (22:20 -0500)
committerclementval <clementval@gmail.com>
Sat, 13 Feb 2021 03:20:38 +0000 (22:20 -0500)
commitdf1eeaa7b404f7c5a96a812479f0ee2ce8354f6a
tree82f89aceb5e4e3a281099a137d2151f85437bc58
parentc2a84771bb63947695ea50b89160c02b36fb634d
[flang][fir] Add fir-opt tool

This patch introduce the fir-opt tool. Similar to mlir-opt for FIR.
It will be used in following patches to test fir opt and round-trip.

Reviewed By: schweitz, mehdi_amini

Differential Revision: https://reviews.llvm.org/D96535
flang/test/CMakeLists.txt
flang/test/Fir/fir-ops.fir
flang/test/Fir/fir-types.fir
flang/tools/CMakeLists.txt
flang/tools/fir-opt/CMakeLists.txt [new file with mode: 0644]
flang/tools/fir-opt/fir-opt.cpp [new file with mode: 0644]