[all-commits] [llvm/llvm-project] a65557: [LoongArch] Fixup value adjustment in applyFixup

wangleiat via All-commits all-commits at lists.llvm.org
Thu Sep 15 06:01:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a65557d4b3b43bd06d443957cff2079f242f60f1
      https://github.com/llvm/llvm-project/commit/a65557d4b3b43bd06d443957cff2079f242f60f1
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-09-15 (Thu, 15 Sep 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
    A llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
    A llvm/test/MC/LoongArch/Relocations/fixups-invalid.s
    A llvm/test/MC/LoongArch/Relocations/fixups.s

  Log Message:
  -----------
  [LoongArch] Fixup value adjustment in applyFixup

A complete implementation of `applyFixup` for D132323.

Makes `LoongArchAsmBackend::shouldForceRelocation` to determine
if the relocation types must be forced.

This patch also adds range and alignment checks for `b*` instructions'
operands, at which point the offset to a label is known.

Differential Revision: https://reviews.llvm.org/D132818




More information about the All-commits mailing list