Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===---- ELF_aarch32.h - JIT link functions for arm/thumb -----*- 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/aarch32.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_AARCH32
0014 #define LLVM_EXECUTIONENGINE_JITLINK_ELF_AARCH32
0015 
0016 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
0017 #include "llvm/ExecutionEngine/JITLink/aarch32.h"
0018 
0019 namespace llvm {
0020 namespace jitlink {
0021 
0022 /// Create a LinkGraph from an ELF/arm relocatable object
0023 ///
0024 /// Note: The graph does not take ownership of the underlying buffer, nor copy
0025 /// its contents. The caller is responsible for ensuring that the object buffer
0026 /// outlives the graph.
0027 Expected<std::unique_ptr<LinkGraph>> createLinkGraphFromELFObject_aarch32(
0028     MemoryBufferRef ObjectBuffer, std::shared_ptr<orc::SymbolStringPool> SSP);
0029 
0030 /// jit-link the given object buffer, which must be an ELF arm/thumb object
0031 /// file.
0032 void link_ELF_aarch32(std::unique_ptr<LinkGraph> G,
0033                       std::unique_ptr<JITLinkContext> Ctx);
0034 
0035 } // end namespace jitlink
0036 } // end namespace llvm
0037 
0038 #endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_AARCH32