[AArch64] Lower READCYCLECOUNTER using MRS PMCCTNR_EL0.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 1 Sep 2015 16:23:45 +0000 (16:23 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 1 Sep 2015 16:23:45 +0000 (16:23 +0000)
commit37d12daa3a8046362cb044d878b65c4b3d39d9ae
tree258ec787665b44be4a771401ad3ad7aa4a64ed38
parent919f1f47e4211b21877d74b0543ec53bf4a165c1
[AArch64] Lower READCYCLECOUNTER using MRS PMCCTNR_EL0.

This matches the ARM behavior. In both cases, the register is part
of the optional Performance Monitors extension, so, add the feature,
and enable it for the A-class processors we support.

Differential Revision: http://reviews.llvm.org/D12425

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64.td
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64InstrInfo.td
lib/Target/AArch64/AArch64Subtarget.cpp
lib/Target/AArch64/AArch64Subtarget.h
test/CodeGen/AArch64/readcyclecounter.ll [new file with mode: 0644]