diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-28 10:32:55 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-28 11:22:20 -0700 |
commit | ef3678cfeea69a882bd58df42b6d21a0860703fd (patch) | |
tree | a6740aceb8b4a403394b9b34b810e0a68a0b9eab /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 1e43cab3c6724b2f9089a0a2b42e8dfdfdd1a299 (diff) | |
download | llvm-ef3678cfeea69a882bd58df42b6d21a0860703fd.zip llvm-ef3678cfeea69a882bd58df42b6d21a0860703fd.tar.gz llvm-ef3678cfeea69a882bd58df42b6d21a0860703fd.tar.bz2 |
[SVE] Update EmitSVEPredicateCast to take a ScalableVectorType
Summary:
Removes usage of VectorType::getNumElements identified by test located
at CodeGen/aarch64-sve-intrinsics/acle_sve_abs.c. Since the type is an
SVE predicate vector, it makes sense to specialize the code for scalable
vectors only.
Reviewers: rengolin, efriedma
Reviewed By: efriedma
Subscribers: tschuett, kristof.beyls, rkruppe, psnobl, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D78958
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 7ea89eb..0cc626b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -3919,7 +3919,8 @@ public: llvm::ScalableVectorType *getSVEType(const SVETypeFlags &TypeFlags); llvm::ScalableVectorType *getSVEPredType(SVETypeFlags TypeFlags); llvm::Value *EmitSVEDupX(llvm::Value *Scalar); - llvm::Value *EmitSVEPredicateCast(llvm::Value *Pred, llvm::VectorType *VTy); + llvm::Value *EmitSVEPredicateCast(llvm::Value *Pred, + llvm::ScalableVectorType *VTy); llvm::Value *EmitSVEGatherLoad(SVETypeFlags TypeFlags, llvm::SmallVectorImpl<llvm::Value *> &Ops, unsigned IntID); |