[JITLink][RISCV] Homogenize immediate handling
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 1 Jan 2023 18:07:32 +0000 (19:07 +0100)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 3 Jan 2023 16:18:39 +0000 (17:18 +0100)
commit850adc1ddc41c626ecdfc89a083518343ad2fbf6
tree8d9b4448b0105744dce06d8716b41ec85bd83296
parente7d432fd67c88d3c70be82ff0d424dd8993afb58
[JITLink][RISCV] Homogenize immediate handling

Name the variables based on which part of the immediate value is
extracted, as it was already done for R_RISCV_JAL. This makes it
much easier to compare the logic with the spec.

Differential Revision: https://reviews.llvm.org/D140820
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp