[PowerPC] Add PowerPC "__stbcx" builtin and intrinsic for XL compatibility
authorVictor Huang <wei.huang@ibm.com>
Thu, 22 Jul 2021 15:05:30 +0000 (10:05 -0500)
committerVictor Huang <wei.huang@ibm.com>
Thu, 22 Jul 2021 15:48:46 +0000 (10:48 -0500)
commit26ea4a4432431ce581e46746fa93981ad7f891d0
tree55f400a2cbef1cced4b58effc1e6b7be288f83f9
parentb510e0127da38d47b9224b082842e827c04947a8
[PowerPC] Add PowerPC "__stbcx" builtin and intrinsic for XL compatibility

This patch is in a series of patches to provide builtins for compatibility
with the XL compiler. This patch adds the builtin and intrinsic for "__stbcx".

Reviewed By: nemanjai, #powerpc

Differential revision: https://reviews.llvm.org/D106484
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Basic/Targets/PPC.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-pwr8.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond.ll