[all-commits] [llvm/llvm-project] a4976c: Move Hexagon-specific MCSymbolRefExpr::VariantKind...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Mar 14 21:26:21 PDT 2025


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

  Changed paths:
    M llvm/include/llvm/MC/MCExpr.h
    M llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
    M llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonELFObjectWriter.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCAsmInfo.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.h
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.h

  Log Message:
  -----------
  Move Hexagon-specific MCSymbolRefExpr::VariantKind to HexagonMCExpr

In the future, should try storing the relocation operator in
MCTargetExpr and refactor the ELF writer to use MCValue::RefKind,
similar to AArch64MCExpr.

Also add a MCSymbolRefExpr::create overload that takes an uint16_t
argument to help port code.



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