[all-commits] [llvm/llvm-project] 28bda7: Introduce MCAsmInfo::UsesSetToEquateSymbol and pre...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 11 22:19:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28bda778437fea17a25b561f1b3b84545612b565
      https://github.com/llvm/llvm-project/commit/28bda778437fea17a25b561f1b3b84545612b565
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M clang/test/CodeGen/alias.c
    M llvm/include/llvm/MC/MCAsmInfo.h
    M llvm/lib/MC/MCAsmStreamer.cpp
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCAsmInfo.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
    M llvm/test/CodeGen/AArch64/arm64ec-alias.ll
    M llvm/test/CodeGen/AArch64/arm64ec-hybrid-patchable.ll
    M llvm/test/CodeGen/AArch64/arm64ec-symbols.ll
    M llvm/test/CodeGen/AArch64/arm64ec-varargs.ll
    M llvm/test/CodeGen/AArch64/ehcontguard.ll
    M llvm/test/CodeGen/AArch64/global-merge-1.ll
    M llvm/test/CodeGen/AArch64/global-merge-2.ll
    M llvm/test/CodeGen/AArch64/global-merge-3.ll
    M llvm/test/CodeGen/AArch64/global-merge-hidden-minsize.ll
    M llvm/test/CodeGen/AArch64/ifunc-asm.ll
    M llvm/test/CodeGen/AArch64/seh-finally.ll
    M llvm/test/CodeGen/AArch64/stackguard-internal.ll
    M llvm/test/CodeGen/ARM/alias_store.ll
    M llvm/test/CodeGen/ARM/aliases.ll
    M llvm/test/CodeGen/ARM/global-merge-dllexport.ll
    M llvm/test/CodeGen/ARM/global-merge-external-2.ll
    M llvm/test/CodeGen/ARM/global-merge-external.ll
    M llvm/test/CodeGen/AVR/global-aliases.ll
    M llvm/test/CodeGen/Mips/hf16call32_body.ll
    M llvm/test/CodeGen/Mips/mips16ex.ll
    M llvm/test/CodeGen/PowerPC/asm-printer-topological-order.ll
    M llvm/test/CodeGen/PowerPC/data-align.ll
    M llvm/test/CodeGen/WebAssembly/aliases.ll
    M llvm/test/CodeGen/WinCFGuard/cfguard-mingw.ll
    M llvm/test/CodeGen/WinCFGuard/cfguard.ll
    M llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
    M llvm/test/CodeGen/X86/2009-08-12-badswitch.ll
    M llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll
    M llvm/test/CodeGen/X86/alias-gep.ll
    M llvm/test/CodeGen/X86/aliases.ll
    M llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
    M llvm/test/CodeGen/X86/coff-alias-type.ll
    M llvm/test/CodeGen/X86/coff-comdat.ll
    M llvm/test/CodeGen/X86/coff-feat00.ll
    M llvm/test/CodeGen/X86/dllexport-x86_64.ll
    M llvm/test/CodeGen/X86/dllexport.ll
    M llvm/test/CodeGen/X86/ehcontguard.ll
    M llvm/test/CodeGen/X86/fastcall-correct-mangling.ll
    M llvm/test/CodeGen/X86/ifunc-asm.ll
    M llvm/test/CodeGen/X86/lea-opt-memop-check-1.ll
    M llvm/test/CodeGen/X86/linux-preemption.ll
    M llvm/test/CodeGen/X86/localescape.ll
    M llvm/test/CodeGen/X86/pr22019.ll
    M llvm/test/CodeGen/X86/seh-catch-all-win32.ll
    M llvm/test/CodeGen/X86/seh-catchpad.ll
    M llvm/test/CodeGen/X86/seh-finally.ll
    M llvm/test/CodeGen/X86/seh-no-invokes.ll
    M llvm/test/CodeGen/X86/seh-stack-realign.ll
    M llvm/test/CodeGen/X86/tailcall-cgp-dup.ll
    M llvm/test/CodeGen/X86/windows-seh-EHa-TryInFinally.ll
    M llvm/test/CodeGen/XCore/globals.ll
    M llvm/test/CodeGen/XCore/linkage.ll
    M llvm/test/DebugInfo/X86/dbg-value-range.ll
    M llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
    M llvm/test/MC/AArch64/basic-a64-instructions.s
    M llvm/test/MC/AsmParser/assignment.s
    M llvm/test/MC/AsmParser/directive_include.s
    M llvm/test/MC/AsmParser/directive_set.s
    M llvm/test/MC/AsmParser/include.ll
    M llvm/test/MC/AsmParser/labels.s
    M llvm/test/MC/AsmParser/macro-arg-darwin.s
    M llvm/test/MC/AsmParser/motorola_integers.s
    M llvm/test/MC/Mips/cpsetup.s

  Log Message:
  -----------
  Introduce MCAsmInfo::UsesSetToEquateSymbol and prefer = to .set

Introduce MCAsmInfo::UsesSetToEquateSymbol to control the preferred
syntax for symbol equating. We now favor the more readable and common
`symbol = expression` syntax over `.set`. This aligns with pre- https://reviews.llvm.org/D44256 behavior.

On Apple platforms, this resolves a clang -S vs -c behavior difference (resolves #104623).

For targets whose = support is unconfirmed, UsesSetToEquateSymbol is set to false.
This also minimizes test updates.

Pull Request: https://github.com/llvm/llvm-project/pull/142289



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