[all-commits] [llvm/llvm-project] 9d1f36: [MLIR] Fix checks for native arch
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Aug 8 12:19:02 PDT 2022
Branch: refs/heads/release/15.x
Home: https://github.com/llvm/llvm-project
Commit: 9d1f36d6b7433eecd1bab76ed607d88aefe5e740
https://github.com/llvm/llvm-project/commit/9d1f36d6b7433eecd1bab76ed607d88aefe5e740
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-08-08 (Mon, 08 Aug 2022)
Changed paths:
M mlir/CMakeLists.txt
M mlir/lib/CAPI/CMakeLists.txt
M mlir/lib/ExecutionEngine/CMakeLists.txt
M mlir/python/CMakeLists.txt
M mlir/test/CAPI/CMakeLists.txt
M mlir/test/CMakeLists.txt
M mlir/tools/CMakeLists.txt
M mlir/unittests/CMakeLists.txt
Log Message:
-----------
[MLIR] Fix checks for native arch
Using if (TARGET ${LLVM_NATIVE_ARCH}) only works if MLIR is built
together with LLVM, but not for standalone builds of MLIR. The
correct way to check this is
if (${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD), as the
LLVM build system exports LLVM_TARGETS_TO_BUILD.
To avoid repeating the same check many times, add a
MLIR_ENABLE_EXECUTION_ENGINE variable.
Differential Revision: https://reviews.llvm.org/D131071
(cherry picked from commit 57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c)
More information about the All-commits
mailing list