1 //===------ ELF_ppc64.h - JIT link functions for ELF/ppc64 ------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // jit-link functions for ELF/ppc64{le}. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H 14 #define LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H 15 16 #include "llvm/ExecutionEngine/JITLink/JITLink.h" 17 18 namespace llvm::jitlink { 19 20 /// Create a LinkGraph from an ELF/ppc64 relocatable object. 21 /// 22 /// Note: The graph does not take ownership of the underlying buffer, nor copy 23 /// its contents. The caller is responsible for ensuring that the object buffer 24 /// outlives the graph. 25 /// 26 /// WARNING: The big-endian backend has not been tested yet. 27 Expected<std::unique_ptr<LinkGraph>> 28 createLinkGraphFromELFObject_ppc64(MemoryBufferRef ObjectBuffer, 29 std::shared_ptr<orc::SymbolStringPool> SSP); 30 31 /// Create a LinkGraph from an ELF/ppc64le relocatable object. 32 /// 33 /// Note: The graph does not take ownership of the underlying buffer, nor copy 34 /// its contents. The caller is responsible for ensuring that the object buffer 35 /// outlives the graph. 36 Expected<std::unique_ptr<LinkGraph>> createLinkGraphFromELFObject_ppc64le( 37 MemoryBufferRef ObjectBuffer, std::shared_ptr<orc::SymbolStringPool> SSP); 38 39 /// jit-link the given object buffer, which must be a ELF ppc64le object file. 40 /// 41 /// WARNING: The big-endian backend has not been tested yet. 42 void link_ELF_ppc64(std::unique_ptr<LinkGraph> G, 43 std::unique_ptr<JITLinkContext> Ctx); 44 45 /// jit-link the given object buffer, which must be a ELF ppc64le object file. 46 void link_ELF_ppc64le(std::unique_ptr<LinkGraph> G, 47 std::unique_ptr<JITLinkContext> Ctx); 48 49 } // end namespace llvm::jitlink 50 51 #endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H 52