aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/NeonEmitter.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-07 22:02:48 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-07 22:02:48 +0000
commit3467cd0d03243164a4dbe44f773701a3e1bccaba (patch)
tree31a141856b4ec97ae4b5d7d0ca38932bd27a33b8 /utils/TableGen/NeonEmitter.cpp
parentd967cd096ae87accf2f1df86b2dfac969d9c9da2 (diff)
Add an operator for vmull_lane so it can be implemented without a clang builtin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/NeonEmitter.cpp')
-rw-r--r--utils/TableGen/NeonEmitter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index 7fdc1cacd6..d3a068091c 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -601,6 +601,11 @@ static std::string GenOpString(OpKind op, const std::string &proto,
Extend(proto, typestr,
Duplicate(nElts << (int)quad, typestr, "__b")) + ";";
break;
+ case OpMullLane:
+ s += Extend(proto, typestr, "__a") + " * " +
+ Extend(proto, typestr,
+ SplatLane(nElts, "__b", "__c")) + ";";
+ break;
case OpMull:
s += Extend(proto, typestr, "__a") + " * " +
Extend(proto, typestr, "__b") + ";";