diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2020-03-13 09:13:34 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2020-03-15 13:48:49 +0000 |
commit | 8105935d3aa98089f24b356ae782771d024d9174 (patch) | |
tree | df91cfdcd9d7b0cb3e4d257afa689da187a866bf /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 564180429818dd48f2fab970fdb42d172ebd2a5f (diff) | |
download | llvm-8105935d3aa98089f24b356ae782771d024d9174.zip llvm-8105935d3aa98089f24b356ae782771d024d9174.tar.gz llvm-8105935d3aa98089f24b356ae782771d024d9174.tar.bz2 |
[TypeSize] Allow returning scalable size in implicit conversion to uint64_t
This patch removes compiler runtime assertions that ensure the implicit
conversion are only guaranteed to work for fixed-width vectors.
With the assert it would be impossible to get _anything_ to build until
the
entire codebase has been upgraded, even when the indiscriminate uses of
the size as uint64_t would work fine for both scalable and fixed-width
types.
This issue will need to be addressed differently, with build-time errors
rather than assertion failures, but that effort falls beyond the scope
of this patch.
Returning the scalable size and avoiding the assert in getFixedSize()
is a temporary stop-gap in order to use LLVM for compiling and using
the SVE ACLE intrinsics.
Reviewers: efriedma, huntergr, rovka, ctetreau, rengolin
Reviewed By: efriedma
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D75297
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions