[all-commits] [llvm/llvm-project] b19b6d: Move SystemZ-specific MCSymbolRefExpr::VariantKind...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 22 18:06:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b19b6d9fab0bd9a1650ea1a1d631fc31d0f7fbae
      https://github.com/llvm/llvm-project/commit/b19b6d9fab0bd9a1650ea1a1d631fc31d0f7fbae
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCExpr.h
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZELFObjectWriter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCExpr.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCExpr.h
    M llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
    M llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
    M llvm/lib/Target/SystemZ/SystemZMCInstLower.h
    M llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp

  Log Message:
  -----------
  Move SystemZ-specific MCSymbolRefExpr::VariantKind to SystemZMCExpr::Specifier

Similar to previous migration done for other targets (PowerPC, X86, ARM,
etc). Switch from the confusing VariantKind to Specifier, which aligns
with Arm and IBM AIX's documentation.

In addition, rename *MCExpr::getKind, which confusingly shadows the base class getKind.

In the future, relocation specifiers should be encoded as part of
SystemZMCExpr instead of MCSymbolRefExpr.



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