aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/NeonEmitter.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-07 22:39:24 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-07 22:39:24 +0000
commit2196caab823d6de2a7713b3e9dbc48b01cba25c8 (patch)
tree55f08f5aacfb06eaf6bdf5b08a7caf9a5b124dfd /utils/TableGen/NeonEmitter.cpp
parent3467cd0d03243164a4dbe44f773701a3e1bccaba (diff)
Add an operator for vdup_lane so it can be implemented without a clang builtin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/NeonEmitter.cpp')
-rw-r--r--utils/TableGen/NeonEmitter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index d3a068091c..9b38b5eefa 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -680,6 +680,9 @@ static std::string GenOpString(OpKind op, const std::string &proto,
case OpDup:
s += Duplicate(nElts, typestr, "__a") + ";";
break;
+ case OpDupLane:
+ s += SplatLane(nElts, "__a", "__b") + ";";
+ break;
case OpSelect:
// ((0 & 1) | (~0 & 2))
s += "(" + ts + ")";