[PATCH] D106790: prfchwintrin.h: Make _m_prefetchw take a pointer to volatile (PR49124)
Pengfei Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 26 20:19:42 PDT 2021
pengfei added inline comments.
================
Comment at: clang/lib/Headers/prfchwintrin.h:54
+#pragma clang diagnostic ignored "-Wcast-qual"
+ __builtin_prefetch ((const void*)__P, 1, 3 /* _MM_HINT_T0 */);
+#pragma clang diagnostic pop
----------------
Can we declare `__builtin_prefetch` to volatile one in Builtins.def:
```
BUILTIN(__builtin_prefetch, "vvCD*.", "nc")
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106790/new/
https://reviews.llvm.org/D106790
More information about the cfe-commits
mailing list