[llvm] [Exegesis][AArch64] Use more generic cycles counter (PR #133376)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 00:46:11 PDT 2025


r-belenov wrote:

Mapping of "CYCLES" to PERF_COUNT_HW_CPU_CYCLES in libpfm4 is done by generic code in pfmlib_parse_event() - https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree/lib/pfmlib_common.c#l1876

Note that most architectures supported by llvm-exegesis use "CYCLES" currently - see https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/RISCV/RISCVPfmCounters.td , https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/Mips/MipsPfmCounters.td , https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/PowerPC/PPCPfmCounters.td


https://github.com/llvm/llvm-project/pull/133376


More information about the llvm-commits mailing list