[all-commits] [llvm/llvm-project] 27d83e: [AIX] diagnose invalid feature strings on the targ...

Wael Yehia via All-commits all-commits at lists.llvm.org
Thu Jul 9 16:30:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27d83e2795e7ae9f98f695fe5113493a83f46b28
      https://github.com/llvm/llvm-project/commit/27d83e2795e7ae9f98f695fe5113493a83f46b28
  Author: Wael Yehia <wmyehia2001 at yahoo.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/Basic/Targets/PPC.h
    M clang/test/Sema/attr-target.c
    M llvm/include/llvm/TargetParser/PPCTargetParser.h
    M llvm/include/llvm/TargetParser/TargetParser.h
    M llvm/lib/TargetParser/PPCTargetParser.cpp

  Log Message:
  -----------
  [AIX] diagnose invalid feature strings on the target attribute (#208059)

Currently, Sema calls `getTargetInfo().isValidFeatureName(S)` to
validate string inputs on the `target` attribute. `PPCTargetInfo`
doesn't override the function and the base class implementation returns
true unconditionally. This results in the FE accepting invalid feature
strings on `target` attribute, and generates invalid target-feature
values in the IR.

Co-authored-by: Wael Yehia <wyehia at ca.ibm.com>



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