[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility
Mandeep Singh Grang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 15:55:51 PDT 2017
mgrang created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.
This fixes compiling with headers from the Windows SDK for ARM64.
https://reviews.llvm.org/D35862
Files:
lib/Headers/armintr.h
Index: lib/Headers/armintr.h
===================================================================
--- lib/Headers/armintr.h
+++ lib/Headers/armintr.h
@@ -41,5 +41,21 @@
_ARM_BARRIER_OSHST = 0x2
} _ARMINTR_BARRIER_TYPE;
+typedef enum
+{
+ _ARM64_BARRIER_SY = 0xF,
+ _ARM64_BARRIER_ST = 0xE,
+ _ARM64_BARRIER_LD = 0xD,
+ _ARM64_BARRIER_ISH = 0xB,
+ _ARM64_BARRIER_ISHST = 0xA,
+ _ARM64_BARRIER_ISHLD = 0x9,
+ _ARM64_BARRIER_NSH = 0x7,
+ _ARM64_BARRIER_NSHST = 0x6,
+ _ARM64_BARRIER_NSHLD = 0x5,
+ _ARM64_BARRIER_OSH = 0x3,
+ _ARM64_BARRIER_OSHST = 0x2,
+ _ARM64_BARRIER_OSHLD = 0x1
+} _ARM64INTR_BARRIER_TYPE;
+
#endif /* __ARMINTR_H */
#endif /* _MSC_VER */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35862.108178.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170725/3f8c9b99/attachment.bin>
More information about the cfe-commits
mailing list