Most of the MLIR codebase does not need any LLVM targets to be configured in order to build and pass the
check-mlir test suite (i.e., -DLLVM_TARGETS_TO_BUILD="" should almost work). There are currently just 6 out of 418 test cases that rely on target info (list below), and
check-mlir would just pass if these weren’t run if no targets were configured. Given the significant build time that is saved when using an empty target list, would it be meaningful and easy to exclude these tests when
LLVM_TARGETS_TO_BUILD is empty?
Failing Tests (6): MLIR :: mlir-cpu-runner/bare_ptr_call_conv.mlir MLIR :: mlir-cpu-runner/linalg_integration_test.mlir MLIR :: mlir-cpu-runner/sgemm_naive_codegen.mlir MLIR :: mlir-cpu-runner/simple.mlir MLIR :: mlir-cpu-runner/unranked_memref.mlir MLIR :: mlir-cpu-runner/utils.mlir