[all-commits] [llvm/llvm-project] af1e2a: [Mips] Support llvm.readcyclecounter intrinsic (#1...

yingopq via All-commits all-commits at lists.llvm.org
Mon Feb 17 19:57:44 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af1e2a374e3845454914348793341f4f931e805a
      https://github.com/llvm/llvm-project/commit/af1e2a374e3845454914348793341f4f931e805a
  Author: yingopq <115543042+yingopq at users.noreply.github.com>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    M llvm/lib/Target/Mips/MipsISelLowering.h
    A llvm/test/CodeGen/Mips/readcyclecounter.ll

  Log Message:
  -----------
  [Mips] Support llvm.readcyclecounter intrinsic (#127553)

The llvm.readcyclecounter intrinsic can be implemented via the `rdhwr
$2, $hwr_cc` instruction.
$hwr_cc: High-resolution cycle counter. This register provides read
access to the coprocessor 0 Count Register.

Fix #106318.



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