1 //===- ExecutorService.h - Provide bootstrap symbols to session -*- 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 // Provides a service by supplying some set of bootstrap symbols. 10 // 11 // FIXME: The functionality in this file should be moved to the ORC runtime. 12 // 13 //===----------------------------------------------------------------------===// 14 15 #ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H 16 #define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H 17 18 #include "llvm/ADT/StringMap.h" 19 #include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h" 20 #include "llvm/Support/Compiler.h" 21 22 namespace llvm { 23 namespace orc { 24 25 class LLVM_ABI ExecutorBootstrapService { 26 public: 27 virtual ~ExecutorBootstrapService(); 28 29 virtual void 30 addBootstrapSymbols(StringMap<ExecutorAddr> &BootstrapSymbols) = 0; 31 virtual Error shutdown() = 0; 32 }; 33 34 } // end namespace orc 35 } // end namespace llvm 36 37 #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H 38