[all-commits] [llvm/llvm-project] c8c168: CodeGen: Prefer getting the Triple from the Module

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Oct 2 16:45:03 PDT 2026


  Branch: refs/heads/users/arsenm/codegen/prefer-module-triple-over-targetmachine
  Home:   https://github.com/llvm/llvm-project
  Commit: c8c168b0393f6d4f912de887759c21eb23fc9a05
      https://github.com/llvm/llvm-project/commit/c8c168b0393f6d4f912de887759c21eb23fc9a05
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M llvm/lib/CodeGen/Analysis.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/LTO/LTOBackend.cpp
    M llvm/lib/LTO/ThinLTOCodeGenerator.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  CodeGen: Prefer getting the Triple from the Module

Take the triple from the contextual module rather than TargetMachine
when it's already readily available.

Co-authored-by: Claude Opus 5 <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