LLVM 19.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
30/// Create a LinkGraph from an ELF/ppc64le relocatable object.
31///
32/// Note: The graph does not take ownership of the underlying buffer, nor copy
33/// its contents. The caller is responsible for ensuring that the object buffer
34/// outlives the graph.
35Expected<std::unique_ptr<LinkGraph>>
36createLinkGraphFromELFObject_ppc64le(MemoryBufferRef ObjectBuffer);
37
38/// jit-link the given object buffer, which must be a ELF ppc64le object file.
39///
40/// WARNING: The big-endian backend has not been tested yet.
41void link_ELF_ppc64(std::unique_ptr<LinkGraph> G,
42 std::unique_ptr<JITLinkContext> Ctx);
43
44/// jit-link the given object buffer, which must be a ELF ppc64le object file.
45void link_ELF_ppc64le(std::unique_ptr<LinkGraph> G,
46 std::unique_ptr<JITLinkContext> Ctx);
47
48} // end namespace llvm::jitlink
49
50#endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H
#define G(x, y, z)
Definition: MD5.cpp:56