summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2018-11-13 16:26:34 +0000
committerFlorian Hahn <florian.hahn@arm.com>2018-11-13 16:26:34 +0000
commit86ed347bcd2c4ef8c12a38473bfc14d7db70f3db (patch)
tree965494788b33e16446e5c76be69b70c363e15cbf /llvm/lib/Analysis/VectorUtils.cpp
parenta4dc7feeea371166cc24dc617da59b2302dd2410 (diff)
downloadbcm5719-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.cpp10
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");
}
OpenPOWER on IntegriCloud