[all-commits] [llvm/llvm-project] 045d6f: llvm-exegesis: Set the module triple and ABI-aware...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Oct 2 07:08:13 PDT 2026


  Branch: refs/heads/users/arsenm/llvm-exegesis/fix-not-setting-triple
  Home:   https://github.com/llvm/llvm-project
  Commit: 045d6f51629ace329db006dc3bf146856b0ff6c8
      https://github.com/llvm/llvm-project/commit/045d6f51629ace329db006dc3bf146856b0ff6c8
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/Assembler.cpp
    M llvm/unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
    M llvm/unittests/tools/llvm-exegesis/Mips/TargetTest.cpp
    M llvm/unittests/tools/llvm-exegesis/Mips/TestBase.h
    M llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
    M llvm/unittests/tools/llvm-exegesis/RISCV/TestBase.h

  Log Message:
  -----------
  llvm-exegesis: Set the module triple and ABI-aware DataLayout

The module used to assemble snippets only had a DataLayout set, which
was computed without the target ABI. Set the target triple on the
module, synthesize the "target-abi" module flag from the
TargetMachine's ABI option, and compute the DataLayout from it.
Without the ABI, a TargetMachine with a non-default ABI would hit the
incompatible DataLayout error when creating the MachineFunction.

Co-Authored-By: Claude <noreply at anthropic.com>



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