Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:49

0001 //===--- ELF_x86_64.h - JIT link functions for ELF/x86-64 ---*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // jit-link functions for ELF/x86-64.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_X86_64_H
0014 #define LLVM_EXECUTIONENGINE_JITLINK_ELF_X86_64_H
0015 
0016 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
0017 
0018 namespace llvm {
0019 namespace jitlink {
0020 
0021 /// Create a LinkGraph from an ELF/x86-64 relocatable object.
0022 ///
0023 /// Note: The graph does not take ownership of the underlying buffer, nor copy
0024 /// its contents. The caller is responsible for ensuring that the object buffer
0025 /// outlives the graph.
0026 Expected<std::unique_ptr<LinkGraph>>
0027 createLinkGraphFromELFObject_x86_64(MemoryBufferRef ObjectBuffer,
0028                                     std::shared_ptr<orc::SymbolStringPool> SSP);
0029 
0030 /// jit-link the given object buffer, which must be a ELF x86-64 object file.
0031 void link_ELF_x86_64(std::unique_ptr<LinkGraph> G,
0032                      std::unique_ptr<JITLinkContext> Ctx);
0033 
0034 } // end namespace jitlink
0035 } // end namespace llvm
0036 
0037 #endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_X86_64_H