[all-commits] [llvm/llvm-project] 73c03b: XtensaMCCodeEmitter: Set PCRel at fixup creation

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 4 20:19: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: 73c03b92cec643a31327b2320207a3599970470f
      https://github.com/llvm/llvm-project/commit/73c03b92cec643a31327b2320207a3599970470f
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/Xtensa/MCTargetDesc/XtensaAsmBackend.cpp
    M llvm/lib/Target/Xtensa/MCTargetDesc/XtensaMCCodeEmitter.cpp

  Log Message:
  -----------
  XtensaMCCodeEmitter: 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: 6670fe2ed498f70221e4b444aa1d08d0d47e8577
      https://github.com/llvm/llvm-project/commit/6670fe2ed498f70221e4b444aa1d08d0d47e8577
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp

  Log Message:
  -----------
  ARMMCCodeEmitter: 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: 8bb4e534284df9405c081d2570613f944042519f
      https://github.com/llvm/llvm-project/commit/8bb4e534284df9405c081d2570613f944042519f
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp

  Log Message:
  -----------
  PPCMCCodeEmitter: 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: 637a382118244b0a54302c7be0413b30b758ae4a
      https://github.com/llvm/llvm-project/commit/637a382118244b0a54302c7be0413b30b758ae4a
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCFixups.h

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


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

  Changed paths:
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp

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

This helper will facilitate future fixup data structure optimizations.


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

  Changed paths:
    M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

  Log Message:
  -----------
  BOLT: Replace deprecated MCFixupKindInfo::FKF_IsPCRel with MCFixup::isPCRel

MCFixup::PCRel is now set at creation and the MCFixupKindInfo::FKF_IsPCRel flag
is no longer set.


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

  Changed paths:
    M llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp

  Log Message:
  -----------
  MipsMCCodeEmitter: 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: 56cf2cb0eadd6916b3f45b6504905ab8821ee4e8
      https://github.com/llvm/llvm-project/commit/56cf2cb0eadd6916b3f45b6504905ab8821ee4e8
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp

  Log Message:
  -----------
  HexagonMCCodeEmitter: 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: 21cf7bd4ec511a676fcfc07eb33688e93235edcd
      https://github.com/llvm/llvm-project/commit/21cf7bd4ec511a676fcfc07eb33688e93235edcd
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
    M llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp

  Log Message:
  -----------
  BPFMCCodeEmitter: 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: b418e73becc1a23207499263e4e62c13a4584148
      https://github.com/llvm/llvm-project/commit/b418e73becc1a23207499263e4e62c13a4584148
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp

  Log Message:
  -----------
  AMDGPUMCCodeEmitter: 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: 3544eba44a3310ca78203a8091ec2494e048e36e
      https://github.com/llvm/llvm-project/commit/3544eba44a3310ca78203a8091ec2494e048e36e
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp
    M llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCCodeEmitter.cpp

  Log Message:
  -----------
  MSP430MCCodeEmitter: 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: 7b7dc151a75b80560a034d8cf010efaf8e1edc38
      https://github.com/llvm/llvm-project/commit/7b7dc151a75b80560a034d8cf010efaf8e1edc38
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
    M llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp

  Log Message:
  -----------
  AVRMCCodeEmitter: 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: 755b4732cf8142d29176c05188bf119277a8c3fb
      https://github.com/llvm/llvm-project/commit/755b4732cf8142d29176c05188bf119277a8c3fb
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
    M llvm/lib/Target/VE/MCTargetDesc/VEMCCodeEmitter.cpp

  Log Message:
  -----------
  VEMCCodeEmitter: 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: add2c58e6560697262a77c0014e7f825f5935fc9
      https://github.com/llvm/llvm-project/commit/add2c58e6560697262a77c0014e7f825f5935fc9
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M clang/lib/Index/IndexBody.cpp

  Log Message:
  -----------
  [Index] Remove an unnecessary cast (NFC) (#146944)

We don't need to cast twice to the same type.


  Commit: 21fb7e68ef05180e71e454fb4daecdcb75256a5e
      https://github.com/llvm/llvm-project/commit/21fb7e68ef05180e71e454fb4daecdcb75256a5e
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    M clang/lib/Driver/ToolChains/HIPSPV.cpp

  Log Message:
  -----------
  [Driver] Use range-based for loops (NFC) (#146987)

Note that LLVM Coding Standards discourages std::for_each and
llvm::for_each unless the callable object already exists.


  Commit: 57cb9265bf48850372ebe7dfc46c517b99b35d7c
      https://github.com/llvm/llvm-project/commit/57cb9265bf48850372ebe7dfc46c517b99b35d7c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [Analysis] Drop const from a return type (NFC) (#147098)

We don't need const on a return type.


  Commit: f78d74f9c86f96cbaecb5cbc3b760eec81567706
      https://github.com/llvm/llvm-project/commit/f78d74f9c86f96cbaecb5cbc3b760eec81567706
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/include/llvm/IR/LegacyPassManagers.h
    M llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp
    M llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp

  Log Message:
  -----------
  [llvm] Use llvm::fill (NFC) (#147099)

We can pass a range to llvm::fill.


  Commit: 3e2e99bc6778a75222871a907c9b57e607e3414a
      https://github.com/llvm/llvm-project/commit/3e2e99bc6778a75222871a907c9b57e607e3414a
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h

  Log Message:
  -----------
  [Analysis] Remove traces of BlockEdgesAdder (#147102)

This patch removes traces of BlockEdgesAdder, which was a workaround
for an ancient version of GCC removed by:

  commit c17e88f07e26247bf876bd7e8057dcd1b89d702c
  Author: Kazu Hirata <kazu at google.com>
  Date:   Tue Jul 1 10:42:29 2025 -0700


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

  Changed paths:
    A llvm/test/MC/X86/Relocations/x86-16.s
    A llvm/test/MC/X86/Relocations/x86-32.s
    A llvm/test/MC/X86/Relocations/x86-64.s
    M llvm/test/MC/X86/avx-64-att.s
    M llvm/test/MC/X86/fma4-att.s
    M llvm/test/MC/X86/x86-16.s
    M llvm/test/MC/X86/x86-32-coverage.s
    M llvm/test/MC/X86/x86-32.s
    M llvm/test/MC/X86/x86-64.s
    M llvm/test/MC/X86/x86_64-encoding.s

  Log Message:
  -----------
  X86: Test fixup/relocation with -filetype=obj

The fixup output is a debug aid and should not be used to test
target-specific relocation generation implementation. The llvm-mc
-filetype=obj output is what truly matters.

Add a "Relocations" directory, similar to other targets, to test fixups
and relocations.


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

  Changed paths:
    M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    M clang/lib/Driver/ToolChains/HIPSPV.cpp
    M clang/lib/Index/IndexBody.cpp
    M llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
    M llvm/include/llvm/IR/LegacyPassManagers.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
    M llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
    M llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
    M llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
    M llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
    M llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
    M llvm/lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp
    M llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCCodeEmitter.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp
    M llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCFixups.h
    M llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
    M llvm/lib/Target/VE/MCTargetDesc/VEMCCodeEmitter.cpp
    M llvm/lib/Target/Xtensa/MCTargetDesc/XtensaAsmBackend.cpp
    M llvm/lib/Target/Xtensa/MCTargetDesc/XtensaMCCodeEmitter.cpp
    A llvm/test/MC/X86/Relocations/x86-16.s
    A llvm/test/MC/X86/Relocations/x86-32.s
    A llvm/test/MC/X86/Relocations/x86-64.s
    M llvm/test/MC/X86/avx-64-att.s
    M llvm/test/MC/X86/fma4-att.s
    M llvm/test/MC/X86/x86-16.s
    M llvm/test/MC/X86/x86-32-coverage.s
    M llvm/test/MC/X86/x86-32.s
    M llvm/test/MC/X86/x86-64.s
    M llvm/test/MC/X86/x86_64-encoding.s

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

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/7f477b9cbaba...ae33010469aa

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