[PATCH] D87607: [clang][aarch64] Support implicit casts between GNU and SVE vectors

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 11:30:25 PDT 2020


efriedma added inline comments.


================
Comment at: clang/lib/AST/ASTContext.cpp:8522
+          return VT->getElementType().getCanonicalType() ==
+                 getBuiltinVectorTypeInfo(BT).ElementType;
       }
----------------
We allow casting SVE fixed-width vectors only if the element type is identical, but we allow casting to GNU fixed-width vectors if the vector width is the same?  That seems sort of loose; could allow weird casts, particularly when bool vectors are involved.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87607



More information about the cfe-commits mailing list