[PATCH] D143467: [PowerPC] Add target feature requirement to builtins

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 27 01:47:58 PDT 2023


qiucf updated this revision to Diff 508528.
qiucf marked 2 inline comments as done.
qiucf added a comment.

- Require ISA v2.07 for `__builtin_ppc_l[hb]arx` `__builtin_ppc_st[hb]cx`.
- Remove sema checks for target features.
- Refactor a lot of cases since the target feature check happens in codegen phase.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143467/new/

https://reviews.llvm.org/D143467

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Basic/Targets/PPC.cpp
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/CodeGen/PowerPC/builtins-ppc-altivec.c
  clang/test/CodeGen/PowerPC/builtins-ppc-fma.c
  clang/test/CodeGen/PowerPC/builtins-ppc-fpconstrained.c
  clang/test/CodeGen/PowerPC/builtins-ppc-htm.c
  clang/test/CodeGen/PowerPC/builtins-ppc-p7-disabled.c
  clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c
  clang/test/CodeGen/PowerPC/builtins-ppc-pwr10-64bit.c
  clang/test/CodeGen/PowerPC/builtins-ppc-vsx.c
  clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr8.c
  clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9-64bit.c
  clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9.c
  clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-test.c
  clang/test/Sema/ppc-mma-builtins.c
  clang/test/Sema/ppc-paired-vector-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143467.508528.patch
Type: text/x-patch
Size: 139001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230327/5a4f6ac1/attachment-0001.bin>


More information about the cfe-commits mailing list