[PowerPC] Semachecking for XL compat builtin icbt
authorQuinn Pham <quinn.pham@ibm.com>
Tue, 20 Jul 2021 14:42:14 +0000 (09:42 -0500)
committerKamau Bridgeman <kamau.bridgeman@ibm.com>
Tue, 20 Jul 2021 16:05:22 +0000 (11:05 -0500)
commit59d2ba2a3de976798a82cfd9d66e426907480ecf
treeb824356dc3ea6c4c6d21832e03e0d4fc4189cbdc
parent98d4adc2d1c12d034616557f3ab55ce88ecf569b
[PowerPC] Semachecking for XL compat builtin icbt

This patch is in a series of patches to provide builtins for compatibility with the XL compiler.
This patch adds semachecking for an already implemented builtin, `__icbt`. `__icbt` is only
valid for Power8 and up.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D105834
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-pwr8.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-sync.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-sync-32.ll
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-sync-64.ll