[all-commits] [llvm/llvm-project] 91d415: [Clang][AArch64][SVE] Allow write to SVE vector el...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Wed May 22 02:41:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91d415b8d94b15023e6c39d5376274a2b21ee448
      https://github.com/llvm/llvm-project/commit/91d415b8d94b15023e6c39d5376274a2b21ee448
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CodeGen/aarch64-sve-vector-subscript-ops.c

  Log Message:
  -----------
  [Clang][AArch64][SVE] Allow write to SVE vector elements using the subscript operator (#91965)

The patch at https://reviews.llvm.org/D122732 introduced using the array
subscript operator for SVE vectors, however it also causes an ICE when
the subscripting expression is used as an lvalue.

This patches fixes the error. Lvalue subscripting expressions are
emitted as LLVM IR `insertelement`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list