LLVM 20.0.0git
ELF_ppc64.h
Go to the documentation of this file.
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
17
18namespace 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.
27Expected<std::unique_ptr<LinkGraph>>
28createLinkGraphFromELFObject_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.
36Expected<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.
42void 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.
46void 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
#define G(x, y, z)
Definition: MD5.cpp:56