[all-commits] [llvm/llvm-project] d677e5: [ABI] Hoist isSingleElementStruct into TargetInfo ...

Chaitanya via All-commits all-commits at lists.llvm.org
Mon Sep 21 21:06:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d677e53ba64a897a7575706c4782f9575e5ec914
      https://github.com/llvm/llvm-project/commit/d677e53ba64a897a7575706c4782f9575e5ec914
  Author: Chaitanya <Krishna.Sankisa at amd.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M llvm/include/llvm/ABI/TargetInfo.h
    M llvm/lib/ABI/TargetInfo.cpp
    M llvm/lib/ABI/Targets/X86.cpp
    M llvm/unittests/ABI/CMakeLists.txt
    A llvm/unittests/ABI/TargetInfoTest.cpp
    M llvm/utils/gn/secondary/llvm/unittests/ABI/BUILD.gn

  Log Message:
  -----------
  [ABI] Hoist isSingleElementStruct into TargetInfo and fix array reduction (#224994)

Changes:
- Move `isSingleElementStruct` from `X86_64TargetInfo` into the shared
`TargetInfo` base so other targets can reuse it, and restore the
`isAggregateTypeForABI` guard from classic CodeGen so a multi-element
array field no longer reduces (e.g. struct { short a[2]; } stays i32
instead of [2 x i16]).
- Add unit tests for the reduction in to new test file `TargetInfoTest`.

Relates to : https://github.com/llvm/llvm-project/issues/220471

Assisted by: claude opus 4.8



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