[mlir] Revise naming of MLIROptMain and MLIRMlirOptLib
authorMarius Brehler <marius.brehler@iml.fraunhofer.de>
Wed, 12 Feb 2020 08:41:40 +0000 (09:41 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 12 Feb 2020 08:46:09 +0000 (09:46 +0100)
commita9a305716bbfa657ce0f7ae9cd50df82720a6db0
treec226e8bca48b3c4db7324dc2c864e7bc0f3690f3
parent9d0956ebd47144a8e8ada237aeb4d2e5118422b6
[mlir] Revise naming of MLIROptMain and MLIRMlirOptLib

* Rename CMake target MLIROptMain to MLIROptLib:
   The target provides the main library
* Rename CMake target MLIRMlirOptLib to MLIRMlirOptMain:
   The target provides the main() entry function

At the moment, the Bazel configuration of TenorFlow maps the target
MlirOptLib to "lib/Support/MlirOptMain.cpp" and MlirOptMain to
"tools/mlir-opt/mlir-opt.cpp". This is the other way around in the CMake
configuration. As discussed in the context of the pull request
https://github.com/tensorflow/tensorflow/pull/36301, it seems useful to
revise the naming in the MLIR repo.

Differential Revision: https://reviews.llvm.org/D73778
mlir/lib/Support/CMakeLists.txt
mlir/tools/mlir-opt/CMakeLists.txt