Include XOP headers in clang-cl compatible way. Fix #1382.
PiperOrigin-RevId: 366463649
diff --git a/src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c b/src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c
index fe4d345..dd36ce8 100644
--- a/src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c
+++ b/src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c b/src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c
index 7417f8e..76e6063 100644
--- a/src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c
+++ b/src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c b/src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c
index aa7eca9..33cddcb 100644
--- a/src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c
+++ b/src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c b/src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c
index 1204750..4269c26 100644
--- a/src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c
+++ b/src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c b/src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c
index e58f425..415b366 100644
--- a/src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c
+++ b/src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c b/src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c
index 02bbdf4..aca6372 100644
--- a/src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c
+++ b/src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c b/src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c
index 4adc8c1..e38a8b9 100644
--- a/src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c
+++ b/src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c b/src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c
index 6bb8aaa..aa63645 100644
--- a/src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c
+++ b/src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c b/src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c
index e6faba2..5b614fb 100644
--- a/src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c
+++ b/src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>
diff --git a/src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c b/src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c
index 0253dfa..47102db 100644
--- a/src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c
+++ b/src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c
@@ -9,7 +9,7 @@
#include <assert.h>
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#include <x86intrin.h>
#else
#include <immintrin.h>