[all-commits] [llvm/llvm-project] bf79d4: [Reland] [PowerPC] frontend get target feature fro...

zhijian lin via All-commits all-commits at lists.llvm.org
Thu Jun 19 06:22:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf79d4819edeb54c6cf528db63676110992908a8
      https://github.com/llvm/llvm-project/commit/bf79d4819edeb54c6cf528db63676110992908a8
  Author: zhijian lin <zhijian at ca.ibm.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp
    M clang/test/Driver/aix-shared-lib-tls-model-opt.c
    M clang/test/Driver/aix-small-local-exec-dynamic-tls.c
    M clang/test/Driver/ppc-crbits.cpp
    M clang/test/Driver/ppc-isa-features.cpp
    M llvm/include/llvm/TargetParser/CMakeLists.txt
    M llvm/include/llvm/TargetParser/PPCTargetParser.h
    M llvm/include/llvm/TargetParser/TargetParser.h
    M llvm/lib/Target/PowerPC/PPC.td
    M llvm/lib/TargetParser/PPCTargetParser.cpp
    M llvm/lib/TargetParser/TargetParser.cpp
    M llvm/utils/TableGen/Basic/CMakeLists.txt
    A llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp
    A llvm/utils/TableGen/Basic/TargetFeaturesEmitter.h
    M llvm/utils/TableGen/SubtargetEmitter.cpp

  Log Message:
  -----------
  [Reland] [PowerPC] frontend get target feature from backend with cpu name (#144594)

1. The PR proceeds with a backend target hook to allow front-ends to
determine what target features are available in a compilation based on
the CPU name.
2. Fix a backend target feature bug that supports HTM for
Power8/9/10/11. However, HTM is only supported on Power8/9 according to
the ISA.
3. All target features that are hardcoded in PPC.cpp can be retrieved
from the backend target feature. I have double-checked that the
hardcoded logic for inferring target features from the CPU in the
frontend(PPC.cpp) is the same as in PPC.td.

The reland patch addressed the comment
https://github.com/llvm/llvm-project/pull/137670#discussion_r2143541120



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