aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorLucas Prates <lucas.prates@arm.com>2020-02-18 12:55:52 +0000
committerLucas Prates <lucas.prates@arm.com>2020-03-19 11:52:41 +0000
commit62ab15ffa3f910c36758e99324deac12ee006c90 (patch)
treefc69947266db3dcb7c28063b2e64c51ac68f98c0 /clang/lib/CodeGen/CodeGenFunction.h
parent7ce7f789630ffad8a1f23f14843de42964fe065f (diff)
downloadllvm-62ab15ffa3f910c36758e99324deac12ee006c90.zip
llvm-62ab15ffa3f910c36758e99324deac12ee006c90.tar.gz
llvm-62ab15ffa3f910c36758e99324deac12ee006c90.tar.bz2
[ARM] Setting missing isLaneQ attribute on Neon Intrisics definitions
Summary: Some of the `*_laneq` intrinsics defined in arm_neon.td were missing the setting of the `isLaneQ` attribute. This patch sets the attribute on the related definitions, as they will be required to properly perform range checks on their lane arguments. Reviewers: jmolloy, t.p.northover, rsmith, olista01, dnsampaio Reviewed By: dnsampaio Subscribers: dnsampaio, kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74616
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 440b088..0128a07 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -3894,6 +3894,8 @@ public:
SmallVectorImpl<llvm::Value*> &O,
const char *name,
unsigned shift = 0, bool rightshift = false);
+ llvm::Value *EmitNeonSplat(llvm::Value *V, llvm::Constant *Idx,
+ const llvm::ElementCount &Count);
llvm::Value *EmitNeonSplat(llvm::Value *V, llvm::Constant *Idx);
llvm::Value *EmitNeonShiftVector(llvm::Value *V, llvm::Type *Ty,
bool negateForRightShift);