[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 16:27:08 PDT 2025


================
@@ -138,6 +142,12 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<256>], Features = "avx" in
   }
 }
 
+// PRFCHW
+let Features = "prfchw", Header = "x86intrin.h", Attributes = [NoThrow, Const] in {
+  def _m_prefetch : X86LibBuiltin<"void(void *)">;
----------------
rnk wrote:

PTAL at the new patch: https://github.com/llvm/llvm-project/pull/138360

At least based on the header structure before this, they were both in prftchwintrin.h , so I haven't made this change.

https://github.com/llvm/llvm-project/pull/115099


More information about the cfe-commits mailing list