[all-commits] [llvm/llvm-project] 0e9571: M68kMCCodeEmitter: Standardize how fixups are appe...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 4 21:07:53 PDT 2025


  Branch: refs/heads/users/MaskRay/spr/mc-centralize-x86-pc-relative-fixup-adjustment-in-mcassembler
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e9571df982fb0527cac2c6a6d21ff502f5d4668
      https://github.com/llvm/llvm-project/commit/0e9571df982fb0527cac2c6a6d21ff502f5d4668
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp

  Log Message:
  -----------
  M68kMCCodeEmitter: Standardize how fixups are appended

This helper will facilitate future fixup data structure optimizations.


  Commit: d85536c5e362d9bf99ba26306cf483636b105fe3
      https://github.com/llvm/llvm-project/commit/d85536c5e362d9bf99ba26306cf483636b105fe3
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.cpp
    R llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.h
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.cpp

  Log Message:
  -----------
  CSKYMCCodeEmitter: Set PCRel at fixup creation

Avoid reliance on the MCAssembler::evaluateFixup workaround that checks
MCFixupKindInfo::FKF_IsPCRel. Additionally, standardize how fixups are
appended. This helper will facilitate future fixup data structure
optimizations.


  Commit: 74fcff4905fffc238c8be94f3f19dd7ff654e4f0
      https://github.com/llvm/llvm-project/commit/74fcff4905fffc238c8be94f3f19dd7ff654e4f0
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp

  Log Message:
  -----------
  CSKY: Remove unneeded MCFixupKindInfo::FKF_IsPCRel


  Commit: 6ec27f1b8a5aad449dc0be8e64244040858b1b8a
      https://github.com/llvm/llvm-project/commit/6ec27f1b8a5aad449dc0be8e64244040858b1b8a
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCFixup.h
    M llvm/include/llvm/MC/MCFixupKindInfo.h
    M llvm/lib/MC/MCAsmBackend.cpp
    M llvm/lib/MC/MCAssembler.cpp

  Log Message:
  -----------
  MCFixup: Remove FKF_IsPCRel

PC-relative fixups compute their values as
`sym_a - current_location + offset` (S - P + A).
Now that targets have set PCRel at fixup creation time, we can remove
some overhead from MCAssembler::evaluateFixup.


  Commit: 34ce16ce719b5d0bf8a2c413abb00dbf835ab8c2
      https://github.com/llvm/llvm-project/commit/34ce16ce719b5d0bf8a2c413abb00dbf835ab8c2
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCFixup.h
    M llvm/include/llvm/MC/MCFixupKindInfo.h
    M llvm/lib/MC/MCAsmBackend.cpp
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.cpp
    R llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.h
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.cpp
    M llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp

  Log Message:
  -----------
  rebase

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/ae33010469aa...34ce16ce719b

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