[all-commits] [llvm/llvm-project] 86ad98: [clang][Driver][RISCV] Rename `getRISCFeaturesFrom...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Wed Oct 8 14:10:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86ad98c37aee575bc21460a367f3e9b824f289cb
      https://github.com/llvm/llvm-project/commit/86ad98c37aee575bc21460a367f3e9b824f289cb
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/RISCV.cpp

  Log Message:
  -----------
  [clang][Driver][RISCV] Rename `getRISCFeaturesFromMcpu`. NFCI (#162545)

This function, which has a typo in the name btw, is no longer doing what
it was created to do: instead of deducting non-extension target features
from `-mcpu` -- a task that was (more or less) subsumed by
`riscv::getRISCVTargetFeatures` -- it is only checking if the `-mcpu`
value is valid or not now. Therefore, this patch renames it into
`isValidRISCVCPU` and exits early if it's not.

NFCI.



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