[PATCH] D76694: [Sema][SVE] Allow casting SVE types to themselves in C

Richard Sandiford via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 24 15:52:13 PDT 2020


rsandifo-arm added a comment.

In D76694#1939863 <https://reviews.llvm.org/D76694#1939863>, @efriedma wrote:

> Is it not legal to cast an SVE type to any type other than itself?


Not in normal length-agnostic mode.  Instead we provide reinterpret intrinsics for type changes that are supposed to be bitcasts and conversion intrinsics for type changes that are supposed to be arithmetic operations.  The types are really just opaque blobs that hold the inputs to and outputs from intrinsics.

For length-specific mode, we eventually want to allow casts to and from equivalent "normal" fixed-length vector types.  Those conversions would also be implicit, so that fixed-length vectors of the right type and length can be used directly with intrinsics.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76694





More information about the cfe-commits mailing list