[all-commits] [llvm/llvm-project] 651b0e: [PowerPC] Add target feature requirement to builtins

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Mon May 8 02:54:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 651b0e2e7afca926c3d4f8d7f988db40b9832676
      https://github.com/llvm/llvm-project/commit/651b0e2e7afca926c3d4f8d7f988db40b9832676
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/PowerPC/builtins-ppc-altivec.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-fma.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-fpconstrained.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-htm.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-p7-disabled.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-pwr10-64bit.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-vsx.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr8.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9-64bit.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-pwr9.c
    M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-test.c
    A clang/test/CodeGen/PowerPC/ppc-p10-mma-builtin-err.c
    A clang/test/CodeGen/PowerPC/ppc-p10-paired-vec-memops-builtin-err.c
    R clang/test/Sema/ppc-mma-builtins.c
    R clang/test/Sema/ppc-paired-vector-builtins.c

  Log Message:
  -----------
  [PowerPC] Add target feature requirement to builtins

Clang has mechanism to specify required target features of a built-in
function. This patch adds such definitions to Altivec, VSX, HTM,
PairedVec and MMA builtins.

This will help frontend to detect incompatible target features of
bulitin when using target attribute syntax.

Reviewed By: nemanjai, kamaub

Differential Revision: https://reviews.llvm.org/D143467




More information about the All-commits mailing list