forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cling] Backport jitlink ppc64 (root-project#13850)
* Backport JITLink ppc64 backend to LLVM-16 * Backport ELF part * Backport PCREL relocations * Use jitlink::Section::blocks::empty instead * Backport TLS PCREL relocation * [llvm-project] Synchronize with LLVM monorepo fork --------- Co-authored-by: Jonas Hahnfeld <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,280 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ROOT-llvm16-20240223-01 | ||
ROOT-llvm16-20240321-01 |
50 changes: 50 additions & 0 deletions
50
interpreter/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ELF_ppc64.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
//===------ ELF_ppc64.h - JIT link functions for ELF/ppc64 ------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// jit-link functions for ELF/ppc64{le}. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H | ||
#define LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H | ||
|
||
#include "llvm/ExecutionEngine/JITLink/JITLink.h" | ||
|
||
namespace llvm::jitlink { | ||
|
||
/// Create a LinkGraph from an ELF/ppc64 relocatable object. | ||
/// | ||
/// Note: The graph does not take ownership of the underlying buffer, nor copy | ||
/// its contents. The caller is responsible for ensuring that the object buffer | ||
/// outlives the graph. | ||
/// | ||
/// WARNING: The big-endian backend has not been tested yet. | ||
Expected<std::unique_ptr<LinkGraph>> | ||
createLinkGraphFromELFObject_ppc64(MemoryBufferRef ObjectBuffer); | ||
|
||
/// Create a LinkGraph from an ELF/ppc64le relocatable object. | ||
/// | ||
/// Note: The graph does not take ownership of the underlying buffer, nor copy | ||
/// its contents. The caller is responsible for ensuring that the object buffer | ||
/// outlives the graph. | ||
Expected<std::unique_ptr<LinkGraph>> | ||
createLinkGraphFromELFObject_ppc64le(MemoryBufferRef ObjectBuffer); | ||
|
||
/// jit-link the given object buffer, which must be a ELF ppc64le object file. | ||
/// | ||
/// WARNING: The big-endian backend has not been tested yet. | ||
void link_ELF_ppc64(std::unique_ptr<LinkGraph> G, | ||
std::unique_ptr<JITLinkContext> Ctx); | ||
|
||
/// jit-link the given object buffer, which must be a ELF ppc64le object file. | ||
void link_ELF_ppc64le(std::unique_ptr<LinkGraph> G, | ||
std::unique_ptr<JITLinkContext> Ctx); | ||
|
||
} // end namespace llvm::jitlink | ||
|
||
#endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_PPC64_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.