15#ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_RISCV_H
16#define LLVM_EXECUTIONENGINE_JITLINK_ELF_RISCV_H
28Expected<std::unique_ptr<LinkGraph>>
33 std::unique_ptr<JITLinkContext> Ctx);
Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromELFObject_riscv(MemoryBufferRef ObjectBuffer)
Create a LinkGraph from an ELF/riscv relocatable object.
unique_function< Error(LinkGraph &)> LinkGraphPassFunction
A function for mutating LinkGraphs.
LinkGraphPassFunction createRelaxationPass_ELF_riscv()
Returns a pass that performs linker relaxation.
void link_ELF_riscv(std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
jit-link the given object buffer, which must be a ELF riscv object file.
This is an optimization pass for GlobalISel generic memory operations.