//===- EPCGenericJITLinkMemoryManager.h - EPC-based mem manager -*- 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 // //===----------------------------------------------------------------------===// // // Implements JITLinkMemoryManager by making remove calls via // ExecutorProcessControl::callWrapperAsync. // // This simplifies the implementaton of new ExecutorProcessControl instances, // as this implementation will always work (at the cost of some performance // overhead for the calls). // //===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H #define LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H #include "llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h" #include "llvm/ExecutionEngine/Orc/Core.h" namespace llvm { namespace orc { class EPCGenericJITLinkMemoryManager : public jitlink::JITLinkMemoryManager { … }; namespace shared { /// FIXME: This specialization should be moved into TargetProcessControlTypes.h /// (or wherever those types get merged to) once ORC depends on JITLink. template <> class SPSSerializationTraits<SPSExecutorAddr, jitlink::JITLinkMemoryManager::FinalizedAlloc> { … }; } // end namespace shared } // end namespace orc } // end namespace llvm #endif // LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H