[PATCH] D153538: [JITLink][RISCV] Expose relaxation pass publicly
Job Noorman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 26 00:45:08 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGde5198b00dd7: [JITLink][RISCV] Expose relaxation pass publicly (authored by jobnoorman).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153538/new/
https://reviews.llvm.org/D153538
Files:
llvm/include/llvm/ExecutionEngine/JITLink/ELF_riscv.h
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
Index: llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
===================================================================
--- llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
+++ llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
@@ -971,5 +971,7 @@
ELFJITLinker_riscv::link(std::move(Ctx), std::move(G), std::move(Config));
}
+LinkGraphPassFunction createRelaxationPass_ELF_riscv() { return relax; }
+
} // namespace jitlink
} // namespace llvm
Index: llvm/include/llvm/ExecutionEngine/JITLink/ELF_riscv.h
===================================================================
--- llvm/include/llvm/ExecutionEngine/JITLink/ELF_riscv.h
+++ llvm/include/llvm/ExecutionEngine/JITLink/ELF_riscv.h
@@ -32,6 +32,10 @@
void link_ELF_riscv(std::unique_ptr<LinkGraph> G,
std::unique_ptr<JITLinkContext> Ctx);
+/// Returns a pass that performs linker relaxation. Should be added to
+/// PreFixupPasses.
+LinkGraphPassFunction createRelaxationPass_ELF_riscv();
+
} // end namespace jitlink
} // end namespace llvm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153538.534447.patch
Type: text/x-patch
Size: 1031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230626/8cb372d8/attachment.bin>
More information about the llvm-commits
mailing list