[all-commits] [llvm/llvm-project] 2aa0f0: [AArch64] Add option -msve-streaming-vector-bits= ...

Eli Friedman via All-commits all-commits at lists.llvm.org
Thu Jul 3 13:44:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2aa0f0a3bd541278b04efcc717e7aa94ef4c1308
      https://github.com/llvm/llvm-project/commit/2aa0f0a3bd541278b04efcc717e7aa94ef4c1308
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Basic/TargetInfo.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/Basic/Targets/AArch64.h
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Basic/Targets/RISCV.h
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/Targets/RISCV.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaARM.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/CodeGen/arm-sve-vector-bits-vscale-range.c
    M clang/test/Driver/aarch64-sve-vector-bits.c
    M clang/test/Sema/attr-arm-sve-vector-bits.c
    A clang/test/SemaCXX/aarch64-streaming-sve-vector-conversions.cpp

  Log Message:
  -----------
  [AArch64] Add option -msve-streaming-vector-bits= . (#144611)

This is similar to -msve-vector-bits, but for streaming mode: it
constrains the legal values of "vscale", allowing optimizations based on
that constraint.

This also fixes conversions between SVE vectors and fixed-width vectors
in streaming functions with -msve-vector-bits and
-msve-streaming-vector-bits.

This rejects any use of arm_sve_vector_bits types in streaming
functions; if it becomes relevant, we could add
arm_sve_streaming_vector_bits types in the future.

This doesn't touch the __ARM_FEATURE_SVE_BITS define.



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