Add a comment and FIXME based on the commit message that made the
authorEric Christopher <echristo@gmail.com>
Fri, 19 Jun 2015 18:09:33 +0000 (18:09 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 19 Jun 2015 18:09:33 +0000 (18:09 +0000)
intrinsic _mm_prefetch into a builtin rather than by textual inclusion
via the intrinsic headers.

llvm-svn: 240152

clang/include/clang/Basic/BuiltinsX86.def

index 1a597b5..00c1340 100644 (file)
@@ -59,6 +59,9 @@ BUILTIN(__builtin_ia32_pswapdsi, "V2iV2i", "nc")
 // All MMX instructions will be generated via builtins. Any MMX vector
 // types (<1 x i64>, <2 x i32>, etc.) that aren't used by these builtins will be
 // expanded by the back-end.
+// FIXME: _mm_prefetch must be a built-in because it takes a compile-time constant
+// argument and our prior approach of using a #define to the current built-in
+// doesn't work in the presence of re-declaration of _mm_prefetch for windows.
 BUILTIN(_mm_prefetch, "vcC*i", "nc")
 BUILTIN(__builtin_ia32_emms, "v", "")
 BUILTIN(__builtin_ia32_paddb, "V8cV8cV8c", "")