[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 05:24:51 PST 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 *)">;
----------------
phoebewang wrote:
Only `_m_prefetchw` requires "prfchw". `_m_prefetch` can be put together with `_mm_prefetch`.
https://github.com/llvm/llvm-project/pull/115099
More information about the cfe-commits
mailing list