ARM: implement @llvm.readcyclecounter intrinsic
authorTim Northover <t.p.northover@gmail.com>
Thu, 23 May 2013 19:11:20 +0000 (19:11 +0000)
committerTim Northover <t.p.northover@gmail.com>
Thu, 23 May 2013 19:11:20 +0000 (19:11 +0000)
commit5a02fc4b5fa0eba4d0875db710400a74ada3b15f
tree7539b039c2bbfb51e11f188aecf72fd6c0a71b57
parentb94a353242b26af5c0969926a6b84664e342b586
ARM: implement @llvm.readcyclecounter intrinsic

This implements the @llvm.readcyclecounter intrinsic as the specific
MRC instruction specified in the ARM manuals for CPUs with the Power
Management extensions.

Older CPUs had slightly different methods which may also have to be
implemented eventually, but this should cover all v7 cases.

rdar://problem/13939186

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182603 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/readcyclecounter.ll [new file with mode: 0644]