[PATCH] D48638: [Sparc] Add support for the cycle counter available in GR740

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 05:31:59 PDT 2018


dcederman created this revision.
dcederman added reviewers: jyknight, venkatra.
Herald added subscribers: llvm-commits, jrtc27, fedor.sergeev.

The GR740 provides an up cycle counter in the registers ASR22 and ASR23. As these registers can not be read together atomically we only use the value of ASR23 for llvm.readcyclecounter(). The ASR23 register holds the 32 LSBs of the up-counter.


Repository:
  rL LLVM

https://reviews.llvm.org/D48638

Files:
  lib/Target/Sparc/LeonFeatures.td
  lib/Target/Sparc/Sparc.td
  lib/Target/Sparc/SparcISelLowering.cpp
  lib/Target/Sparc/SparcSubtarget.cpp
  lib/Target/Sparc/SparcSubtarget.h
  test/CodeGen/SPARC/readcycle.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48638.153053.patch
Type: text/x-patch
Size: 3845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/ea98e8aa/attachment.bin>


More information about the llvm-commits mailing list