[mlir][NFC] Move MlirOptMain to the Tools/ directory
authorRiver Riddle <riddleriver@gmail.com>
Fri, 4 Mar 2022 21:49:30 +0000 (13:49 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 7 Mar 2022 09:05:38 +0000 (01:05 -0800)
commit6b7d211a1b80957619a0ca81f4d2b832bf7e593b
tree4ae59b6e9fa8c8a1491d4cbae00f5b40c0889829
parent9eaff42360f4430e2baba28dd8d119137caae486
[mlir][NFC] Move MlirOptMain to the Tools/ directory

MlirOptMain is currently awkwardly shoved into mlir/Support. This commit
moves it to the Tools/ directory, which is intended for libraries used to
implement tools.

Differential Revision: https://reviews.llvm.org/D121025
flang/tools/fir-opt/fir-opt.cpp
mlir/examples/standalone/standalone-opt/standalone-opt.cpp
mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h [moved from mlir/include/mlir/Support/MlirOptMain.h with 97% similarity]
mlir/lib/Support/CMakeLists.txt
mlir/lib/Tools/CMakeLists.txt
mlir/lib/Tools/mlir-opt/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Tools/mlir-opt/MlirOptMain.cpp [moved from mlir/lib/Support/MlirOptMain.cpp with 99% similarity]
mlir/tools/mlir-opt/mlir-opt.cpp