[clang] 06411ed - [PowerPC][NFC] Provide legacy names for VSX loads and stores

Nemanja Ivanovic via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 25 04:33:05 PDT 2021


Author: Nemanja Ivanovic
Date: 2021-03-25T06:32:40-05:00
New Revision: 06411edb9fca4a292634511fc7384ffb12651472

URL: https://github.com/llvm/llvm-project/commit/06411edb9fca4a292634511fc7384ffb12651472
DIFF: https://github.com/llvm/llvm-project/commit/06411edb9fca4a292634511fc7384ffb12651472.diff

LOG: [PowerPC][NFC] Provide legacy names for VSX loads and stores

Before we unified the names of the builtins across all the
compilers, there were a number of synonyms between them. There
is code out there that uses XL naming for some of these loads and
stores. This just adds those names.

Added: 
    

Modified: 
    clang/lib/Headers/altivec.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/altivec.h b/clang/lib/Headers/altivec.h
index 56328187fff8..81e4cb686d8d 100644
--- a/clang/lib/Headers/altivec.h
+++ b/clang/lib/Headers/altivec.h
@@ -17144,6 +17144,8 @@ vec_revb(vector unsigned __int128 __a) {
 
 /* vec_xl */
 
+#define vec_xld2 vec_xl
+#define vec_xlw4 vec_xl
 typedef vector signed char unaligned_vec_schar __attribute__((aligned(1)));
 typedef vector unsigned char unaligned_vec_uchar __attribute__((aligned(1)));
 typedef vector signed short unaligned_vec_sshort __attribute__((aligned(1)));
@@ -17362,6 +17364,8 @@ vec_xl_zext(ptr
diff _t __offset, const unsigned long long *__pointer) {
 
 /* vec_xst */
 
+#define vec_xstd2 vec_xst
+#define vec_xstw4 vec_xst
 static inline __ATTRS_o_ai void
 vec_xst(vector signed char __vec, ptr
diff _t __offset, signed char *__ptr) {
   *(unaligned_vec_schar *)(__ptr + __offset) = __vec;


        


More information about the cfe-commits mailing list