[PATCH] D96498: Fix exegesis build on aarch64-windows-msvc host
Maxim Kuvyrkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 06:14:12 PST 2021
maxim-kuvyrkov created this revision.
maxim-kuvyrkov added a reviewer: courbet.
Herald added subscribers: danielkiss, mstojanovic, pengfei, kristof.beyls.
maxim-kuvyrkov requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Include x86 intrinsics only when compiling for x86_64
or i386. _MSC_VER no longer implies x86.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96498
Files:
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
Index: llvm/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -26,7 +26,7 @@
#include <memory>
#include <string>
#include <vector>
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && (__i386__ || __x86_64__)
#include <immintrin.h>
#include <intrin.h>
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96498.322985.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/ac449539/attachment.bin>
More information about the llvm-commits
mailing list