[mlir] Clean up boolean flags usage in LIT tests
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Mon, 20 Sep 2021 14:35:57 +0000 (17:35 +0300)
committerVladislav Vinogradov <vlad.vinogradov@intel.com>
Tue, 12 Oct 2021 08:44:48 +0000 (11:44 +0300)
commit505afd1e648355b3301d167a0fdc3d3bb402b351
tree95cb00c5f6401833190e85882e70a1665714bead
parente2d5a380e04363fb3705ebfbf787c6d2c7659504
[mlir] Clean up boolean flags usage in LIT tests

* Call `llvm_canonicalize_cmake_booleans` for all CMake options,
  which are propagated to `lit.local.cfg` files.
* Use Python native boolean values instead of strings for such options.

This fixes the cases, when CMake variables have values other than `ON` (like `TRUE`).
This might happen due to IDE integration or due to CMake preset usage.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D110073
mlir/test/CMakeLists.txt
mlir/test/Integration/Dialect/Vector/CPU/AMX/lit.local.cfg
mlir/test/Integration/Dialect/Vector/CPU/X86Vector/lit.local.cfg
mlir/test/Integration/GPU/CUDA/TensorCore/lit.local.cfg
mlir/test/Integration/lit.local.cfg
mlir/test/lit.site.cfg.py.in
mlir/test/python/integration/lit.local.cfg