[PowerPC][Builtins] Added a number of builtins for compatibility with XL.
authorStefan Pintilie <stefanp@ca.ibm.com>
Wed, 16 Jun 2021 13:36:25 +0000 (08:36 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Tue, 20 Jul 2021 13:57:55 +0000 (08:57 -0500)
commit02cd937945f8f044aa52b7967531be2b77b27431
treeb325263da59f9498e75816464100fd406dd04599
parent3d25fa21d0c77894e5d297073e61a8e6a20be6e5
[PowerPC][Builtins] Added a number of builtins for compatibility with XL.

Added a number of different builtins that exist in the XL compiler. Most of
these builtins already exist in clang under a different name.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D104386
12 files changed:
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Basic/Targets/PPC.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-cipher.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-cmplx.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-darn.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-error.c
clang/test/CodeGen/builtins-ppc-xlcompat-expect.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-macros.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-popcnt.c
clang/test/CodeGen/builtins-ppc-xlcompat-rotate.c