This is an archive of the discontinued LLVM Phabricator instance.

[JITLink][RISCV] Order EdgeKind_riscv the same way as relocations
ClosedPublic

Authored by Hahnfeld on Dec 31 2022, 4:43 AM.

Details

Summary

There were basically four different orderings: one defined by the
relocations, one by the enum definition of EdgeKind_riscv, one for
mapping the enum values to their names, and one when mapping the
relocations to edge kinds and finally processing them. Chose the
ordering defined by the relocations in the riscv-elf-psabi-doc as
the canonical one.

Diff Detail

Event Timeline

Hahnfeld created this revision.Dec 31 2022, 4:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2022, 4:43 AM
Hahnfeld requested review of this revision.Dec 31 2022, 4:43 AM

LGTM. Thanks!

llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
335

The use of uint32_t is incorrect. I have fixed it in https://reviews.llvm.org/rG31000211e0113ae76594ca2c0ac1c225bd461a73.

StephenFan accepted this revision.Jan 1 2023, 9:56 PM
This revision is now accepted and ready to land.Jan 1 2023, 9:56 PM
This revision was landed with ongoing or failed builds.Jan 2 2023, 5:50 AM
This revision was automatically updated to reflect the committed changes.