[all-commits] [llvm/llvm-project] ca98e0: [mlir][test] Require JIT support in JIT tests

rorth via All-commits all-commits at lists.llvm.org
Thu Aug 18 02:26:53 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca98e0dd6cf59907f07201c4282dcafeeea11a91
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M mlir/lib/ExecutionEngine/JitRunner.cpp
    M mlir/test/CAPI/execution_engine.c
    M mlir/test/lit.cfg.py
    M mlir/test/mlir-cpu-runner/lit.local.cfg
    M mlir/test/python/execution_engine.py
    M mlir/unittests/ExecutionEngine/Invoke.cpp

  Log Message:
  [mlir][test] Require JIT support in JIT tests

A number of mlir tests `FAIL` on Solaris/sparcv9 with `Target has no JIT
support`.  This patch fixes that by mimicing `clang/test/lit.cfg.py` which
implements a `host-supports-jit` keyword for this.  The gtest-based unit
tests don't support `REQUIRES:`, so lack of support needs to be hardcoded

Tested on `amd64-pc-solaris2.11` (`check-mlir` results unchanged) and
`sparcv9-sun-solaris2.11` (only one unrelated failure left).

Differential Revision: https://reviews.llvm.org/D131151

More information about the All-commits mailing list