[Openmp-commits] [PATCH] D68543: openmp: Recognise ARMv7ve machine arch

Khem Raj via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sat Oct 5 15:09:17 PDT 2019


raj.khem created this revision.
Herald added subscribers: openmp-commits, guansong, kristof.beyls.
Herald added a reviewer: jdoerfert.
Herald added a project: OpenMP.

-march in clang when set to armv7ve emits __ARM_ARCH_7VE__ internal
define and not __ARM_ARCH_7A__, hence the condition fails and openmp can
not be compiled, this makes sure that __ARM_ARCH_7VE__ is taken into
consideration as KMP_ARCH_ARMV7 as well


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68543

Files:
  openmp/runtime/src/kmp_platform.h


Index: openmp/runtime/src/kmp_platform.h
===================================================================
--- openmp/runtime/src/kmp_platform.h
+++ openmp/runtime/src/kmp_platform.h
@@ -139,7 +139,7 @@
 #endif
 
 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7R__) ||                     \
-    defined(__ARM_ARCH_7A__)
+    defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7VE__)
 #define KMP_ARCH_ARMV7 1
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68543.223386.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20191005/f014c52a/attachment.bin>


More information about the Openmp-commits mailing list