[PATCH] D140802: [JITLink][RISCV] Order EdgeKind_riscv the same way as relocations

Jonas Hahnfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 31 04:43:37 PST 2022


Hahnfeld created this revision.
Hahnfeld added a reviewer: StephenFan.
Herald added subscribers: sunshaoce, VincentWu, 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, arichardson.
Herald added a project: All.
Hahnfeld requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140802

Files:
  llvm/include/llvm/ExecutionEngine/JITLink/riscv.h
  llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
  llvm/lib/ExecutionEngine/JITLink/riscv.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140802.485765.patch
Type: text/x-patch
Size: 16645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221231/08ac2a38/attachment.bin>


More information about the llvm-commits mailing list