[all-commits] [llvm/llvm-project] ce6210: [RISCV] Get host CPU name via hwprobe (#142745)

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Thu Jun 12 01:40:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce621041c2f162c50d630810491c2feee8eb6c64
      https://github.com/llvm/llvm-project/commit/ce621041c2f162c50d630810491c2feee8eb6c64
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2025-06-12 (Thu, 12 Jun 2025)

  Changed paths:
    M llvm/include/llvm/TargetParser/RISCVTargetParser.h
    M llvm/lib/TargetParser/Host.cpp
    M llvm/lib/TargetParser/RISCVTargetParser.cpp

  Log Message:
  -----------
  [RISCV] Get host CPU name via hwprobe (#142745)

We can get the `mvendorid/marchid/mimpid` via hwprobe and then we
can compare these IDs with those defined in processors to find the
CPU name.

With this change, `-mcpu/-mtune=native` can set the proper name.



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