[all-commits] [llvm/llvm-project] e7d432: [JITLink][RISCV] Improve R_RISCV_JAL

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Tue Jan 3 08:19:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7d432fd67c88d3c70be82ff0d424dd8993afb58
      https://github.com/llvm/llvm-project/commit/e7d432fd67c88d3c70be82ff0d424dd8993afb58
  Author: Jonas Hahnfeld <hahnjo at hahnjo.de>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp

  Log Message:
  -----------
  [JITLink][RISCV] Improve R_RISCV_JAL

Only take the lower 12 bits of RawInstr.

Differential Revision: https://reviews.llvm.org/D140820


  Commit: 850adc1ddc41c626ecdfc89a083518343ad2fbf6
      https://github.com/llvm/llvm-project/commit/850adc1ddc41c626ecdfc89a083518343ad2fbf6
  Author: Jonas Hahnfeld <hahnjo at hahnjo.de>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp

  Log Message:
  -----------
  [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


Compare: https://github.com/llvm/llvm-project/compare/ad3e0e4b4194...850adc1ddc41


More information about the All-commits mailing list