[all-commits] [llvm/llvm-project] d4a259: Implement a subset of builtin_cpu_supports() featu...

zhijian lin via All-commits all-commits at lists.llvm.org
Thu May 2 11:59:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4a25976df791aa2ba12e2dde69e644e0d9fe152
      https://github.com/llvm/llvm-project/commit/d4a25976df791aa2ba12e2dde69e644e0d9fe152
  Author: zhijian lin <zhijian at ca.ibm.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/Basic/Targets/PPC.h
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/aix-builtin-cpu-is.c
    A clang/test/CodeGen/aix-builtin-cpu-supports.c
    A clang/test/CodeGen/multi-aix-builtin-cpu-supports.c
    M clang/test/Sema/aix-builtin-cpu-unsupports.c
    A clang/test/Sema/builtin-cpu-unsupports-AIX-Os.c
    M llvm/include/llvm/TargetParser/PPCTargetParser.def

  Log Message:
  -----------
  Implement a subset of builtin_cpu_supports() features (#82809)

The PR implements a subset of features of function
__builtin_cpu_support() for AIX OS based on the information which AIX
kernel runtime variable `_system_configuration` and function call `getsystemcfg()` of
/usr/include/sys/systemcfg.h  in AIX OS can provide.

Following subset of features are supported in the PR

"arch_3_00", "arch_3_1","booke","cellbe","darn","dfp","dscr" ,"ebb","efpsingle","efpdouble","fpu","htm","isel",
"mma","mmu","pa6t","power4","power5","power5+","power6x","ppc32","ppc601","ppc64","ppcle","smt",
"spe","tar","true_le","ucache","vsx"



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list