[PATCH] D106790: prfchwintrin.h: Make _m_prefetchw take a pointer to volatile (PR49124)
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 28 02:05:22 PDT 2021
hans added a comment.
> Sure, they won't be included together, but will GCC users get warnings from passing non-volatile pointers to `_mm_prefetchw`? If we change these qualifiers to match MSVC, will GCC/Clang users be able to observe any change in behavior?
I don't think that should cause any problems. Passing a less qualified pointer to a more cv-qualified parameter should be fine, e.g.
void f(volatile void* p);
void g(void *p) {
f(p);
}
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