[PATCH] D122732: [Clang][AArch64][SVE] Allow subscript operator for SVE types
David Truby via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 30 08:20:49 PDT 2022
DavidTruby created this revision.
Herald added subscribers: psnobl, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
DavidTruby requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Undefined behaviour is just passed on to extract_element when the
index is out of bounds. Subscript on svbool_t is not allowed as
this doesn't really have meaningful semantics.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122732
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/aarch64-sve-vector-subscript-ops.c
clang/test/Sema/aarch64-sve-vector-subscript-ops.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122732.419153.patch
Type: text/x-patch
Size: 9449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220330/151b34ee/attachment.bin>
More information about the cfe-commits
mailing list