[PATCH] D56694: [mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25

Vladimir Stefanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 18:04:11 PST 2019


vstefanovic created this revision.
vstefanovic added a reviewer: atanasyan.
Herald added subscribers: jrtc27, arichardson, sdardis.

The callee address is added as an optional operand (MCSymbol) in
AdjustInstrPostInstrSelection() and then used by asm printer to insert:
'.reloc tmplabel, R_MIPS_JALR, symbol
tmplabel:'.
Controlled with '-mips-jalr-reloc', default is true.


Repository:
  rL LLVM

https://reviews.llvm.org/D56694

Files:
  lib/CodeGen/MachineInstr.cpp
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
  lib/Target/Mips/MCTargetDesc/MipsBaseInfo.h
  lib/Target/Mips/MicroMips32r6InstrInfo.td
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/Mips32r6InstrInfo.td
  lib/Target/Mips/MipsAsmPrinter.cpp
  lib/Target/Mips/MipsFastISel.cpp
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.h
  lib/Target/Mips/MipsInstrInfo.cpp
  lib/Target/Mips/MipsInstrInfo.td
  lib/Target/Mips/MipsMCInstLower.cpp
  test/CodeGen/Mips/cconv/vector.ll
  test/CodeGen/Mips/gprestore.ll
  test/CodeGen/Mips/llvm-ir/sdiv.ll
  test/CodeGen/Mips/llvm-ir/srem.ll
  test/CodeGen/Mips/llvm-ir/udiv.ll
  test/CodeGen/Mips/llvm-ir/urem.ll
  test/CodeGen/Mips/long-call-attr.ll
  test/CodeGen/Mips/long-call-mcount.ll
  test/CodeGen/Mips/msa/f16-llvm-ir.ll
  test/CodeGen/Mips/o32_cc_byval.ll
  test/CodeGen/Mips/reloc-jalr.ll
  test/CodeGen/Mips/shrink-wrapping.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56694.181688.patch
Type: text/x-patch
Size: 44545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/520bd389/attachment.bin>


More information about the llvm-commits mailing list