[TTI] Add getPrefetchDistance from PPCLoopDataPrefetch, NFC
authorAdam Nemet <anemet@apple.com>
Wed, 27 Jan 2016 22:21:25 +0000 (22:21 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 27 Jan 2016 22:21:25 +0000 (22:21 +0000)
commitdadfbb52f771fc3d3dc9721714598630f5d53146
tree839a9e415e9a8ae166c2969104db4d60925790b9
parent4c9ac7d7df7668773cfe621c3711a8aacbb5760b
[TTI] Add getPrefetchDistance from PPCLoopDataPrefetch, NFC

This patch is part of the work to make PPCLoopDataPrefetch
target-independent
(http://thread.gmane.org/gmane.comp.compilers.llvm.devel/92758).

As it was discussed in the above thread, getPrefetchDistance is
currently using instruction count which may change in the future.

llvm-svn: 258995
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h