summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-05-23 06:31:36 +0000
committerCraig Topper <craig.topper@intel.com>2018-05-23 06:31:36 +0000
commit9bed2e6953d6d9a24fa165a41e98b8f13bc1ca5f (patch)
treeb38bee2d3bf9a14270628b33e4c71c8902f34b31 /clang/lib
parent46ef8fffdf6409fb520ce614146b18fd98c0010e (diff)
downloadbcm5719-llvm-9bed2e6953d6d9a24fa165a41e98b8f13bc1ca5f.tar.gz
bcm5719-llvm-9bed2e6953d6d9a24fa165a41e98b8f13bc1ca5f.zip
[X86] Undef the vector reduction helper macros when we're done with them.
These are implementation helper macros we shouldn't expose them to user code if we don't need to. llvm-svn: 333064
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/avx512fintrin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Headers/avx512fintrin.h b/clang/lib/Headers/avx512fintrin.h
index b57792ef875..08e094f65de 100644
--- a/clang/lib/Headers/avx512fintrin.h
+++ b/clang/lib/Headers/avx512fintrin.h
@@ -9713,6 +9713,8 @@ _mm512_mask_reduce_mul_pd(__mmask8 __M, __m512d __W) {
_mm512_mask_reduce_operator_64bit(__W, _mm512_set1_pd(1), *, __M,
f, d, pd);
}
+#undef _mm512_reduce_operator_64bit
+#undef _mm512_mask_reduce_operator_64bit
// Vec512 - Vector with size 512.
// Operator - Can be one of following: +,*,&,|
@@ -9840,6 +9842,8 @@ static __inline__ float __DEFAULT_FN_ATTRS
_mm512_mask_reduce_mul_ps(__mmask16 __M, __m512 __W) {
_mm512_mask_reduce_operator_32bit(__W, _mm512_set1_ps(1), *, __M, f, , ps);
}
+#undef _mm512_reduce_operator_32bit
+#undef _mm512_mask_reduce_operator_32bit
// Used bisection method. At each step, we partition the vector with previous
// step in half, and the operation is performed on its two halves.
@@ -9977,6 +9981,8 @@ _mm512_mask_reduce_min_pd(__mmask8 __M, __m512d __V) {
_mm512_mask_reduce_maxMin_64bit(__V, _mm512_set1_pd(__builtin_inf()),
min_pd, d, f, pd, __M);
}
+#undef _mm512_reduce_maxMin_64bit
+#undef _mm512_mask_reduce_maxMin_64bit
// Vec512 - Vector with size 512.
// IntrinName - Can be one of following: {max|min}_{epi32|epu32|ps} for example:
@@ -10120,6 +10126,8 @@ _mm512_mask_reduce_min_ps(__mmask16 __M, __m512 __V) {
_mm512_mask_reduce_maxMin_32bit(__V, _mm512_set1_ps(__builtin_inff()), min_ps, , f,
ps, __M);
}
+#undef _mm512_reduce_maxMin_32bit
+#undef _mm512_mask_reduce_maxMin_32bit
#undef __DEFAULT_FN_ATTRS
OpenPOWER on IntegriCloud