summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-01-21 18:28:36 +0000
committerAdam Nemet <anemet@apple.com>2016-01-21 18:28:36 +0000
commitaf761104babba61fb7dc07620a9e89f41f5aabf7 (patch)
treede81c50196ebed654842beed6c2424f5984a05f5 /llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
parentfcdb19904c5da82ee72ce2dc76510e936fcc0bf3 (diff)
downloadbcm5719-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/Target/PowerPC/PPCTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
index 04c1b02235f..d216bdfec97 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
@@ -70,6 +70,7 @@ public:
bool enableInterleavedAccessVectorization();
unsigned getNumberOfRegisters(bool Vector);
unsigned getRegisterBitWidth(bool Vector);
+ unsigned getCacheLineSize();
unsigned getMaxInterleaveFactor(unsigned VF);
int getArithmeticInstrCost(
unsigned Opcode, Type *Ty,
OpenPOWER on IntegriCloud