diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-02-21 11:57:24 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-02-21 11:57:24 +0000 |
| commit | e4931de986eea8b0eba90b2ef68942f7fbedb596 (patch) | |
| tree | 20c0884c7ccf3525e8b501e7a56c6db109d4349b /lib/CodeGen/CodeGenFunction.h | |
| parent | a67b8f1151aa6e3c60bc99314f6eae4547b7e8f0 (diff) | |
| download | clang-e4931de986eea8b0eba90b2ef68942f7fbedb596.tar.gz clang-e4931de986eea8b0eba90b2ef68942f7fbedb596.tar.bz2 clang-e4931de986eea8b0eba90b2ef68942f7fbedb596.tar.xz | |
ARM & AArch64: use table for EmitCommonNeonBuiltinExpr
This extends the intrinsic lookup table format slightly, and adds
entries for use the shared ARM/AArch64 definitions. The benefit is
currently smaller than for the SISD intrinsics (there's more custom
code implementing this set), but a few lines are saved and there's
scope for future expansion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 46eea8f960..3f652082fe 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -2179,11 +2179,18 @@ public: llvm::Value *EmitAArch64CompareBuiltinExpr(llvm::Value *Op, llvm::Type *Ty); llvm::Value *EmitAArch64BuiltinExpr(unsigned BuiltinID, const CallExpr *E); llvm::Value *EmitARMBuiltinExpr(unsigned BuiltinID, const CallExpr *E); - llvm::Value *EmitCommonNeonBuiltinExpr(unsigned BuiltinID, const CallExpr *E, + + llvm::Value *EmitCommonNeonBuiltinExpr(unsigned BuiltinID, + unsigned LLVMIntrinsic, + unsigned AltLLVMIntrinsic, + const char *NameHint, + unsigned Modifier, + const CallExpr *E, SmallVectorImpl<llvm::Value *> &Ops, llvm::Value *Align = 0); - llvm::Function *LookupNeonIntrinsic(unsigned IntrinsicID, unsigned Modifier, - llvm::Type *ArgTy, const CallExpr *E); + llvm::Function *LookupNeonLLVMIntrinsic(unsigned IntrinsicID, + unsigned Modifier, llvm::Type *ArgTy, + const CallExpr *E); llvm::Value *EmitNeonCall(llvm::Function *F, SmallVectorImpl<llvm::Value*> &O, const char *name, |
