[PATCH] D103539: WIP: try to repair RISCV handling of paired relocations

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 2 10:49:16 PDT 2021


compnerd created this revision.
Herald added subscribers: vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
compnerd requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

This undoes an ancient optimization in LLVM to support RISC-V's desire
to over-emit relocations for link time relocation relaxation.  This also
removes the adhoc handling of symbolic difference handling for RISCV,
localising all the RISC-V specific behaivour to the target rather than
keeping it at the global level.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103539

Files:
  llvm/include/llvm/MC/MCAsmBackend.h
  llvm/include/llvm/MC/MCFixup.h
  llvm/lib/MC/ELFObjectWriter.cpp
  llvm/lib/MC/MCAsmBackend.cpp
  llvm/lib/MC/MCAssembler.cpp
  llvm/lib/MC/MCExpr.cpp
  llvm/lib/MC/MCObjectStreamer.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103539.349326.patch
Type: text/x-patch
Size: 18908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210602/fa783f53/attachment.bin>


More information about the llvm-commits mailing list