diff options
author | David Sherwood <david.sherwood@arm.com> | 2020-05-05 13:26:55 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2020-05-15 08:44:59 +0100 |
commit | 525b8e6dcbbd6e40fd9d91e4ed349a93381c1ccc (patch) | |
tree | e7def423a14b4cff37a5a21ed2e4aa875a3bcf26 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 85bb9b71b7d42c4e6fff95b715b2eefbd8e4355e (diff) | |
download | llvm-525b8e6dcbbd6e40fd9d91e4ed349a93381c1ccc.zip llvm-525b8e6dcbbd6e40fd9d91e4ed349a93381c1ccc.tar.gz llvm-525b8e6dcbbd6e40fd9d91e4ed349a93381c1ccc.tar.bz2 |
[SVE] Fix wrong usage of getNumElements() in matchIntrinsicType
I have changed the ScalableVecArgument case in matchIntrinsicType
to create a new FixedVectorType. This means that the next case we
hit (Vector) will not assert when calling getNumElements(), since
we know that it's always a FixedVectorType. This is a temporary
measure for now, and it will be fixed properly in another patch
that refactors this code.
The changes are covered by this existing test:
CodeGen/AArch64/sve-intrinsics-fp-converts.ll
In addition, I have added a new test to ensure that we correctly
reject SVE intrinsics when called with fixed length vector types.
Differential Revision: https://reviews.llvm.org/D79416
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions