[all-commits] [llvm/llvm-project] 331b3e: [PowerPC] Take ABI into account for data layout (#...

Jens Reidel via All-commits all-commits at lists.llvm.org
Fri Oct 31 02:31:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 331b3eb4898cb63eb27f00651130eede054e4667
      https://github.com/llvm/llvm-project/commit/331b3eb4898cb63eb27f00651130eede054e4667
  Author: Jens Reidel <adrian at travitia.xyz>
  Date:   2025-10-31 (Fri, 31 Oct 2025)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.h
    A clang/test/CodeGen/PowerPC/ppc64-abi-override-datalayout.c
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    M llvm/lib/TargetParser/TargetDataLayout.cpp

  Log Message:
  -----------
  [PowerPC] Take ABI into account for data layout (#149725)

Prior to this change, the data layout calculation would not account for
explicitly set `-mabi=elfv2` on `powerpc64-unknown-linux-gnu`, a target
that defaults to `elfv1`.

This is loosely inspired by the equivalent ARM / RISC-V code.

`make check-llvm` passes fine for me, though AFAICT all the tests
specify the data layout manually so there isn't really a test for this
and I am not really sure what the best way to go about adding one would
be.

Signed-off-by: Jens Reidel <adrian at travitia.xyz>



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