This is an archive of the discontinued LLVM Phabricator instance.

[mips][mc] Add basic support for R_MIPS_JALR/R_MICROMIPS_JALR
ClosedPublic

Authored by vstefanovic on Nov 19 2018, 12:59 PM.

Details

Summary

R_MIPS_JALR/R_MICROMIPS_JALR can now be parsed in .s files and emitted to .o.
They are still not generated with JALR.

Diff Detail

Repository
rL LLVM

Event Timeline

vstefanovic created this revision.Nov 19 2018, 12:59 PM
atanasyan added inline comments.Nov 19 2018, 8:53 PM
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
503

Do we really need to make this fixup 64-bit wide? It's a hint for instruction relaxation so 32-bit would be enough.

vstefanovic marked an inline comment as done.Nov 20 2018, 10:10 AM
vstefanovic added inline comments.
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
503

True.

vstefanovic marked an inline comment as done.

Addressed comment.

vstefanovic marked an inline comment as done.Nov 20 2018, 10:13 AM
This revision is now accepted and ready to land.Nov 20 2018, 10:57 AM
This revision was automatically updated to reflect the committed changes.