diff options
author | Lucas Prates <lucas.prates@arm.com> | 2020-02-18 12:55:52 +0000 |
---|---|---|
committer | Lucas Prates <lucas.prates@arm.com> | 2020-03-19 11:52:41 +0000 |
commit | 62ab15ffa3f910c36758e99324deac12ee006c90 (patch) | |
tree | fc69947266db3dcb7c28063b2e64c51ac68f98c0 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7ce7f789630ffad8a1f23f14843de42964fe065f (diff) | |
download | llvm-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.h | 2 |
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); |