Commit 5f8a16ac by Nicolas Capens Committed by Nicolas Capens

Default to LLVM JIT for ARM32 CMake build

LLVM 7.0 properly supports ARM (unlike the LLVM 3.0 version we used before), including the features needed by our Vulkan implementation (unlike Subzero). Bug: b/115344057 Change-Id: Ic9155b644ab649597219093c3d757862c60a9fa0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35228 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 69f2535a
...@@ -101,11 +101,7 @@ option(REACTOR_EMIT_DEBUG_INFO "Emit debug info for JIT functions" 0) ...@@ -101,11 +101,7 @@ option(REACTOR_EMIT_DEBUG_INFO "Emit debug info for JIT functions" 0)
option(REACTOR_EMIT_PRINT_LOCATION "Emit printing of location info for JIT functions" 0) option(REACTOR_EMIT_PRINT_LOCATION "Emit printing of location info for JIT functions" 0)
option(REACTOR_VERIFY_LLVM_IR "Check reactor-generated LLVM IR is valid even in release builds" 0) option(REACTOR_VERIFY_LLVM_IR "Check reactor-generated LLVM IR is valid even in release builds" 0)
if(ARCH STREQUAL "arm") set(DEFAULT_REACTOR_BACKEND "LLVM")
set(DEFAULT_REACTOR_BACKEND "Subzero")
else()
set(DEFAULT_REACTOR_BACKEND "LLVM")
endif()
set(REACTOR_BACKEND ${DEFAULT_REACTOR_BACKEND} CACHE STRING "JIT compiler back-end used by Reactor") set(REACTOR_BACKEND ${DEFAULT_REACTOR_BACKEND} CACHE STRING "JIT compiler back-end used by Reactor")
set_property(CACHE REACTOR_BACKEND PROPERTY STRINGS LLVM Subzero) set_property(CACHE REACTOR_BACKEND PROPERTY STRINGS LLVM Subzero)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment