[PATCH] D83553: [PATCH 3/4][Sema][AArch64] Add codegen for arm_sve_vector_bits attribute

Sander de Smalen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 14:16:59 PDT 2020


sdesmalen added a comment.

In D83553#2148429 <https://reviews.llvm.org/D83553#2148429>, @efriedma wrote:

> > If you mean alloca's for single vectors
>
> I was really referring to the IR values themselves, not the memory representation.  Since the width of the vectors is known, you could emit IR without any mention of scalable types at all (assuming the backend was extended to handle the intrinsics).


That's right, the reason is because codegen of the intrinsics currently only works on scalable types. By casting the pointer to a vscale-pointer, all IR values are always scalable so we don't need to worry about doing things like reinterpet_cast from a scalable to fixed-width vector, or vice versa.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83553/new/

https://reviews.llvm.org/D83553





More information about the cfe-commits mailing list