[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 10:08:33 PST 2021


maxim-kuvyrkov updated this revision to Diff 323066.
maxim-kuvyrkov added a comment.

Updated patch to use canonical MSVC syntax


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96498/new/

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) && (defined(_M_IX86) || defined(_M_X64))
 #include <immintrin.h>
 #include <intrin.h>
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96498.323066.patch
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/5d29cb56/attachment.bin>


More information about the llvm-commits mailing list