[llvm-branch-commits] [llvm] [openmp] [openmp] Add support for Arm64X to libomp (PR #176157)
Michael Kruse via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 27 07:20:31 PST 2026
================
@@ -232,6 +232,22 @@ if(LIBC_GPU_BUILD)
list(APPEND RUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES "libc")
endif()
+# Set up Arm64X build of the OpenMP runtime
+option(LIBOMP_ENABLE_ARM64X "Build the OpenMP library as Arm64X for compatibility with both Arm64 and Arm64EC" OFF)
+if(LIBOMP_ENABLE_ARM64X)
+ if(NOT LLVM_HOST_TRIPLE STREQUAL "aarch64-pc-windows-msvc")
+ messsage(FATAL_ERROR "Arm64X builds are only supported on Windows on Arm hosts.")
+ endif()
+ if(NOT LLVM_RUNTIME_TARGETS)
+ set(LLVM_RUNTIME_TARGETS "default")
+ endif()
+
+ if(NOT "arm64ec-pc-windows-msvc" IN_LIST LLVM_RUNTIME_TARGETS)
+ list(APPEND LLVM_RUNTIME_TARGETS "arm64ec-pc-windows-msvc")
+ endif()
+ set(RUNTIMES_arm64ec-pc-windows-msvc_LIBOMP_ENABLE_ARM64X ON)
----------------
Meinersbur wrote:
Configuration parameters starting with `LIBOMP_` such as `LIBOMP_ENABLE_ARM64X` should already be forwarded implicitly with by
https://github.com/llvm/llvm-project/blob/d456e56f27814a82ba125499186a30e44517f415/llvm/runtimes/CMakeLists.txt#L220
https://github.com/llvm/llvm-project/pull/176157
More information about the llvm-branch-commits
mailing list