diff options
author | Florian Hahn <florian.hahn@arm.com> | 2018-11-13 16:26:34 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2018-11-13 16:26:34 +0000 |
commit | 86ed347bcd2c4ef8c12a38473bfc14d7db70f3db (patch) | |
tree | 965494788b33e16446e5c76be69b70c363e15cbf /llvm/lib/Analysis/VectorUtils.cpp | |
parent | a4dc7feeea371166cc24dc617da59b2302dd2410 (diff) | |
download | bcm5719-llvm-86ed347bcd2c4ef8c12a38473bfc14d7db70f3db.tar.gz bcm5719-llvm-86ed347bcd2c4ef8c12a38473bfc14d7db70f3db.zip |
[VectorUtils] Use namespace for InterleaveGroup template specialization.
llvm-svn: 346759
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r-- | llvm/lib/Analysis/VectorUtils.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp index 9c3bf7df89b..9ebb01684c8 100644 --- a/llvm/lib/Analysis/VectorUtils.cpp +++ b/llvm/lib/Analysis/VectorUtils.cpp @@ -966,6 +966,12 @@ void InterleavedAccessInfo::invalidateGroupsRequiringScalarEpilogue() { RequiresScalarEpilogue = false; } +template <typename InstT> +void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const { + llvm_unreachable("addMetadata can only be used for Instruction"); +} + +namespace llvm { template <> void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const { SmallVector<Value *, 4> VL; @@ -973,8 +979,4 @@ void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const { [](std::pair<int, Instruction *> p) { return p.second; }); propagateMetadata(NewInst, VL); } - -template <typename InstT> -void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const { - llvm_unreachable("addMetadata can only be used for Instruction"); } |