diff options
author | Adam Nemet <anemet@apple.com> | 2016-01-21 18:28:36 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-01-21 18:28:36 +0000 |
commit | af761104babba61fb7dc07620a9e89f41f5aabf7 (patch) | |
tree | de81c50196ebed654842beed6c2424f5984a05f5 /llvm/lib/Analysis/TargetTransformInfo.cpp | |
parent | fcdb19904c5da82ee72ce2dc76510e936fcc0bf3 (diff) | |
download | bcm5719-llvm-af761104babba61fb7dc07620a9e89f41f5aabf7.tar.gz bcm5719-llvm-af761104babba61fb7dc07620a9e89f41f5aabf7.zip |
[TTI] Add getCacheLineSize
Summary:
And use it in PPCLoopDataPrefetch.cpp.
@hfinkel, please let me know if your preference would be to preserve the
ppc-loop-prefetch-cache-line option in order to be able to override the
value of TTI::getCacheLineSize for PPC.
Reviewers: hfinkel
Subscribers: hulx2000, mcrosier, mssimpso, hfinkel, llvm-commits
Differential Revision: http://reviews.llvm.org/D16306
llvm-svn: 258419
Diffstat (limited to 'llvm/lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetTransformInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp index 9c1d3fd4f58..ed7005e5e52 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -215,6 +215,10 @@ unsigned TargetTransformInfo::getRegisterBitWidth(bool Vector) const { return TTIImpl->getRegisterBitWidth(Vector); } +unsigned TargetTransformInfo::getCacheLineSize() const { + return TTIImpl->getCacheLineSize(); +} + unsigned TargetTransformInfo::getMaxInterleaveFactor(unsigned VF) const { return TTIImpl->getMaxInterleaveFactor(VF); } |