diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-12-07 22:39:24 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-12-07 22:39:24 +0000 |
| commit | 361afe4ef281c1ae05312ece6426f5a532438622 (patch) | |
| tree | df9dd9012e23ace72576d1a449bbab671a150b49 /llvm/utils/TableGen/NeonEmitter.cpp | |
| parent | 7f3c0aa96f2d94640e28fdd7d6d233ce5c60ead5 (diff) | |
| download | bcm5719-llvm-361afe4ef281c1ae05312ece6426f5a532438622.tar.gz bcm5719-llvm-361afe4ef281c1ae05312ece6426f5a532438622.zip | |
Add an operator for vdup_lane so it can be implemented without a clang builtin.
llvm-svn: 121190
Diffstat (limited to 'llvm/utils/TableGen/NeonEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/NeonEmitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/NeonEmitter.cpp b/llvm/utils/TableGen/NeonEmitter.cpp index d3a068091ce..9b38b5eefa1 100644 --- a/llvm/utils/TableGen/NeonEmitter.cpp +++ b/llvm/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 + ")"; |

