summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAmaury de la Vieuville <amaury.dlv@gmail.com>2013-10-04 13:13:15 +0000
committerAmaury de la Vieuville <amaury.dlv@gmail.com>2013-10-04 13:13:15 +0000
commit7f0ff70c391afeb7811b7ddcb06bfbbd5c6cf8f9 (patch)
tree2b08f26dbc749b498be5b322a39283c807ca545c /lib/CodeGen/CodeGenFunction.h
parentc0e83640ae656c76170b1389a5d72f440b1a7749 (diff)
downloadclang-7f0ff70c391afeb7811b7ddcb06bfbbd5c6cf8f9.tar.gz
clang-7f0ff70c391afeb7811b7ddcb06bfbbd5c6cf8f9.tar.bz2
clang-7f0ff70c391afeb7811b7ddcb06bfbbd5c6cf8f9.tar.xz
Do not emit undefined lsrh/ashr for NEON shifts
These IR instructions are undefined when the amount is equal to operand size, but NEON right shifts support such shifts. Work around that by emitting a different IR in these cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 8c506ac860..19c64b71a4 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -2155,6 +2155,8 @@ public:
llvm::Value *EmitNeonSplat(llvm::Value *V, llvm::Constant *Idx);
llvm::Value *EmitNeonShiftVector(llvm::Value *V, llvm::Type *Ty,
bool negateForRightShift);
+ llvm::Value *EmitNeonRShiftImm(llvm::Value *Vec, llvm::Value *Amt,
+ llvm::Type *Ty, bool usgn, const char *name);
llvm::Value *BuildVector(ArrayRef<llvm::Value*> Ops);
llvm::Value *EmitX86BuiltinExpr(unsigned BuiltinID, const CallExpr *E);