Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===--- COFF_x86_64.h - JIT link functions for COFF/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 COFF/x86-64.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLVM_EXECUTIONENGINE_JITLINK_COFF_X86_64_H
0014 #define LLVM_EXECUTIONENGINE_JITLINK_COFF_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 COFF/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>> createLinkGraphFromCOFFObject_x86_64(
0027     MemoryBufferRef ObjectBuffer, std::shared_ptr<orc::SymbolStringPool> SSP);
0028 
0029 /// jit-link the given object buffer, which must be a COFF x86-64 object file.
0030 void link_COFF_x86_64(std::unique_ptr<LinkGraph> G,
0031                       std::unique_ptr<JITLinkContext> Ctx);
0032 
0033 /// Return the string name of the given COFF x86-64 edge kind.
0034 const char *getCOFFX86RelocationKindName(Edge::Kind R);
0035 } // end namespace jitlink
0036 } // end namespace llvm
0037 
0038 #endif // LLVM_EXECUTIONENGINE_JITLINK_COFF_X86_64_H