[all-commits] [llvm/llvm-project] 6ec27f: MCFixup: Remove FKF_IsPCRel

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  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.



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