[PATCH] D38782: [X86] Correct type for argument to clflushopt intrinsic.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 09:06:23 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL315470: [X86] Correct type for argument to clflushopt intrinsic. (authored by ctopper).

Repository:
  rL LLVM

https://reviews.llvm.org/D38782

Files:
  cfe/trunk/include/clang/Basic/BuiltinsX86.def
  cfe/trunk/lib/Headers/clflushoptintrin.h


Index: cfe/trunk/lib/Headers/clflushoptintrin.h
===================================================================
--- cfe/trunk/lib/Headers/clflushoptintrin.h
+++ cfe/trunk/lib/Headers/clflushoptintrin.h
@@ -32,7 +32,7 @@
 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__,  __target__("clflushopt")))
 
 static __inline__ void __DEFAULT_FN_ATTRS
-_mm_clflushopt(char * __m) {
+_mm_clflushopt(void const * __m) {
   __builtin_ia32_clflushopt(__m);
 }
 
Index: cfe/trunk/include/clang/Basic/BuiltinsX86.def
===================================================================
--- cfe/trunk/include/clang/Basic/BuiltinsX86.def
+++ cfe/trunk/include/clang/Basic/BuiltinsX86.def
@@ -639,7 +639,7 @@
 TARGET_BUILTIN(__builtin_ia32_xsaves, "vv*ULLi", "", "xsaves")
 
 //CLFLUSHOPT
-TARGET_BUILTIN(__builtin_ia32_clflushopt, "vc*", "", "clflushopt")
+TARGET_BUILTIN(__builtin_ia32_clflushopt, "vvC*", "", "clflushopt")
 
 // ADX
 TARGET_BUILTIN(__builtin_ia32_addcarryx_u32, "UcUcUiUiUi*", "", "adx")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38782.118630.patch
Type: text/x-patch
Size: 1018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/eac6d46b/attachment.bin>


More information about the llvm-commits mailing list