[PATCH] D145687: [BOLT] Add minimal RISC-V 64-bit support

Job Noorman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 04:38:08 PDT 2023


jobnoorman updated this revision to Diff 505024.
jobnoorman edited the summary of this revision.
jobnoorman added a comment.

Address some of the reviewer comments:

- Remove references to PCREL_LO12_S. It was only partially implemented so I'll keep the full implementation for a later patch;
- Collapse two separate `if`s in one;
- Invoke call-fixing code from binary pass;
- Detect `c.nop` in `isNoop()`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145687/new/

https://reviews.llvm.org/D145687

Files:
  bolt/include/bolt/Core/BinaryContext.h
  bolt/include/bolt/Core/BinaryFunction.h
  bolt/include/bolt/Core/MCPlusBuilder.h
  bolt/include/bolt/Passes/FixRISCVCallsPass.h
  bolt/include/bolt/Rewrite/RewriteInstance.h
  bolt/lib/Core/BinaryContext.cpp
  bolt/lib/Core/BinaryFunction.cpp
  bolt/lib/Core/Relocation.cpp
  bolt/lib/Passes/CMakeLists.txt
  bolt/lib/Passes/FixRISCVCallsPass.cpp
  bolt/lib/Rewrite/BinaryPassManager.cpp
  bolt/lib/Rewrite/CMakeLists.txt
  bolt/lib/Rewrite/RewriteInstance.cpp
  bolt/lib/Target/CMakeLists.txt
  bolt/lib/Target/RISCV/CMakeLists.txt
  bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
  bolt/test/RISCV/Inputs/plt-gnu-ld.yaml
  bolt/test/RISCV/lit.local.cfg
  bolt/test/RISCV/plt-gnu-ld.test
  bolt/test/RISCV/reloc-branch.s
  bolt/test/RISCV/reloc-call.s
  bolt/test/RISCV/reloc-got.s
  bolt/test/RISCV/reloc-jal.s
  bolt/test/RISCV/reloc-pcrel.s
  bolt/test/RISCV/reloc-rvc-branch.s
  bolt/test/RISCV/reloc-rvc-jump.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145687.505024.patch
Type: text/x-patch
Size: 71421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230314/fb55f069/attachment.bin>


More information about the llvm-commits mailing list