diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2015-08-10 14:50:54 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2015-08-10 14:50:54 +0000 |
commit | 61bdc51339875e7674723191b3822784bcbf79b5 (patch) | |
tree | 35a7911498a9af66211c57c14890e67f67a6946e /llvm/lib/Analysis/TargetTransformInfo.cpp | |
parent | e29ab2bfabd12d06214a4a516ea9a2d44b5f1a0b (diff) | |
download | bcm5719-llvm-61bdc51339875e7674723191b3822784bcbf79b5.tar.gz bcm5719-llvm-61bdc51339875e7674723191b3822784bcbf79b5.zip |
[TTI] Add a hook for specifying per-target defaults for Interleaved Accesses
Summary:
This adds a hook to TTI which enables us to selectively turn on by default
interleaved access vectorization for targets on which we have have performed
the required benchmarking.
Reviewers: rengolin
Subscribers: rengolin, llvm-commits
Differential Revision: http://reviews.llvm.org/D11901
llvm-svn: 244449
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 91413687eb3..f2984ef1ae2 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -166,6 +166,10 @@ bool TargetTransformInfo::enableAggressiveInterleaving(bool LoopHasReductions) c return TTIImpl->enableAggressiveInterleaving(LoopHasReductions); } +bool TargetTransformInfo::enableInterleavedAccessVectorization() const { + return TTIImpl->enableInterleavedAccessVectorization(); +} + TargetTransformInfo::PopcntSupportKind TargetTransformInfo::getPopcntSupport(unsigned IntTyWidthInBit) const { return TTIImpl->getPopcntSupport(IntTyWidthInBit); |