[PowerPC] Implement XL compact math builtins
authorLei Huang <lei@ca.ibm.com>
Tue, 13 Jul 2021 19:32:36 +0000 (14:32 -0500)
committerLei Huang <lei@ca.ibm.com>
Fri, 16 Jul 2021 18:21:13 +0000 (13:21 -0500)
commitc8937b6cb9751807de1e69f0f0f70a9a58f8f5dc
tree5044051e710bd40174fc1ee72f4ad2141596cadf
parentb910a109f87014bfa469cf14ddcce4622bcfb552
[PowerPC] Implement XL compact math builtins

Implement a subset of builtins required for compatiblilty with AIX XL compiler.

Reviewed By: nemanjai

Differential Revision: https://reviews.llvm.org/D105930
13 files changed:
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Basic/Targets/PPC.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-error.c
clang/test/CodeGen/builtins-ppc-xlcompat-math.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c
clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-math.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9-64bit.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9.ll [new file with mode: 0644]