llvm/llvm/include/llvm/ExecutionEngine/Orc/ELFNixPlatform.h

//===-- ELFNixPlatform.h -- Utilities for executing ELF in Orc --*- 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
//
//===----------------------------------------------------------------------===//
//
// Linux/BSD support for executing JIT'd ELF in Orc.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_EXECUTIONENGINE_ORC_ELFNIXPLATFORM_H
#define LLVM_EXECUTIONENGINE_ORC_ELFNIXPLATFORM_H

#include "llvm/ADT/StringRef.h"
#include "llvm/ExecutionEngine/Orc/Core.h"
#include "llvm/ExecutionEngine/Orc/ExecutorProcessControl.h"
#include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h"
#include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"

#include <future>
#include <thread>
#include <unordered_map>
#include <vector>

namespace llvm {
namespace orc {

struct ELFPerObjectSectionsToRegister {};

ELFNixJITDylibDepInfo;
ELFNixJITDylibDepInfoMap;

struct RuntimeFunction {};

struct FunctionPairKeyHash {};

struct FunctionPairKeyEqual {};

DeferredRuntimeFnMap;

/// Mediates between ELFNix initialization and ExecutionSession state.
class ELFNixPlatform : public Platform {};

namespace shared {

SPSELFPerObjectSectionsToRegister;

template <>
class SPSSerializationTraits<SPSELFPerObjectSectionsToRegister,
                             ELFPerObjectSectionsToRegister> {};

SPSELFNixJITDylibDepInfoMap;

} // end namespace shared
} // end namespace orc
} // end namespace llvm

#endif // LLVM_EXECUTIONENGINE_ORC_ELFNIXPLATFORM_H