[all-commits] [llvm/llvm-project] 20fe9f: [libc] Don't declare vector_size types that cannot...

Roland McGrath via All-commits all-commits at lists.llvm.org
Mon Sep 14 11:57:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20fe9f35da9952f60188212c5f51debb07af24ca
      https://github.com/llvm/llvm-project/commit/20fe9f35da9952f60188212c5f51debb07af24ca
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M libc/src/__support/macros/properties/cpu_features.h
    M libc/src/string/memory_utils/op_generic.h

  Log Message:
  -----------
  [libc] Don't declare vector_size types that cannot be compiled (#221119)

On machines where [[gnu::vector_size(N)]] types are generally
supported, each given N can only be used when the corresponding
CPU features are enabled by the particular -m switches et al.
Don't make any use of a type that's not enabled for native
register use according to the predefines reflecting -m switches.
Even inline and template functions that wind up being unused can
make the compiler give errors about the use of a type whose use
is disabled for ABI or ISA configuration reasons.



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