[mlir] Fix cross-compilation (Linalg ODS gen)
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Mon, 18 Jan 2021 10:54:06 +0000 (11:54 +0100)
committerAlex Zinenko <zinenko@google.com>
Mon, 18 Jan 2021 10:57:55 +0000 (11:57 +0100)
commitaca240b4f69e908b31e30b7ccece3c5b1d58426e
treee86ccfe41915193ecaefa843291cd00cb36042d3
parent207f32948b2408bebd5a523695f6f7c08049db74
[mlir] Fix cross-compilation (Linalg ODS gen)

Use cross-compilation approach for `mlir-linalg-ods-gen` application
similar to TblGen tools.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D94598
mlir/CMakeLists.txt
mlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
mlir/tools/CMakeLists.txt
mlir/tools/mlir-linalg-ods-gen/CMakeLists.txt