[JITLink][RISCV] Order EdgeKind_riscv the same way as relocations
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sat, 31 Dec 2022 12:41:51 +0000 (13:41 +0100)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 2 Jan 2023 13:49:47 +0000 (14:49 +0100)
commit6f539de7351c3200675fffaa5abc7bc0c4e266da
tree479a8d765b33ddda1d9f32c6d8d88d72095090fd
parent3f04553e5c16f5ba57e9a82edc190770f5a062bb
[JITLink][RISCV] Order EdgeKind_riscv the same way as relocations

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.

Differential Revision: https://reviews.llvm.org/D140802
llvm/include/llvm/ExecutionEngine/JITLink/riscv.h
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/lib/ExecutionEngine/JITLink/riscv.cpp