Add an operator for vdup_lane so it can be implemented without a clang builtin.
llvm-svn: 121190
diff --git a/llvm/utils/TableGen/NeonEmitter.cpp b/llvm/utils/TableGen/NeonEmitter.cpp
index d3a0680..9b38b5e 100644
--- a/llvm/utils/TableGen/NeonEmitter.cpp
+++ b/llvm/utils/TableGen/NeonEmitter.cpp
@@ -680,6 +680,9 @@
case OpDup:
s += Duplicate(nElts, typestr, "__a") + ";";
break;
+ case OpDupLane:
+ s += SplatLane(nElts, "__a", "__b") + ";";
+ break;
case OpSelect:
// ((0 & 1) | (~0 & 2))
s += "(" + ts + ")";